Package com.iizigo.vs
Class ActionsPanel
- All Implemented Interfaces:
IContextMenuContributor,IContextMenuContributorFormControl<Viewer>,IVirtualSpacePanel,IVSActionListener,IVSComponentListener,IVSComponentState,Drawable
public class ActionsPanel extends Composite implements IVirtualSpacePanel, IContextMenuContributor, IVSActionListener
Panel used for the Participants in the VirtualSpace.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.StateField Summary
Method 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.Gets the default target when none other is found for the pop-up menu in the viewer.voidonActionCompleted(VSAction action, VSActionTXProcess process, Throwable exception) Called after the action completes the TXP processing i.e.voidonActionInvoked(VSAction action, VSActionTXProcess process) Called before the action invokes the Action Actors.voidonBroken(VSRelativeReference<?> reference, VSAction action) Called when the property reference has been broken, i.e.voidonConnections(IVSActionListener[] listeners) Called to update the connections.voidonEditedProperty(GProp<?> _action) Selection changed for panel.voidonParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the parent changes state.voidonResolved(VSRelativeReference<?> reference, VSAction action) Called when the property reference has been resolved.voidonStateChanged(VSAction action, IVSComponentState.State state, boolean on) Called when the field changes state.voidprependMenuItems(Viewer viewer, IzMenu menu, DesignerProp target) Called to prepend menu items.voidSaves the settings.Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, redraw, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBarMethods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.swt.graphics.Drawable
isAutoScalable
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.onResolved
Description copied from interface:IVSActionListenerCalled when the property reference has been resolved. UI components use this method to set its state according to the field.- Specified by:
onResolvedin interfaceIVSActionListener- Parameters:
reference- The VSRelativeReference instance holding the reference.action- The target reference.
onBroken
Description copied from interface:IVSActionListenerCalled when the property reference has been broken, i.e. unresolved.- Specified by:
onBrokenin interfaceIVSActionListener- Parameters:
reference- The VSRelativeReference instance holding the reference.action- The target reference.
onStateChanged
Description copied from interface:IVSActionListenerCalled when the field changes state.- Specified by:
onStateChangedin interfaceIVSActionListener- Parameters:
action- The VS action.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.
onActionInvoked
Description copied from interface:IVSActionListenerCalled before the action invokes the Action Actors.This method is called in the execution trigger thread.
- Specified by:
onActionInvokedin interfaceIVSActionListener- Parameters:
action- The VS action.process- The initialized process.
onActionCompleted
Description copied from interface:IVSActionListenerCalled after the action completes the TXP processing i.e. all its Action Actor calls. This method is called regardless of success or failures. It can be used to check the state of the process.This method is called from the thread that executed the TX action process.
- Specified by:
onActionCompletedin interfaceIVSActionListener- Parameters:
action- The VS action.process- The completed process.exception- Potential exception in TX process, null for none.