Class AbstractNavTreeNode.PopupAction
- java.lang.Object
 - 
- javax.swing.AbstractAction
 - 
- com.inductiveautomation.ignition.client.util.action.BaseAction
 - 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.PopupAction
 
 
 
 
- 
- All Implemented Interfaces:
 java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
- Enclosing class:
 - AbstractNavTreeNode
 
protected abstract static class AbstractNavTreeNode.PopupAction extends BaseAction
A BaseAction that gets set up with the node selection prior to being shown- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected AbstractNavTreeNodeactionHandlerjava.util.List<AbstractNavTreeNode>selection 
- 
Constructor Summary
Constructors Constructor Description PopupAction(java.lang.String bundleKey, javax.swing.Icon icon) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanderiveEnabled(AbstractNavTreeNode actionHandler, java.util.List<AbstractNavTreeNode> selection)voidsetSelection(AbstractNavTreeNode source, AbstractNavTreeNode actionHandler, java.util.List<AbstractNavTreeNode> selection)Standard implementation disables the action if the shared action handler is null.- 
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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
selection
@Nullable public java.util.List<AbstractNavTreeNode> selection
 
- 
actionHandler
@Nullable protected AbstractNavTreeNode actionHandler
 
 - 
 
- 
Method Detail
- 
setSelection
public void setSelection(@Nonnull AbstractNavTreeNode source, @Nullable AbstractNavTreeNode actionHandler, @Nullable java.util.List<AbstractNavTreeNode> selection)Standard implementation disables the action if the shared action handler is null. Otherwise, will call thederiveEnabled(AbstractNavTreeNode, List)method to see if it should be enabled or not. 
- 
deriveEnabled
protected boolean deriveEnabled(@Nonnull AbstractNavTreeNode actionHandler, @Nonnull java.util.List<AbstractNavTreeNode> selection) 
 - 
 
 -