 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.utils;
22 import java.awt.event.ActionEvent;
23 import javax.swing.AbstractAction;
24 import javax.swing.text.JTextComponent;
29 import org.jetbrains.annotations.NotNull;
81 if (selected !=
null) {
85 if (newValue !=
null) {
104 }
catch (
final CloneNotSupportedException ex) {
105 throw new AssertionError(ex);
Base package of all Gridarta classes.
Action for choosing a face or animation.
TreeChooseAction(@NotNull final String text, @NotNull final JTextComponent textComponent, @NotNull final NamedObjects<? extends NamedObject > namedObjects, @NotNull final FaceObjectProviders faceObjectProviders)
Creates a new instance.
String getFaceName()
Returns the current face name.
void actionPerformed(@NotNull final ActionEvent e)
Provider for faces of GameObjects and Archetypes.
Graphical User Interface of Gridarta.
Utility class for NamedObjects related functions.
final JTextComponent textComponent
The JTextComponent that holds the current face/animation name.
Classes for handling data that is organized in a tree.
static< E extends NamedObject > String showNodeChooserDialog(@NotNull final Component parentComponent, @NotNull final String initial, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final NamedObjects< E > namedObjects)
Show a dialog for choosing from the object tree.
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
final NamedObjects<? extends NamedObject > namedObjects
The NamedObjects providing the face/animation names tree.
The face is the appearance of an object.
String getPath()
Get the path of this AbstractNamedObject.
static final long serialVersionUID
The serial version UID.
This class manages NamedObjects, managing their tree as well as providing a method for showing a dial...