Package com.iizix.prop.vs
Class VSFieldAdapter
- java.lang.Object
- com.iizix.prop.vs.VSFieldAdapter
- All Implemented Interfaces:
IVSComponentListener,IVSComponentState,IVSFieldListener
public class VSFieldAdapter extends java.lang.Object implements IVSFieldListener
Adapter for interface used to listen to VS field value events.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.State
Constructor Summary
Constructors Constructor Description VSFieldAdapter()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Value.TypegetBestVSFieldValueType(VSRelativeReference<?> reference)Requests the value type that would best suit the listener.voidonBroken(VSRelativeReference<?> reference, VSField field)Called when the property reference has been broken, i.e.voidonParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on)Called when the column changes state.voidonResolved(VSRelativeReference<?> reference, VSField field)Called when the property reference has been resolved.voidonStateChanged(VSField field, IVSComponentState.State state, boolean on)Called when the field changes state.voidonValueChanged(VSField field, Value value, GProp<?> trigger, IPostEventProcessing postProcessing)Called when the field value is set.
Method Detail
getBestVSFieldValueType
public Value.Type getBestVSFieldValueType(VSRelativeReference<?> reference)
Requests the value type that would best suit the listener.- Specified by:
getBestVSFieldValueTypein interfaceIVSFieldListener- Parameters:
reference- The VSRelativeReference instance holding the reference.- Returns:
- null if none is available.
onResolved
public void onResolved(VSRelativeReference<?> reference, VSField field)
Called when the property reference has been resolved. UI components use this method to set its state according to the field.- Specified by:
onResolvedin interfaceIVSFieldListener- Parameters:
reference- The VSRelativeReference instance holding the reference.field- The target reference.
onBroken
public void onBroken(VSRelativeReference<?> reference, VSField field)
Called when the property reference has been broken, i.e. unresolved.- Specified by:
onBrokenin interfaceIVSFieldListener- Parameters:
reference- The VSRelativeReference instance holding the reference.field- The target reference.
onStateChanged
public void onStateChanged(VSField field, IVSComponentState.State state, boolean on)
Called when the field changes state.- Specified by:
onStateChangedin interfaceIVSFieldListener- Parameters:
field- The VS field.state- The state change.on- New state.
onParentStateChanged
public void onParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on)
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.
onValueChanged
public void onValueChanged(VSField field, Value value, GProp<?> trigger, IPostEventProcessing postProcessing)
Called when the field value is set.- Specified by:
onValueChangedin interfaceIVSFieldListener- Parameters:
field- 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.