public class FaceTreeChooseAction extends TreeChooseAction
TreeChooseAction that updates a face label.| Constructor and Description |
|---|
FaceTreeChooseAction(java.lang.String text,
javax.swing.text.JTextComponent textComponent,
javax.swing.AbstractButton icon,
NamedObjects<? extends NamedObject> namedObjects,
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 face name. |
getFaceNamepublic FaceTreeChooseAction(@NotNull
java.lang.String text,
@NotNull
javax.swing.text.JTextComponent textComponent,
@NotNull
javax.swing.AbstractButton icon,
@NotNull
NamedObjects<? extends NamedObject> namedObjects,
@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
face/animation nameicon - the label showing the iconnamedObjects - the named objects providing the face names treefaceObjectProviders - the face provider for looking up iconsnoFaceSquareIcon - 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 face 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