Gridarta Editor
net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Implements actions related to the MainView. More...

+ Inheritance diagram for net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void gameObjectTextEditor ()
 Action method to open the game object text editor. More...
 
 MainViewActions (@NotNull final MainView mainView, @NotNull final GameObjectAttributesControl< G, A, R > gameObjectAttributesControl, @NotNull final Tab gameObjectTab, @NotNull final TextEditorTab< G, A, R > textEditorTab)
 Creates a new instance. More...
 
void setAction (@NotNull final Action action, @NotNull final String name)
 Sets the Action instance for this editor action. More...
 

Private Attributes

final GameObjectAttributesControl< G, A, R > gameObjectAttributesControl
 The GameObjectAttributesControl to display. More...
 
final Tab gameObjectTab
 The game object Tab to display. More...
 
final MainView mainView
 The MainView instance. More...
 
Tab prevTab
 The previously active Tab before the last switch to gameObjectTab. More...
 
GameObjectAttributesTab< G, A, R > prevTab2
 The previously active GameObjectAttributesTab in gameObjectTab before the last switch to textEditorTab. More...
 
boolean prevTabSaved
 Whether a previously selected tab has been remembered. More...
 
final TextEditorTab< G, A, R > textEditorTab
 The GameObjectAttributesTab that displays the game object text editor. More...
 

Detailed Description

Implements actions related to the MainView.

Author
Andreas Kirschbaum

Definition at line 39 of file MainViewActions.java.

Constructor & Destructor Documentation

◆ MainViewActions()

net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MainViewActions ( @NotNull final MainView  mainView,
@NotNull final GameObjectAttributesControl< G, A, R >  gameObjectAttributesControl,
@NotNull final Tab  gameObjectTab,
@NotNull final TextEditorTab< G, A, R >  textEditorTab 
)

Member Function Documentation

◆ gameObjectTextEditor()

◆ setAction()

void net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction ( @NotNull final Action  action,
@NotNull final String  name 
)

Sets the Action instance for this editor action.

Parameters
actionthe action instance
namethe name of the action

Implements net.sf.gridarta.utils.EditorAction.

Definition at line 140 of file MainViewActions.java.

Member Data Documentation

◆ gameObjectAttributesControl

◆ gameObjectTab

◆ mainView

◆ prevTab

Tab net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.prevTab
private

The previously active Tab before the last switch to gameObjectTab.

Set to

null

if not yet switched or if no other tab was active. Ignored unless prevTabSaved is set.

Definition at line 78 of file MainViewActions.java.

◆ prevTab2

GameObjectAttributesTab<G, A, R> net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.prevTab2
private

The previously active GameObjectAttributesTab in gameObjectTab before the last switch to textEditorTab.

Set to

null

if not yet switched or if no other tab was active. Ignored unless prevTabSaved is set.

Definition at line 87 of file MainViewActions.java.

◆ prevTabSaved

boolean net.sf.gridarta.gui.misc.MainViewActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.prevTabSaved
private

Whether a previously selected tab has been remembered.

Applies to prevTab and prevTab2.

Definition at line 70 of file MainViewActions.java.

◆ textEditorTab


The documentation for this class was generated from the following file: