Class MainViewActions<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 instance
        gameObjectAttributesControl - the game object attributes control to display
        gameObjectTab - the game object tab to display
        textEditorTab - 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: EditorAction
        Sets the Action instance for this editor action.
        Specified by:
        setAction in interface EditorAction
        Parameters:
        action - the action instance
        name - the name of the action