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.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.Called to get the edited property.voidonBroken(VSComponentReference reference, VSComponent component) Called when the property reference has been broken, i.e.voidonEditedProperty(GProp<?> _group) Selection changed for panel.voidonParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the parent changes state.voidonResolved(VSComponentReference reference, VSComponent component) Called when the property reference has been resolved.voidonStateChanged(VSComponent component, IVSComponentState.State state, boolean on) Called when the VS component changes state.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
getTarget
Called to get the edited property.- Specified by:
getTargetin interfaceIContextMenuContributor- Specified by:
getTargetin interfaceIContextMenuContributorFormControl<Viewer>- Returns:
- The target, or null to use the default edited property.
onEditedProperty
Selection changed for panel.- Specified by:
onEditedPropertyin interfaceIVirtualSpacePanel
onResolved
Description copied from interface:IVSGenericComponentListenerCalled when the property reference has been resolved. UI components use this method to set its state according to the VS component.- Specified by:
onResolvedin interfaceIVSGenericComponentListener- Parameters:
reference- The VSComponentReference instance holding the component reference.component- The VS component reference that is now resolved.
onBroken
Description copied from interface:IVSGenericComponentListenerCalled when the property reference has been broken, i.e. unresolved.- Specified by:
onBrokenin interfaceIVSGenericComponentListener- Parameters:
reference- The VSComponentReference instance holding the component reference.component- The VS component reference that is now unresolved.
onStateChanged
Description copied from interface:IVSGenericComponentListenerCalled when the VS component changes state.- Specified by:
onStateChangedin interfaceIVSGenericComponentListener- Parameters:
component- The VS component.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.
prependMenuItems
Description copied from interface:IContextMenuContributorCalled 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
Description copied from interface:IContextMenuContributorCalled 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
Description copied from interface:IContextMenuContributorChecks if expand/collapse all menu items should be added.- Specified by:
doAddExpandCollapseAllin interfaceIContextMenuContributor