Package net.sf.gridarta.gui.utils
Class TreeChooseAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- net.sf.gridarta.gui.utils.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.AbstractActionAction for choosing a face or animation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTreeChooseAction(@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 voidactionPerformed(@NotNull java.awt.event.ActionEvent e)protected @NotNull TreeChooseActionclone()protected @NotNull java.lang.StringgetFaceName()Returns the current face name.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
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 buttontextComponent- the text component that holds the current face/animation namenamedObjects- the named objects providing the face/animation names treefaceObjectProviders- 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:
clonein classjavax.swing.AbstractAction
-
-