public class MsgTextTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractGameObjectAttributesTab<G,A,R>
| Constructor and Description |
|---|
MsgTextTab(@NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Sets the focus to this component.
|
protected void |
apply(G gameObject)
Applies settings to the given game object.
|
boolean |
canApply()
Returns whether a selected game object exists and the current value
differs from the initially set value.
|
@NotNull javax.swing.JPanel |
getPanel()
Creates the contents panel.
|
protected void |
refresh(G gameObject)
Refreshes the display.
|
addAutoApply, addGameObjectAttributesTabListener, apply, getSelectedGameObject, getTabSeverity, removeGameObjectAttributesTabListener, setTabSeveritypublic MsgTextTab(@NotNull
@NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel)
gameObjectAttributesModel - the model to track@NotNull public @NotNull javax.swing.JPanel getPanel()
GameObjectAttributesTabprotected final void refresh(@Nullable
G gameObject)
AbstractGameObjectAttributesTabrefresh in class AbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>gameObject - the game object to set the contents frompublic boolean canApply()
GameObjectAttributesTabapply() should be calledpublic void activate()
GameObjectAttributesTabprotected void apply(@NotNull
G gameObject)
AbstractGameObjectAttributesTabapply in class AbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>gameObject - the game object to set the contents of