Package com.iizigo.vs
Class GroupPanel
java.lang.Object
com.iizigo.vs.GroupPanel
- All Implemented Interfaces:
IContextMenuContributor
,IContextMenuContributorFormControl<Viewer>
,IVirtualSpacePanel
,IVSComponentListener
,IVSComponentState
,IVSGenericComponentListener
public class GroupPanel extends Object implements IVirtualSpacePanel, IContextMenuContributor, IVSGenericComponentListener
Panel used for the Group in the VirtualSpace.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.State
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Called to get the edited property.void
onBroken
(VSComponentReference reference, VSComponent component) Called when the property reference has been broken, i.e.void
onEditedProperty
(GProp<?> _group) Selection changed for panel.void
onParentStateChanged
(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the parent changes state.void
onResolved
(VSComponentReference reference, VSComponent component) Called when the property reference has been resolved.void
onStateChanged
(VSComponent component, IVSComponentState.State state, boolean on) Called when the VS component changes state.void
prependMenuItems
(Viewer viewer, IzMenu menu, DesignerProp target) Called to prepend menu items.void
Saves the settings.
Method Details
saveSettings
public void saveSettings()Saves the settings.- Specified by:
saveSettings
in interfaceIVirtualSpacePanel
getTarget
Called to get the edited property.- Specified by:
getTarget
in interfaceIContextMenuContributor
- Specified by:
getTarget
in interfaceIContextMenuContributorFormControl<Viewer>
- Returns:
- The target, or null to use the default edited property.
onEditedProperty
Selection changed for panel.- Specified by:
onEditedProperty
in interfaceIVirtualSpacePanel
onResolved
Description copied from interface:IVSGenericComponentListener
Called when the property reference has been resolved. UI components use this method to set its state according to the VS component.- Specified by:
onResolved
in interfaceIVSGenericComponentListener
- Parameters:
reference
- The VSComponentReference instance holding the component reference.component
- The VS component reference that is now resolved.
onBroken
Description copied from interface:IVSGenericComponentListener
Called when the property reference has been broken, i.e. unresolved.- Specified by:
onBroken
in interfaceIVSGenericComponentListener
- Parameters:
reference
- The VSComponentReference instance holding the component reference.component
- The VS component reference that is now unresolved.
onStateChanged
Description copied from interface:IVSGenericComponentListener
Called when the VS component changes state.- Specified by:
onStateChanged
in interfaceIVSGenericComponentListener
- Parameters:
component
- The VS component.state
- The state change.on
- New state.
onParentStateChanged
Description copied from interface:IVSComponentListener
Called when the parent changes state.- Specified by:
onParentStateChanged
in 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.
prependMenuItems
Description copied from interface:IContextMenuContributor
Called to prepend menu items.- Specified by:
prependMenuItems
in interfaceIContextMenuContributor
- Specified by:
prependMenuItems
in interfaceIContextMenuContributorFormControl<Viewer>
- Parameters:
viewer
- The viewer.menu
- The pop-up menu.target
- The selected target in the viewer, null for none.
appendMenuItems
Description copied from interface:IContextMenuContributor
Called to append menu items.- Specified by:
appendMenuItems
in interfaceIContextMenuContributor
- Specified by:
appendMenuItems
in interfaceIContextMenuContributorFormControl<Viewer>
- Parameters:
viewer
- The viewer.menu
- The pop-up menu.target
- The selected target in the viewer, null for none.
doAddExpandCollapseAll
Description copied from interface:IContextMenuContributor
Checks if expand/collapse all menu items should be added.- Specified by:
doAddExpandCollapseAll
in interfaceIContextMenuContributor