public class ArchTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractGameObjectAttributesTab<G,A,R>
| Constructor and Description |
|---|
ArchTab(ArchetypeTypeSet archetypeTypeSet,
GameObjectAttributesModel<G,A,R> gameObjectAttributesModel)
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 |
direction0()
Action method for direction.
|
void |
direction1()
Action method for direction.
|
void |
direction2()
Action method for direction.
|
void |
direction3()
Action method for direction.
|
void |
direction4()
Action method for direction.
|
void |
direction5()
Action method for direction.
|
void |
direction6()
Action method for direction.
|
void |
direction7()
Action method for direction.
|
void |
direction8()
Action method for direction.
|
javax.swing.JPanel |
getPanel()
Creates the contents panel.
|
protected void |
refresh(G gameObject)
Refreshes the display.
|
addAutoApply, addGameObjectAttributesTabListener, apply, getSelectedGameObject, getTabSeverity, removeGameObjectAttributesTabListener, setTabSeveritypublic ArchTab(@NotNull
ArchetypeTypeSet archetypeTypeSet,
@NotNull
GameObjectAttributesModel<G,A,R> gameObjectAttributesModel)
archetypeTypeSet - the archetype type setgameObjectAttributesModel - the model to track@NotNull public javax.swing.JPanel getPanel()
public boolean canApply()
apply() should be calledpublic void activate()
protected void apply(@NotNull
G gameObject)
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 ofprotected final void refresh(@Nullable
G gameObject)
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 from@ActionMethod public void direction0()
@ActionMethod public void direction1()
@ActionMethod public void direction2()
@ActionMethod public void direction3()
@ActionMethod public void direction4()
@ActionMethod public void direction5()
@ActionMethod public void direction6()
@ActionMethod public void direction7()
@ActionMethod public void direction8()