Class CRCollection

java.lang.Object
javax.swing.table.AbstractTableModel
de.kappich.pat.gnd.extLocRef.CRCollection
All Implemented Interfaces:
Serializable, TableModel

public class CRCollection extends AbstractTableModel
Diese Klasse verkapselt eine Liste von ComposedReferences und ist zugleich ein TableModel.
See Also:
  • Constructor Details

    • CRCollection

      public CRCollection()
    • CRCollection

      public CRCollection(List<ComposedReference> composedReferences)
  • Method Details

    • add

      public boolean add(ComposedReference composedReference)
    • remove

      public boolean remove(ComposedReference composedReference)
    • moveUpwards

      public boolean moveUpwards(int[] indices)
      Diese Methode ändert die Reihenfolge der EOR. Alle EOR, deren Indizes übergeben werden, werden in der Reihenfolge um eins naoch oben verschoben. Dazu darf der Index 0 nicht in dem Array enthalten sein. Die Indizes müssen nicht sortiert sein: das macht die Methode selber.
      Parameters:
      indices - Indizes
      Returns:
    • get

      public ComposedReference get(int index)
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clear

      public void clear()
    • getComposedReferences

      public List<ComposedReference> getComposedReferences()
    • contains

      public boolean contains(ComposedReference reference)
    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public String getColumnName(int columnIndex)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getValueAt

      @Nullable public Object getValueAt(int rowIndex, int columnIndex)
    • toString

      public String toString()
      Overrides:
      toString in class Object