Class BrowseOpcAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, javax.swing.event.TreeSelectionListener

    public abstract class BrowseOpcAction
    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
      • 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
    • Field Detail

      • 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

      • BrowseOpcAction

        public BrowseOpcAction​(DesignerContext context,
                               javax.swing.JTree tree)
    • Method Detail

      • maxSelectionCount

        protected int maxSelectionCount()
        Specified by:
        maxSelectionCount in class TagTreeAction
        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 class TagTreeAction
      • valueChanged

        public void valueChanged​(javax.swing.event.TreeSelectionEvent e)
        Specified by:
        valueChanged in interface javax.swing.event.TreeSelectionListener
        Overrides:
        valueChanged in class TagTreeAction