public class ValuePanel extends ScrolledComposite implements IVirtualSpacePanel, IContextMenuContributor, IVSFieldListener
IVSComponentState.State
Modifier and Type | Method and Description |
---|---|
void |
appendMenuItems(Viewer viewer,
IzMenu menu,
DesignerProp target)
Called to append menu items.
|
boolean |
doAddExpandCollapseAll(Viewer viewer,
IzMenu menu,
DesignerProp target)
Checks if expand/collapse all menu items should be added.
|
Value.Type |
getBestVSFieldValueType(VSRelativeReference<?> reference)
Requests the value type that would best suit the listener.
|
DesignerProp |
getTarget()
Gets the default target when none other is found for the pop-up menu in the viewer.
|
void |
onBroken(VSRelativeReference<?> reference,
VSField field)
Called when the property reference has been broken, i.e.
|
void |
onConnections(IVSFieldListener[] listeners)
Called to update the connections.
|
void |
onEditedProperty(GProp<?> _field)
Selection changed for panel.
|
void |
onParentStateChanged(IVSComponent parent,
IVSComponentState.State state,
boolean on)
Called when the parent changes state.
|
void |
onResolved(VSRelativeReference<?> reference,
VSField field)
Called when the property reference has been resolved.
|
void |
onStateChanged(VSField field,
IVSComponentState.State state,
boolean on)
Called when the field changes state.
|
void |
onValueChanged(VSField field,
Value value,
GProp<?> trigger,
IPostEventProcessing pp)
Called when the field value is set.
|
void |
prependMenuItems(Viewer viewer,
IzMenu menu,
DesignerProp target)
Called to prepend menu items.
|
void |
saveSettings()
Saves the settings.
|
public void saveSettings()
saveSettings
in interface IVirtualSpacePanel
public void onEditedProperty(GProp<?> _field)
onEditedProperty
in interface IVirtualSpacePanel
public void prependMenuItems(Viewer viewer, IzMenu menu, DesignerProp target)
prependMenuItems
in interface IContextMenuContributor
prependMenuItems
in interface IContextMenuContributorFormControl<Viewer>
viewer
- The viewer.menu
- The pop-up menu.target
- The selected target in the viewer, null for none.public void appendMenuItems(Viewer viewer, IzMenu menu, DesignerProp target)
appendMenuItems
in interface IContextMenuContributor
appendMenuItems
in interface IContextMenuContributorFormControl<Viewer>
viewer
- The viewer.menu
- The pop-up menu.target
- The selected target in the viewer, null for none.public boolean doAddExpandCollapseAll(Viewer viewer, IzMenu menu, DesignerProp target)
doAddExpandCollapseAll
in interface IContextMenuContributor
public DesignerProp getTarget()
getTarget
in interface IContextMenuContributor
getTarget
in interface IContextMenuContributorFormControl<Viewer>
public void onConnections(IVSFieldListener[] listeners)
public Value.Type getBestVSFieldValueType(VSRelativeReference<?> reference)
IVSFieldListener
getBestVSFieldValueType
in interface IVSFieldListener
reference
- The VSRelativeReference instance holding the reference.public void onResolved(VSRelativeReference<?> reference, VSField field)
IVSFieldListener
onResolved
in interface IVSFieldListener
reference
- The VSRelativeReference instance holding the reference.field
- The target reference.public void onBroken(VSRelativeReference<?> reference, VSField field)
IVSFieldListener
onBroken
in interface IVSFieldListener
reference
- The VSRelativeReference instance holding the reference.field
- The target reference.public void onStateChanged(VSField field, IVSComponentState.State state, boolean on)
IVSFieldListener
onStateChanged
in interface IVSFieldListener
field
- The VS field.state
- The state change.on
- New state.public void onParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on)
IVSComponentListener
onParentStateChanged
in interface IVSComponentListener
parent
- The parent who's state was changed.state
- The state change, possible values PARENT_ENABLED, PARENT_READONLY, PARENT_VISIBLE.on
- New state.public void onValueChanged(VSField field, Value value, GProp<?> trigger, IPostEventProcessing pp)
IVSFieldListener
onValueChanged
in interface IVSFieldListener
field
- The VS field.value
- The value, never null, but value.isNull()
could be true.trigger
- The trigger property that may be null.pp
- Post-processing instance.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.