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

    • Constructor Detail

      • EventsTab

        public EventsTab​(@NotNull
                         @NotNull java.awt.Frame parent,
                         @NotNull
                         @NotNull MapManager<G,​A,​R> mapManager,
                         @NotNull
                         @NotNull GameObjectAttributesModel<G,​A,​R> gameObjectAttributesModel,
                         @NotNull
                         @NotNull ScriptArchEditor<G,​A,​R> scriptArchEditor,
                         @NotNull
                         @NotNull ScriptArchData<G,​A,​R> scriptArchData,
                         @NotNull
                         @NotNull ScriptArchDataUtils<G,​A,​R> scriptArchDataUtils,
                         @NotNull
                         @NotNull ScriptArchUtils scriptArchUtils)
        Creates a new instance.
        Parameters:
        parent - the parent frame for dialog boxes
        mapManager - the map manager
        gameObjectAttributesModel - the model to track
        scriptArchEditor - the script arch editor instance to use
        scriptArchData - the script arch data instance to use
        scriptArchDataUtils - the script arch data utils to use
        scriptArchUtils - the script arch utils to use
    • Method Detail

      • getPanel

        @NotNull
        public @NotNull javax.swing.JPanel getPanel()
        Description copied from interface: GameObjectAttributesTab
        Creates the contents panel.
        Returns:
        the contents panel
      • canApply

        public boolean canApply()
        Description copied from interface: GameObjectAttributesTab
        Returns 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: GameObjectAttributesTab
        Sets the focus to this component.
      • eventAddNew

        @ActionMethod
        public void eventAddNew()
        Action method for creating a new event.
      • eventEditData

        @ActionMethod
        public void eventEditData()
        Action method for editing the data of an existing event.
      • eventEdit

        @ActionMethod
        public void eventEdit()
        Action method for editing an existing event.
      • eventRemove

        @ActionMethod
        public void eventRemove()
        Action method for removing an existing event.