Class AbstractLayoutTool.AbstractAlignmentAction
java.lang.Object
javax.swing.AbstractAction
com.inductiveautomation.ignition.client.util.action.BaseAction
com.inductiveautomation.ignition.designer.designable.tools.AbstractLayoutTool.AbstractAlignmentAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
AbstractLayoutTool.AlignEdge
,AbstractLayoutTool.CenterAction
,AbstractLayoutTool.RowStackAction
- Enclosing class:
- AbstractLayoutTool
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAlignmentAction
(String resourceBase, String icon) protected
AbstractAlignmentAction
(String resourceBase, Icon icon) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract void
align
(DesignableDelegate delegate, List<JComponent> items) boolean
evaluateEnabled
(DesignableDelegate delegate, List<JComponent> selected) protected boolean
Return true if this action requires 2 or more components to be meaningfulprotected boolean
void
setEnabled
(boolean b) Methods inherited from class com.inductiveautomation.ignition.client.util.action.BaseAction
create, createButton, createButton, evaluateEnabled, listenTo, listenTo, setBundleKey, setIcon, updateEnabled
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
AbstractAlignmentAction
-
AbstractAlignmentAction
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
align
-
evaluateEnabled
-
isMultiAlignment
protected boolean isMultiAlignment()Return true if this action requires 2 or more components to be meaningful -
isSiblingsOnly
protected boolean isSiblingsOnly() -
setEnabled
void setEnabled(boolean b)
-