 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.panel.archetypechooser;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
74 public void selectedArchetypeChanged(@Nullable
final R selectedArchetype) {
79 public void directionChanged(@Nullable
final Integer
direction) {
96 super(includeDefault);
109 updateEnabled(baseObject !=
null && baseObject.usesDirection());
void setDirection(@Nullable final Integer direction)
Sets the default direction for game objects created from archetypes.
The view of the archetype chooser.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
Graphical User Interface of Gridarta.
A named folder within the ArchetypeChooserModel.
Integer getDirection()
Returns the default direction for game objects created from archetypes.
ArchetypeChooserPanel< G, A, R > getSelectedPanel()
Returns the selected ArchetypeChooserPanel.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
A GUI component for selecting a direction.
A named panel within the ArchetypeChooserModel.
DirectionPane(@NotNull final ArchetypeChooserModel< G, A, R > archetypeChooserModel, final boolean includeDefault)
Creates a new instance.
final ArchetypeChooserModel< G, A, R > archetypeChooserModel
The ArchetypeChooserModel to affect.
final void updateDirection(@Nullable final Integer direction)
Sets the selected direction.
void addArchetypeChooserModelListener(@NotNull final ArchetypeChooserModelListener< G, A, R > listener)
Adds a listener to be notified of changes.
void updateEnabled()
Enables/disables the buttons.
R getSelectedArchetype()
Returns the selected Archetype.
void direction(@Nullable final Integer direction)
Called whenever a direction button has been selected.
Abstract base class for classes implementing display modes of the archetype chooser.
static final long serialVersionUID
The serial version UID.
Interface for listeners interested in ArchetypeChooserModel related events.
ArchetypeChooserFolder< G, A, R > getSelectedFolder()
Returns the selected ArchetypeChooserFolder.
A GUI component for selecting a direction.
final ArchetypeChooserModelListener< G, A, R > archetypeChooserModelListener
The ArchetypeChooserModelListener attached to {}.
void updateEnabled(@Nullable final BaseObject<?, ?, ?, ?> baseObject)
Enables/disables the direction buttons for a given archetype.