Class TagGroupEditAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.inductiveautomation.ignition.designer.tags.tree.action.TagTreeAction
-
- com.inductiveautomation.ignition.designer.tags.tree.action.TagGroupEditAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,javax.swing.event.TreeSelectionListener
public class TagGroupEditAction extends TagTreeAction
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
VALUE_COMMAND
static java.lang.String
VALUE_LONG_DESCRIPTION
static java.lang.String
VALUE_SHORT_DESCRIPTION
-
Fields inherited from class com.inductiveautomation.ignition.designer.tags.tree.action.TagTreeAction
context
-
-
Constructor Summary
Constructors Constructor Description TagGroupEditAction(DesignerContext context, javax.swing.JTree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected int
maxSelectionCount()
protected boolean
shouldBeEnabled(BrowseTreeNode node)
Called for each selected node that isn't a meta node.void
valueChanged(javax.swing.event.TreeSelectionEvent e)
-
Methods inherited from class com.inductiveautomation.ignition.designer.tags.tree.action.TagTreeAction
allowMixedProviders, findProvider, getEligibleSelectedTagPaths, getNode, getNodes, getSelectedTagPaths, getTagManager, isNodeEligible, setTree, shouldBeEnabled
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
VALUE_COMMAND
public static final java.lang.String VALUE_COMMAND
- See Also:
- Constant Field Values
-
VALUE_SHORT_DESCRIPTION
public static final java.lang.String VALUE_SHORT_DESCRIPTION
- See Also:
- Constant Field Values
-
VALUE_LONG_DESCRIPTION
public static final java.lang.String VALUE_LONG_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TagGroupEditAction
public TagGroupEditAction(DesignerContext context, javax.swing.JTree tree)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
maxSelectionCount
protected int maxSelectionCount()
- Specified by:
maxSelectionCount
in classTagTreeAction
- Returns:
- the maximum selection that could cause this action to be enabled
-
shouldBeEnabled
protected boolean shouldBeEnabled(BrowseTreeNode node)
Description copied from class:TagTreeAction
Called for each selected node that isn't a meta node. The action will become enabled only if all selected nodes are not meta nodes and this function returns true for each node.- Specified by:
shouldBeEnabled
in classTagTreeAction
-
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
- Specified by:
valueChanged
in interfacejavax.swing.event.TreeSelectionListener
- Overrides:
valueChanged
in classTagTreeAction
-
-