Package com.iizix.prop.vs
Class VSTableAdapter
java.lang.Object
com.iizix.prop.vs.VSTableAdapter
- All Implemented Interfaces:
IVSComponentListener,IVSComponentState,IVSTableListener
Adapter for interface used to listen to VS table 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 TypeMethodDescriptionvoidonBroken(VSRelativeReference<?> reference, VSTable table) Called when the property reference has been broken, i.e.voidonCellStateChanged(VSField cell, IVSComponentState.State state, boolean on) Called when the cell changes state.voidonCellValueChanged(VSField cell, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the cell value is set.voidonParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the column changes state.voidonResolved(VSRelativeReference<?> reference, VSTable table) Called when the property reference has been resolved.voidonRowAdded(VSRow row, int index) Called when a row is added.voidonRowRemoved(VSRow row, int index) Called when a row is removed.voidonRowStateChanged(VSRow row, IVSComponentState.State state, boolean on) Called when a row selection state changed.voidonSingleSelectionChanged(VSTable table, int index) Called when the single selection changes.voidonStateChanged(VSTable table, IVSComponentState.State state, boolean on) Called when the table changes state.
Constructor Details
VSTableAdapter
public VSTableAdapter()
Method Details
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 interfaceIVSTableListener- Parameters:
reference- The VSRelativeReference instance holding the reference.table- The target reference.
onBroken
Called when the property reference has been broken, i.e. unresolved.- Specified by:
onBrokenin interfaceIVSTableListener- Parameters:
reference- The VSRelativeReference instance holding the reference.table- The target reference.
onStateChanged
Called when the table changes state.- Specified by:
onStateChangedin interfaceIVSTableListener- 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 single selection changes.- Specified by:
onSingleSelectionChangedin interfaceIVSTableListener- Parameters:
table- The table.index- The row index, -1 if table is unselected.
onRowAdded
Called when a row is added.- Specified by:
onRowAddedin interfaceIVSTableListener- Parameters:
row- The row.index- The index.
onRowRemoved
Called when a row is removed.- Specified by:
onRowRemovedin interfaceIVSTableListener- Parameters:
row- The row.index- The index.
onRowStateChanged
Called when a row selection state changed.- Specified by:
onRowStateChangedin interfaceIVSTableListener- Parameters:
row- The row.state- The state change.on- New state.
onCellStateChanged
Called when the cell changes state.- Specified by:
onCellStateChangedin interfaceIVSTableListener- Parameters:
cell- The VS cell.state- The state change.on- New state.
onCellValueChanged
public void onCellValueChanged(VSField cell, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the cell value is set.- Specified by:
onCellValueChangedin interfaceIVSTableListener- Parameters:
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.