Class AnimTreeChooseAction

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

    public class AnimTreeChooseAction
    extends TreeChooseAction
    A TreeChooseAction that updates an animation label.
    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 
      Constructor Description
      AnimTreeChooseAction​(@NotNull java.lang.String text, @NotNull javax.swing.text.JTextComponent textComponent, @NotNull javax.swing.AbstractButton icon, @NotNull AnimationObjects animationObjects, @NotNull FaceObjectProviders faceObjectProviders, @NotNull javax.swing.ImageIcon noFaceSquareIcon, @NotNull javax.swing.ImageIcon unknownSquareIcon)
      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 AnimTreeChooseAction clone()  
      void setEnabled​(boolean newValue)  
      void updateIconLabel()
      Updates the icon of icon to reflect the current animation name.
      • Methods inherited from class javax.swing.AbstractAction

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

      • AnimTreeChooseAction

        public AnimTreeChooseAction​(@NotNull
                                    @NotNull java.lang.String text,
                                    @NotNull
                                    @NotNull javax.swing.text.JTextComponent textComponent,
                                    @NotNull
                                    @NotNull javax.swing.AbstractButton icon,
                                    @NotNull
                                    @NotNull AnimationObjects animationObjects,
                                    @NotNull
                                    @NotNull FaceObjectProviders faceObjectProviders,
                                    @NotNull
                                    @NotNull javax.swing.ImageIcon noFaceSquareIcon,
                                    @NotNull
                                    @NotNull javax.swing.ImageIcon unknownSquareIcon)
        Creates a new instance.
        Parameters:
        text - the text for the button
        textComponent - the text component that holds the current animation name
        icon - the label showing the icon
        animationObjects - the animation objects providing the animation names tree
        faceObjectProviders - the face object providers for looking up faces
        noFaceSquareIcon - the image icon for no animations
        unknownSquareIcon - the image icon for undefined animations
    • Method Detail

      • actionPerformed

        public void actionPerformed​(@NotNull
                                    @NotNull java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Overrides:
        actionPerformed in class TreeChooseAction
      • updateIconLabel

        public final void updateIconLabel()
        Updates the icon of icon to reflect the current animation name.
      • setEnabled

        public void setEnabled​(boolean newValue)
        Specified by:
        setEnabled in interface javax.swing.Action
        Overrides:
        setEnabled in class javax.swing.AbstractAction