All Known Implementing Classes:
AbstractDataMatrix
public interface DataMatrixInterface
Since:
Omix 1.8.5
Author:
Dr. Peter Droste
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
Modifier and Type
Method
Description
default List <QAction >
actions ()
void
addDataMatrixChangeListener (DataMatrixChangeListener listener)
Adds a change listener to the data matrix.
boolean
canGet ()
boolean
canSet ()
int
columns ()
returns the absolute number of columns (incl. header).
default void
deleteColumn (int column)
default void
deleteRow (int row)
void
finish ()
DataMatrixInterface.Representations
getAllowedRepresentations ()
default List <@IsVarType Object >
getColumn (int column)
returns the content of a column accessed by index if available, otherwise null.
default List <@IsVarType Object >
getColumn (int column,
int startRow,
int lastRow)
returns the content of a column accessed by index if available, otherwise null.
DataMatrixInterface.Representation
getDefaultRepresentation ()
String
getDisplayName ()
String
getIdentifier ()
default DataMatrixInterface.MetaData
getMetaData (int row,
int column)
returns a decimal format for the cell content (accessed by column and row index) if available, otherwise null (default).
default DataMatrixInterface.MetaData
getMetaData (int row,
int column,
DataMatrixInterface.MetaDataType ... allowedDataTypes)
default List <@IsVarType Object >
getRow (int row)
returns the content of a row accessed by index if available, otherwise null.
default List <@IsVarType Object >
getRow (int row,
int startColumn,
int lastColumn)
returns the content of a row accessed by index if available, otherwise null.
@IsVarType Object
getValue (int row,
int column)
returns the content of a cell accessed by column and row index if available, otherwise null.
default boolean
isActive ()
boolean
isModified ()
void
removeDataMatrixChangeListener (DataMatrixChangeListener listener)
int
rows ()
returns the absolute number of rows (incl. header).
void
setActive (boolean active)
default void
setSelection (List <Table.SelectedContent > selection)
void
setValue (int row,
int column,
@IsVarType Object value)
Method Details
int rows ()
returns the absolute number of rows (incl. header).
Returns:
rows
int columns ()
returns the absolute number of columns (incl. header).
Returns:
rows
returns the content of a cell accessed by column and row index if available, otherwise null.
Parameters:
row
- index
column
- index
Returns:
cell content
returns a decimal format for the cell content (accessed by column and row index) if available, otherwise null (default).
Parameters:
row
-
column
-
Returns:
decimal format
returns the content of a column accessed by index if available, otherwise null.
Parameters:
column
- index
Returns:
column content as list
returns the content of a row accessed by index if available, otherwise null.
Parameters:
row
- index
Returns:
row content as list
returns the content of a column accessed by index if available, otherwise null.
Parameters:
column
- index
startRow
-
lastRow
-
Returns:
column content as list
returns the content of a row accessed by index if available, otherwise null.
Parameters:
row
- index
startColumn
-
lastColumn
-
Returns:
row content as list
void setActive (boolean active)
default boolean isActive ()
Adds a change listener to the data matrix.
The listener must be referenced weakly by using
WeakReference
!
Use
AbstractDataMatrix
as a suitable implementation of a listener handler.
Parameters:
listener
-