20 package net.sf.gridarta.gui.panel.gameobjectattributes;
22 import javax.swing.JPanel;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
49 super(gameObjectAttributesModel);
61 protected void refresh(@Nullable
final G gameObject) {
76 protected void apply(@NotNull
final G gameObject) {
void addAutoApply( @NotNull final Component component)
Registers a component that auto-applies when the focus is lost.
Component getTextPane()
Returns the text input pane.
final GameObjectTextEditor gameObjectTextEditor
The displayed GameObjectTextEditor instance.
Graphical User Interface of Gridarta.
Manages ArchetypeType instances, list, and bitmask definitions.
The tab containing the game object text editor.
void applyChanges(@NotNull final GameObject<?, ?, ?> gameObject)
Updates a GameObject's attributes from the input field.
void refresh(@Nullable final G gameObject)
Severity refreshDisplay(@Nullable final GameObject<?, ?, ?> gameObject)
Refreshes the input field to show the attributes of a GameObject.
void activate()
Activates this component.
Base package of all Gridarta classes.
boolean canApplyChanges()
Returns whether the current text field differs from the initial value.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
void apply(@NotNull final G gameObject)
void setTabSeverity( @NotNull final Severity tabSeverity)
Sets the tab severity.
Implements the "Game Object Text Editor".
Defines types of GameObjects with corresponding attributes.
Interface for MapArchObjects.
Base class for GameObjectAttributesTab implementations.
TextEditorTab(@NotNull final GameObjectAttributesModel< G, A, R > gameObjectAttributesModel, @NotNull final ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.