Interface GameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
-
- All Known Implementing Classes:
AbstractGameObjectAttributesTab,ArchTab,EventsTab,FaceTab,MsgTextTab,TextEditorTab
public interface GameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>A tab in the game object attributes panel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Sets the focus to this component.voidaddGameObjectAttributesTabListener(@NotNull GameObjectAttributesTabListener<G,A,R> listener)Adds a listener.voidapply()Applies the current settings.booleancanApply()Returns whether a selected game object exists and the current value differs from the initially set value.@NotNull javax.swing.JPanelgetPanel()Creates the contents panel.@NotNull SeveritygetTabSeverity()Returns the tab severity.voidremoveGameObjectAttributesTabListener(@NotNull GameObjectAttributesTabListener<G,A,R> listener)Removes a listener.
-
-
-
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 unlesscanApply()returnstrue.
-
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.
-
-