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(@NotNull ArchetypeTypeSet archetypeTypeSet,
@NotNull 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.
|
@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 ArchTab(@NotNull @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel)
archetypeTypeSet
- the archetype type setgameObjectAttributesModel
- the model to track@NotNull public @NotNull javax.swing.JPanel getPanel()
GameObjectAttributesTab
public boolean canApply()
GameObjectAttributesTab
apply()
should be calledpublic void activate()
GameObjectAttributesTab
protected 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 ofprotected 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 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()