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());
R getSelectedArchetype()
Returns the selected Archetype.
final void updateDirection(@Nullable final Integer direction)
Sets the selected direction.
Graphical User Interface of Gridarta.
A named panel within the ArchetypeChooserModel.
A named folder within the ArchetypeChooserModel.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
final ArchetypeChooserModel< G, A, R > archetypeChooserModel
The ArchetypeChooserModel to affect.
void addArchetypeChooserModelListener(@NotNull final ArchetypeChooserModelListener< G, A, R > listener)
Adds a listener to be notified of changes.
void setDirection(@Nullable final Integer direction)
Sets the default direction for game objects created from archetypes.
A GUI component for selecting a direction.
GameObjects are the objects based on Archetypes found on maps.
DirectionPane(@NotNull final ArchetypeChooserModel< G, A, R > archetypeChooserModel, final boolean includeDefault)
Creates a new instance.
A GUI component for selecting a direction.
void updateEnabled()
Enables/disables the buttons.
Interface for listeners interested in ArchetypeChooserModel related events.
Abstract base class for classes implementing display modes of the archetype chooser.
The view of the archetype chooser.
void updateEnabled(@Nullable final BaseObject<?, ?, ?, ?> baseObject)
Enables/disables the direction buttons for a given archetype.
static final long serialVersionUID
The serial version UID.
void direction(@Nullable final Integer direction)
ArchetypeChooserFolder< G, A, R > getSelectedFolder()
Returns the selected ArchetypeChooserFolder.
final ArchetypeChooserModelListener< G, A, R > archetypeChooserModelListener
The ArchetypeChooserModelListener attached to archetypeChooserModel.
Interface for MapArchObjects.