Package net.sf.gridarta.gui.misc
Class MainViewActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.misc.MainViewActions<G,A,R>
-
- All Implemented Interfaces:
EditorAction
public class MainViewActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
Implements actions related to theMainView.
-
-
Constructor Summary
Constructors Constructor Description MainViewActions(@NotNull MainView mainView, @NotNull GameObjectAttributesControl<G,A,R> gameObjectAttributesControl, @NotNull Tab gameObjectTab, @NotNull TextEditorTab<G,A,R> textEditorTab)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgameObjectTextEditor()Action method to open the game object text editor.voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.
-
-
-
Constructor Detail
-
MainViewActions
public MainViewActions(@NotNull @NotNull MainView mainView, @NotNull @NotNull GameObjectAttributesControl<G,A,R> gameObjectAttributesControl, @NotNull @NotNull Tab gameObjectTab, @NotNull @NotNull TextEditorTab<G,A,R> textEditorTab)Creates a new instance.- Parameters:
mainView- the main view instancegameObjectAttributesControl- the game object attributes control to displaygameObjectTab- the game object tab to displaytextEditorTab- the game object attributes tab that displays the game object text editor
-
-
Method Detail
-
gameObjectTextEditor
@ActionMethod public void gameObjectTextEditor()
Action method to open the game object text editor.
-
setAction
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)Description copied from interface:EditorActionSets theActioninstance for this editor action.- Specified by:
setActionin interfaceEditorAction- Parameters:
action- the action instancename- the name of the action
-
-