public class AnimTreeChooseAction extends TreeChooseAction
TreeChooseAction that updates an animation label.| Constructor and Description |
|---|
AnimTreeChooseAction(java.lang.String text,
javax.swing.text.JTextComponent textComponent,
javax.swing.AbstractButton icon,
AnimationObjects animationObjects,
FaceObjectProviders faceObjectProviders,
javax.swing.ImageIcon noFaceSquareIcon,
javax.swing.ImageIcon unknownSquareIcon)
Create a TreeChooseAction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected java.lang.Object |
clone() |
void |
setEnabled(boolean newValue) |
void |
updateIconLabel()
Updates the icon of
icon to reflect the current animation name. |
getFaceNamepublic 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)
text - the text for the buttontextComponent - the text component that holds the current animation
nameicon - the label showing the iconanimationObjects - the animation objects providing the animation
names treefaceObjectProviders - the face object providers for looking up
facesnoFaceSquareIcon - the image icon for no animationsunknownSquareIcon - the image icon for undefined animationspublic void actionPerformed(@NotNull
java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class TreeChooseActionpublic final void updateIconLabel()
icon to reflect the current animation name.@NotNull protected java.lang.Object clone()
clone in class TreeChooseActionpublic void setEnabled(boolean newValue)
setEnabled in interface javax.swing.ActionsetEnabled in class javax.swing.AbstractAction