public class EventsTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractGameObjectAttributesTab<G,A,R>
Constructor and Description |
---|
EventsTab(@NotNull java.awt.Frame parent,
@NotNull MapManager<G,A,R> mapManager,
@NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel,
@NotNull ScriptArchEditor<G,A,R> scriptArchEditor,
@NotNull ScriptArchData<G,A,R> scriptArchData,
@NotNull ScriptArchDataUtils<G,A,R> scriptArchDataUtils,
@NotNull ScriptArchUtils scriptArchUtils)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Sets the focus to this component.
|
protected void |
apply(G gameObject)
Applies settings to the given game object.
|
boolean |
canApply()
Returns whether a selected game object exists and the current value
differs from the initially set value.
|
void |
eventAddNew()
Action method for creating a new event.
|
void |
eventEdit()
Action method for editing an existing event.
|
void |
eventEditData()
Action method for editing the data of an existing event.
|
void |
eventRemove()
Action method for removing an existing event.
|
@NotNull javax.swing.JPanel |
getPanel()
Creates the contents panel.
|
protected void |
refresh(G gameObject)
Refreshes the display.
|
addAutoApply, addGameObjectAttributesTabListener, apply, getSelectedGameObject, getTabSeverity, removeGameObjectAttributesTabListener, setTabSeverity
public EventsTab(@NotNull @NotNull java.awt.Frame parent, @NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel, @NotNull @NotNull ScriptArchEditor<G,A,R> scriptArchEditor, @NotNull @NotNull ScriptArchData<G,A,R> scriptArchData, @NotNull @NotNull ScriptArchDataUtils<G,A,R> scriptArchDataUtils, @NotNull @NotNull ScriptArchUtils scriptArchUtils)
parent
- the parent frame for dialog boxesmapManager
- the map managergameObjectAttributesModel
- the model to trackscriptArchEditor
- the script arch editor instance to usescriptArchData
- the script arch data instance to usescriptArchDataUtils
- the script arch data utils to usescriptArchUtils
- the script arch utils to use@NotNull public @NotNull javax.swing.JPanel getPanel()
GameObjectAttributesTab
public boolean canApply()
GameObjectAttributesTab
apply()
should be calledpublic void activate()
GameObjectAttributesTab
protected final void refresh(@Nullable G gameObject)
AbstractGameObjectAttributesTab
refresh
in class AbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to set the contents fromprotected void apply(@NotNull G gameObject)
AbstractGameObjectAttributesTab
apply
in class AbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to set the contents of@ActionMethod public void eventAddNew()
@ActionMethod public void eventEditData()
@ActionMethod public void eventEdit()
@ActionMethod public void eventRemove()