Class TreeChooseAction

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

    public class TreeChooseAction
    extends javax.swing.AbstractAction
    Action for choosing a face or animation.
    See Also:
    Serialized Form
    • 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

      Constructors 
      Modifier Constructor Description
      protected TreeChooseAction​(@NotNull java.lang.String text, @NotNull javax.swing.text.JTextComponent textComponent, @NotNull NamedObjects<? extends NamedObject> namedObjects, @NotNull FaceObjectProviders faceObjectProviders)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(@NotNull java.awt.event.ActionEvent e)  
      protected @NotNull TreeChooseAction clone()  
      protected @NotNull java.lang.String getFaceName()
      Returns the current face name.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, 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
    • Constructor Detail

      • TreeChooseAction

        protected TreeChooseAction​(@NotNull
                                   @NotNull java.lang.String text,
                                   @NotNull
                                   @NotNull javax.swing.text.JTextComponent textComponent,
                                   @NotNull
                                   @NotNull NamedObjects<? extends NamedObject> namedObjects,
                                   @NotNull
                                   @NotNull FaceObjectProviders faceObjectProviders)
        Creates a new instance.
        Parameters:
        text - the text for the button
        textComponent - the text component that holds the current face/animation name
        namedObjects - the named objects providing the face/animation names tree
        faceObjectProviders - the face object providers for looking up faces
    • Method Detail

      • actionPerformed

        public void actionPerformed​(@NotNull
                                    @NotNull java.awt.event.ActionEvent e)
      • getFaceName

        @NotNull
        protected @NotNull java.lang.String getFaceName()
        Returns the current face name.
        Returns:
        the current face name
      • clone

        @NotNull
        protected @NotNull TreeChooseAction clone()
        Overrides:
        clone in class javax.swing.AbstractAction