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
MainView.| Constructor and Description |
|---|
MainViewActions(@NotNull MainView mainView,
@NotNull GameObjectAttributesControl<G,A,R> gameObjectAttributesControl,
@NotNull Tab gameObjectTab,
@NotNull TextEditorTab<G,A,R> textEditorTab)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
gameObjectTextEditor()
Action method to open the game object text editor.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
public MainViewActions(@NotNull
@NotNull MainView mainView,
@NotNull
@NotNull GameObjectAttributesControl<G,A,R> gameObjectAttributesControl,
@NotNull
@NotNull Tab gameObjectTab,
@NotNull
@NotNull TextEditorTab<G,A,R> textEditorTab)
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@ActionMethod public void gameObjectTextEditor()
public void setAction(@NotNull
@NotNull javax.swing.Action action,
@NotNull
@NotNull java.lang.String name)
EditorActionAction instance for this editor action.setAction in interface EditorActionaction - the action instancename - the name of the action