Interface GameObjectAttributesTab<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Method Detail

      • getPanel

        @NotNull
        @NotNull javax.swing.JPanel getPanel()
        Creates the contents panel.
        Returns:
        the contents panel
      • canApply

        boolean canApply()
        Returns whether a selected game object exists and the current value differs from the initially set value.
        Returns:
        whether apply() should be called
      • apply

        void apply()
        Applies the current settings. It will be run within a map transaction for the current game object. This function will not be called unless canApply() returns true.
      • addGameObjectAttributesTabListener

        void addGameObjectAttributesTabListener​(@NotNull
                                                @NotNull GameObjectAttributesTabListener<G,​A,​R> listener)
        Adds a listener.
        Parameters:
        listener - the listener
      • removeGameObjectAttributesTabListener

        void removeGameObjectAttributesTabListener​(@NotNull
                                                   @NotNull GameObjectAttributesTabListener<G,​A,​R> listener)
        Removes a listener.
        Parameters:
        listener - the listener
      • getTabSeverity

        @NotNull
        @NotNull Severity getTabSeverity()
        Returns the tab severity.
        Returns:
        the tab severity
      • activate

        void activate()
        Sets the focus to this component.