Package com.iizix.prop.vs
Class VSColumnAdapter
java.lang.Object
com.iizix.prop.vs.VSColumnAdapter
- All Implemented Interfaces:
IVSColumnBestValueListener,IVSColumnListener,IVSComponentListener,IVSComponentState
Adapter for the interface used to listen to VS table column events.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.StateConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptiongetBestVSColumnHeaderValueType(VSRelativeReference<?> reference) Requests the value type that would best suit the listener.voidonBroken(VSRelativeReference<?> reference, VSColumnHeader column) Called when the property reference has been broken, i.e.voidonCellValueChanged(VSColumnHeader column, VSField cell, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the cell value is set in the column.voidonParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the column changes state.voidonResolved(VSRelativeReference<?> reference, VSColumnHeader column) Called when the property reference has been resolved.voidonRowAdded(VSColumnHeader column, VSRow row, int rowIndex) Called when a row has been added to the table.voidonRowRemoved(VSColumnHeader column, VSRow row, int rowIndex) Called when a row has been removed from the table.voidonSelectionChanged(VSColumnHeader column, VSRow row, int rowIndex, boolean isSelected) Called when the row selection is changed to forward to column listeners.voidonSingleSelectionChanged(VSColumnHeader column, int rowIndex) Called when the row selection in table single-selection mode is changed to forward to column listeners.voidonStateChanged(VSColumnHeader table, IVSComponentState.State state, boolean on) Called when the table changes state.voidonStateChanged(VSColumnHeader column, VSField cell, IVSComponentState.State state, boolean on) Called when a cell in the column changes state.
Constructor Details
VSColumnAdapter
public VSColumnAdapter()
Method Details
getBestVSColumnHeaderValueType
Requests the value type that would best suit the listener.- Specified by:
getBestVSColumnHeaderValueTypein interfaceIVSColumnBestValueListener- Parameters:
reference- The VSRelativeReference instance holding the reference.- Returns:
- null if none is available.
onResolved
Called when the property reference has been resolved. UI components use this method to set its state according to the field.- Specified by:
onResolvedin interfaceIVSColumnListener- Parameters:
reference- The VSRelativeReference instance holding the reference.column- The target reference.
onBroken
Called when the property reference has been broken, i.e. unresolved.- Specified by:
onBrokenin interfaceIVSColumnListener- Parameters:
reference- The VSRelativeReference instance holding the reference.column- The target reference.
onStateChanged
Called when the table changes state.- Specified by:
onStateChangedin interfaceIVSColumnListener- Parameters:
table- The VS table.state- The state change.on- New state.
onParentStateChanged
Called when the column changes state.- Specified by:
onParentStateChangedin interfaceIVSComponentListener- Parameters:
parent- The parent who's state was changed.state- The state change, possible values PARENT_ENABLED, PARENT_READONLY, PARENT_VISIBLE.on- New state.
onSingleSelectionChanged
Called when the row selection in table single-selection mode is changed to forward to column listeners.- Specified by:
onSingleSelectionChangedin interfaceIVSColumnListener- Parameters:
column- The column.rowIndex- The row index selected, -1 for none.
onSelectionChanged
Called when the row selection is changed to forward to column listeners.- Specified by:
onSelectionChangedin interfaceIVSColumnListener- Parameters:
column- The column.row- The row that was changed.rowIndex- The row index.isSelected- The selected state.
onRowAdded
Called when a row has been added to the table.- Specified by:
onRowAddedin interfaceIVSColumnListener- Parameters:
column- The column.row- The row that was added.rowIndex- The row index where it was inserted.
onRowRemoved
Called when a row has been removed from the table.- Specified by:
onRowRemovedin interfaceIVSColumnListener- Parameters:
column- The column.row- The row that was removed.rowIndex- The row index before removal.
onStateChanged
public void onStateChanged(VSColumnHeader column, VSField cell, IVSComponentState.State state, boolean on) Called when a cell in the column changes state.- Specified by:
onStateChangedin interfaceIVSColumnListener- Parameters:
column- The VS column.cell- The VS field.state- The state change.on- New state.
onCellValueChanged
public void onCellValueChanged(VSColumnHeader column, VSField cell, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the cell value is set in the column.- Specified by:
onCellValueChangedin interfaceIVSColumnListener- Parameters:
column- The VS column.cell- The VS field.value- The value, never null, butvalue.isNull()could be true.trigger- The trigger property that may be null.postProcessing- Post-processing instance.