java.lang.Object
omix.util.data.AbstractDataMatrix
- All Implemented Interfaces:
DataMatrixInterface
public abstract class AbstractDataMatrix extends Object implements DataMatrixInterface
This class implements listener management of a data matrix and
serves as abstract adapter class for
DataMatrixInterface
.
This class is thread safe.- Since:
- Omix 1.8.6
- Author:
- Dr. Peter Droste
-
Nested Class Summary
Nested classes/interfaces inherited from interface omix.plugin.data.DataMatrixInterface
DataMatrixInterface.DeletableFlag, DataMatrixInterface.DeletableFlags, DataMatrixInterface.MetaData, DataMatrixInterface.MetaDataType, DataMatrixInterface.Representation, DataMatrixInterface.Representations
-
Constructor Summary
Constructors Constructor Description AbstractDataMatrix()
-
Method Summary
Modifier and Type Method Description List<QAction>
actions()
void
addDataMatrixChangeListener(DataMatrixChangeListener listener)
Adds a change listener to the data matrix.protected void
dataMatrixChanged()
This method notifies all registered listeners.List<@IsVarType Object>
getColumn(int column)
returns the content of a column accessed by index if available, otherwise null.List<@IsVarType Object>
getColumn(int column, int startRow, int lastRow)
returns the content of a column accessed by index if available, otherwise null.List<@IsVarType Object>
getRow(int row)
returns the content of a row accessed by index if available, otherwise null.List<@IsVarType Object>
getRow(int row, int startColumn, int lastColumn)
returns the content of a row accessed by index if available, otherwise null.boolean
isActive()
void
removeDataMatrixChangeListener(DataMatrixChangeListener listener)
Removes the change listener from the data matrix if available.void
setActive(boolean active)
protected void
updateSelection(List<Table.SelectedContent> selection)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface omix.plugin.data.DataMatrixInterface
canGet, canSet, columns, deleteColumn, deleteRow, finish, getAllowedRepresentations, getDefaultRepresentation, getDisplayName, getIdentifier, getMetaData, getMetaData, getValue, isModified, rows, setSelection, setValue
-
Constructor Details
-
AbstractDataMatrix
public AbstractDataMatrix()
-
-
Method Details
-
addDataMatrixChangeListener
Adds a change listener to the data matrix.- Specified by:
addDataMatrixChangeListener
in interfaceDataMatrixInterface
-
removeDataMatrixChangeListener
Removes the change listener from the data matrix if available.- Specified by:
removeDataMatrixChangeListener
in interfaceDataMatrixInterface
-
dataMatrixChanged
protected final void dataMatrixChanged()This method notifies all registered listeners. -
updateSelection
-
setActive
public void setActive(boolean active)- Specified by:
setActive
in interfaceDataMatrixInterface
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceDataMatrixInterface
-
getColumn
Description copied from interface:DataMatrixInterface
returns the content of a column accessed by index if available, otherwise null.- Specified by:
getColumn
in interfaceDataMatrixInterface
- Parameters:
column
- index- Returns:
- column content as list
-
getRow
Description copied from interface:DataMatrixInterface
returns the content of a row accessed by index if available, otherwise null.- Specified by:
getRow
in interfaceDataMatrixInterface
- Parameters:
row
- index- Returns:
- row content as list
-
getColumn
Description copied from interface:DataMatrixInterface
returns the content of a column accessed by index if available, otherwise null.- Specified by:
getColumn
in interfaceDataMatrixInterface
- Parameters:
column
- index- Returns:
- column content as list
-
getRow
Description copied from interface:DataMatrixInterface
returns the content of a row accessed by index if available, otherwise null.- Specified by:
getRow
in interfaceDataMatrixInterface
- Parameters:
row
- index- Returns:
- row content as list
-
actions
- Specified by:
actions
in interfaceDataMatrixInterface
-