Package com.iizigo.vs
Class ValuePanel
java.lang.Object
com.iizigo.vs.ValuePanel
- All Implemented Interfaces:
IContextMenuContributor,IContextMenuContributorFormControl<Viewer>,IVirtualSpacePanel,IVSComponentListener,IVSComponentState,IVSFieldListener
public class ValuePanel extends Object implements IVirtualSpacePanel, IContextMenuContributor, IVSFieldListener
Panel used for the Value in the VirtualSpace.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.StateMethod Summary
Modifier and TypeMethodDescriptionvoidappendMenuItems(Viewer viewer, IzMenu menu, DesignerProp target) Called to append menu items.booleandoAddExpandCollapseAll(Viewer viewer, IzMenu menu, DesignerProp target) Checks if expand/collapse all menu items should be added.getBestVSFieldValueType(VSRelativeReference<?> reference) Requests the value type that would best suit the listener.Gets the default target when none other is found for the pop-up menu in the viewer.voidonBroken(VSRelativeReference<?> reference, VSField field) Called when the property reference has been broken, i.e.voidonConnections(IVSFieldListener[] listeners) Called to update the connections.voidonEditedProperty(GProp<?> _field) Selection changed for panel.voidonParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the parent 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 pp) Called when the field value is set.voidprependMenuItems(Viewer viewer, IzMenu menu, DesignerProp target) Called to prepend menu items.voidSaves the settings.
Method Details
saveSettings
public void saveSettings()Saves the settings.- Specified by:
saveSettingsin interfaceIVirtualSpacePanel
onEditedProperty
Selection changed for panel.- Specified by:
onEditedPropertyin interfaceIVirtualSpacePanel
prependMenuItems
Called to prepend menu items.- Specified by:
prependMenuItemsin interfaceIContextMenuContributor- Specified by:
prependMenuItemsin interfaceIContextMenuContributorFormControl<Viewer>- Parameters:
viewer- The viewer.menu- The pop-up menu.target- The selected target in the viewer, null for none.
appendMenuItems
Called to append menu items.- Specified by:
appendMenuItemsin interfaceIContextMenuContributor- Specified by:
appendMenuItemsin interfaceIContextMenuContributorFormControl<Viewer>- Parameters:
viewer- The viewer.menu- The pop-up menu.target- The selected target in the viewer, null for none.
doAddExpandCollapseAll
Checks if expand/collapse all menu items should be added.- Specified by:
doAddExpandCollapseAllin interfaceIContextMenuContributor
getTarget
Gets the default target when none other is found for the pop-up menu in the viewer.- Specified by:
getTargetin interfaceIContextMenuContributor- Specified by:
getTargetin interfaceIContextMenuContributorFormControl<Viewer>- Returns:
- The target, or null to use the default edited property.
onConnections
Called to update the connections.getBestVSFieldValueType
Description copied from interface:IVSFieldListenerRequests 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
Description copied from interface:IVSFieldListenerCalled 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
Description copied from interface:IVSFieldListenerCalled 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
Description copied from interface:IVSFieldListenerCalled when the field changes state.- Specified by:
onStateChangedin interfaceIVSFieldListener- Parameters:
field- The VS field.state- The state change.on- New state.
onParentStateChanged
Description copied from interface:IVSComponentListenerCalled when the parent 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
Description copied from interface:IVSFieldListenerCalled 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.pp- Post-processing instance.