public class AbstractMatrixContentAccessor extends java.lang.Object implements IMatrixContentAccessor
IMatrixContentAccessor.| Constructor and Description |
|---|
AbstractMatrixContentAccessor(MatrixValueDefinition def) |
| 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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisLineColumnSwitchSupportedpublic AbstractMatrixContentAccessor(MatrixValueDefinition def)
def - the matrix content definition.public java.lang.Object getVal(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
IMatrixContentAccessorgetVal in interface IMatrixContentAccessorcol - 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.public void setVal(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth,
java.lang.Object value)
IMatrixContentAccessorsetVal in interface IMatrixContentAccessorcol - 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.public boolean isEditable(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
IMatrixContentAccessorisEditable in interface IMatrixContentAccessorcol - 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.public java.lang.Class<?> getType(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
IMatrixContentAccessorgetType in interface IMatrixContentAccessorcol - 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.public java.util.List<java.lang.String> getPossibleValues(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth)
IMatrixContentAccessorgetPossibleValues in interface IMatrixContentAccessorcol - 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.public void updateStyle(java.lang.Object col,
java.lang.Object row,
java.lang.Object depth,
IMatrixStyle style)
IMatrixContentAccessorupdateStyle in interface IMatrixContentAccessorcol - 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.public final MatrixValueDefinition getDefinition()
getDefinition in interface IMatrixContentAccessor