Class ArchTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.panel.gameobjectattributes.AbstractGameObjectAttributesTab<G,A,R>
-
- net.sf.gridarta.gui.panel.gameobjectattributes.ArchTab<G,A,R>
-
- All Implemented Interfaces:
GameObjectAttributesTab<G,A,R>
public class ArchTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractGameObjectAttributesTab<G,A,R>
The "Arch" tab in the archetype chooser. It display information about the currently selected object.
-
-
Constructor Summary
Constructors Constructor Description ArchTab(@NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Sets the focus to this component.protected voidapply(G gameObject)Applies settings to the given game object.booleancanApply()Returns whether a selected game object exists and the current value differs from the initially set value.voiddirection0()Action method for direction.voiddirection1()Action method for direction.voiddirection2()Action method for direction.voiddirection3()Action method for direction.voiddirection4()Action method for direction.voiddirection5()Action method for direction.voiddirection6()Action method for direction.voiddirection7()Action method for direction.voiddirection8()Action method for direction.@NotNull javax.swing.JPanelgetPanel()Creates the contents panel.protected voidrefresh(G gameObject)Refreshes the display.-
Methods inherited from class net.sf.gridarta.gui.panel.gameobjectattributes.AbstractGameObjectAttributesTab
addAutoApply, addGameObjectAttributesTabListener, apply, getSelectedGameObject, getTabSeverity, removeGameObjectAttributesTabListener, setTabSeverity
-
-
-
-
Constructor Detail
-
ArchTab
public ArchTab(@NotNull @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel)Creates a new instance.- Parameters:
archetypeTypeSet- the archetype type setgameObjectAttributesModel- the model to track
-
-
Method Detail
-
getPanel
@NotNull public @NotNull javax.swing.JPanel getPanel()
Description copied from interface:GameObjectAttributesTabCreates the contents panel.- Returns:
- the contents panel
-
canApply
public boolean canApply()
Description copied from interface:GameObjectAttributesTabReturns whether a selected game object exists and the current value differs from the initially set value.- Returns:
- whether
apply()should be called
-
activate
public void activate()
Description copied from interface:GameObjectAttributesTabSets the focus to this component.
-
apply
protected void apply(@NotNull G gameObject)Description copied from class:AbstractGameObjectAttributesTabApplies settings to the given game object.- Specified by:
applyin classAbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
gameObject- the game object to set the contents of
-
refresh
protected final void refresh(@Nullable G gameObject)Description copied from class:AbstractGameObjectAttributesTabRefreshes the display.- Specified by:
refreshin classAbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
gameObject- the game object to set the contents from
-
direction0
@ActionMethod public void direction0()
Action method for direction.
-
direction1
@ActionMethod public void direction1()
Action method for direction.
-
direction2
@ActionMethod public void direction2()
Action method for direction.
-
direction3
@ActionMethod public void direction3()
Action method for direction.
-
direction4
@ActionMethod public void direction4()
Action method for direction.
-
direction5
@ActionMethod public void direction5()
Action method for direction.
-
direction6
@ActionMethod public void direction6()
Action method for direction.
-
direction7
@ActionMethod public void direction7()
Action method for direction.
-
direction8
@ActionMethod public void direction8()
Action method for direction.
-
-