Class AddRIDAction

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

    public class AddRIDAction
    extends ToolTipAction
    Action for adding a local path.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static javax.swing.UIDefaults icons
      The image icons.
      protected IThreadPool tp
      The thread pool.
      protected ITreeAbstraction treepanel
      The tree.
      • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)
      Action performed.
      static javax.swing.Icon getIcon()
      Get the icon.
      static java.lang.String getName()
      Get the name.
      protected IFuture<IThreadPool> getThreadPool()
      Get the thread pool.
      static java.lang.String getTooltipText()
      Get the tooltip text.
      boolean isEnabled()
      Test if action is available in current context.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Field Detail

      • icons

        protected static final javax.swing.UIDefaults icons
        The image icons.
    • Constructor Detail

      • AddRIDAction

        public AddRIDAction​(ITreeAbstraction treepanel)
        Create a new action
      • AddRIDAction

        public AddRIDAction​(java.lang.String name,
                            javax.swing.Icon icon,
                            java.lang.String desc,
                            ITreeAbstraction treepanel)
        Create a new action
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Test if action is available in current context.
        Specified by:
        isEnabled in interface javax.swing.Action
        Overrides:
        isEnabled in class javax.swing.AbstractAction
        Returns:
        True, if available.
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Action performed.
      • getIcon

        public static javax.swing.Icon getIcon()
        Get the icon.
        Returns:
        The icon.
      • getName

        public static java.lang.String getName()
        Get the name.
        Returns:
        The name.
      • getTooltipText

        public static java.lang.String getTooltipText()
        Get the tooltip text.
        Returns:
        The tooltip text.