public interface IMatrixContentAccessor
Modifier and Type | Method and Description |
---|---|
MatrixValueDefinition |
getDefinition() |
java.util.List<java.lang.String> |
getPossibleValues(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
Get the possible values for a selected cell.
|
java.lang.Class<?> |
getType(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
Get the type of a selected cell.
|
java.lang.Object |
getVal(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
Get the value of a selected cell.
|
boolean |
isEditable(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
Indicate whether or not a selected cell can be edited.
|
default boolean |
isLineColumnSwitchSupported()
Tells whether this accessor still works if line and column are switched.
|
void |
setVal(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth,
java.lang.Object value)
Set the value of a selected cell.
|
void |
updateStyle(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth,
IMatrixStyle style)
Update the style parameters of a selected cell.
|
java.util.List<java.lang.String> getPossibleValues(java.lang.Object col, java.lang.Object row, java.lang.Object depth)
col
- the object on the col line.row
- the object on the row line. Might be null
.depth
- the object on the depth line. Might be null
.null
value means all values are possible.java.lang.Class<?> getType(java.lang.Object col, java.lang.Object row, java.lang.Object depth)
col
- the object on the col line.row
- the object on the row line. Might be null
.depth
- the object on the depth line. Might be null
.null
.boolean isEditable(java.lang.Object col, java.lang.Object row, java.lang.Object depth)
col
- the object on the col line.row
- the object on the row line. Might be null
.depth
- the object on the depth line. Might be null
.true
if the cell can be edited, false otherwise.java.lang.Object getVal(java.lang.Object col, java.lang.Object row, java.lang.Object depth)
col
- the object on the col line.row
- the object on the row line. Might be null
.depth
- the object on the depth line. Might be null
.null
.void setVal(java.lang.Object col, java.lang.Object row, java.lang.Object depth, java.lang.Object value)
col
- the object on the col line.row
- the object on the row line. Might be null
.depth
- the object on the depth line. Might be null
.value
- the new value. Might be null
.void updateStyle(java.lang.Object col, java.lang.Object row, java.lang.Object depth, IMatrixStyle style)
col
- the object on the col line.row
- the object on the row line. Might be null
.depth
- the object on the depth line. Might be null
.style
- the style to edit.MatrixValueDefinition getDefinition()
default boolean isLineColumnSwitchSupported()
If true, the other methods will be called with line and column arguments switched. If false, they will be called as if line and column are not switched.
The default implementation returns false.