Gridarta Editor
net.sf.gridarta.gui.utils.FaceTreeChooseAction Class Reference

A TreeChooseAction that updates a face label. More...

+ Inheritance diagram for net.sf.gridarta.gui.utils.FaceTreeChooseAction:
+ Collaboration diagram for net.sf.gridarta.gui.utils.FaceTreeChooseAction:

Public Member Functions

void actionPerformed (@NotNull final ActionEvent e)
 
 FaceTreeChooseAction (@NotNull final String text, @NotNull final JTextComponent textComponent, @NotNull final AbstractButton icon, @NotNull final NamedObjects<? extends NamedObject > namedObjects, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final ImageIcon noFaceSquareIcon, @NotNull final ImageIcon unknownSquareIcon)
 Create a TreeChooseAction. More...
 
void setEnabled (final boolean newValue)
 
final void updateIconLabel ()
 Updates the icon of icon to reflect the current face name. More...
 
- Public Member Functions inherited from net.sf.gridarta.gui.utils.TreeChooseAction
void actionPerformed (@NotNull final ActionEvent e)
 
String getFaceName ()
 Returns the current face name. More...
 
 TreeChooseAction (@NotNull final String text, @NotNull final JTextComponent textComponent, @NotNull final NamedObjects<? extends NamedObject > namedObjects, @NotNull final FaceObjectProviders faceObjectProviders)
 Create a TreeChooseAction. More...
 

Protected Member Functions

Object clone ()
 
- Protected Member Functions inherited from net.sf.gridarta.gui.utils.TreeChooseAction
Object clone ()
 

Private Attributes

final FaceObjectProviders faceObjectProviders
 The FaceObjectProviders for looking up faces. More...
 
final AbstractButton icon
 The button showing the icon. More...
 
final ImageIcon noFaceSquareIcon
 The ImageIcon for no animations. More...
 
final ImageIcon unknownSquareIcon
 The ImageIcon for undefined animations. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

A TreeChooseAction that updates a face label.

Author
Andreas Kirschbaum

Definition at line 37 of file FaceTreeChooseAction.java.

Constructor & Destructor Documentation

◆ FaceTreeChooseAction()

net.sf.gridarta.gui.utils.FaceTreeChooseAction.FaceTreeChooseAction ( @NotNull final String  text,
@NotNull final JTextComponent  textComponent,
@NotNull final AbstractButton  icon,
@NotNull final NamedObjects<? extends NamedObject namedObjects,
@NotNull final FaceObjectProviders  faceObjectProviders,
@NotNull final ImageIcon  noFaceSquareIcon,
@NotNull final ImageIcon  unknownSquareIcon 
)

Create a TreeChooseAction.

Parameters
textthe text for the button
textComponentthe text component that holds the current face/animation name
iconthe label showing the icon
namedObjectsthe named objects providing the face names tree
faceObjectProvidersthe face provider for looking up icons
noFaceSquareIconthe image icon for no animations
unknownSquareIconthe image icon for undefined animations

Definition at line 79 of file FaceTreeChooseAction.java.

References net.sf.gridarta.gui.utils.FaceTreeChooseAction.faceObjectProviders, net.sf.gridarta.gui.utils.FaceTreeChooseAction.icon, net.sf.gridarta.gui.utils.FaceTreeChooseAction.noFaceSquareIcon, net.sf.gridarta.gui.utils.FaceTreeChooseAction.unknownSquareIcon, and net.sf.gridarta.gui.utils.FaceTreeChooseAction.updateIconLabel().

+ Here is the call graph for this function:

Member Function Documentation

◆ actionPerformed()

void net.sf.gridarta.gui.utils.FaceTreeChooseAction.actionPerformed ( @NotNull final ActionEvent  e)

Definition at line 93 of file FaceTreeChooseAction.java.

References net.sf.gridarta.gui.utils.FaceTreeChooseAction.updateIconLabel().

+ Here is the call graph for this function:

◆ clone()

Object net.sf.gridarta.gui.utils.FaceTreeChooseAction.clone ( )
protected

Definition at line 115 of file FaceTreeChooseAction.java.

◆ setEnabled()

void net.sf.gridarta.gui.utils.FaceTreeChooseAction.setEnabled ( final boolean  newValue)

Definition at line 120 of file FaceTreeChooseAction.java.

Referenced by net.sf.gridarta.gui.utils.FaceComponent.setEnabled().

+ Here is the caller graph for this function:

◆ updateIconLabel()

Member Data Documentation

◆ faceObjectProviders

final FaceObjectProviders net.sf.gridarta.gui.utils.FaceTreeChooseAction.faceObjectProviders
private

◆ icon

final AbstractButton net.sf.gridarta.gui.utils.FaceTreeChooseAction.icon
private

The button showing the icon.

Definition at line 48 of file FaceTreeChooseAction.java.

Referenced by net.sf.gridarta.gui.utils.FaceTreeChooseAction.FaceTreeChooseAction().

◆ noFaceSquareIcon

final ImageIcon net.sf.gridarta.gui.utils.FaceTreeChooseAction.noFaceSquareIcon
private

◆ serialVersionUID

final long net.sf.gridarta.gui.utils.FaceTreeChooseAction.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 42 of file FaceTreeChooseAction.java.

◆ unknownSquareIcon

final ImageIcon net.sf.gridarta.gui.utils.FaceTreeChooseAction.unknownSquareIcon
private

The documentation for this class was generated from the following file: