public interface ObjectChooserTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
Modifier and Type | Method and Description |
---|---|
@NotNull java.awt.Component |
getComponent()
Returns the component to show in the object chooser.
|
@Nullable BaseObject<G,A,R,?> |
getSelection()
Returns the selected game object.
|
@NotNull java.util.List<? extends BaseObject<G,A,R,?>> |
getSelections()
Returns the selected game objects.
|
@NotNull java.lang.String |
getTitle()
Returns the title to display in the object chooser.
|
boolean |
isMatching(G gameObject)
Returns whether the current selection matches the given game object.
|
void |
setActive(boolean active)
Called whenever this tab becomes active or inactive.
|
@NotNull @NotNull java.awt.Component getComponent()
void setActive(boolean active)
active
- whether this tab is activeboolean isMatching(@NotNull G gameObject)
gameObject
- the game object to compare to@Nullable @Nullable BaseObject<G,A,R,?> getSelection()
null
if no game
objects are selected@NotNull @NotNull java.util.List<? extends BaseObject<G,A,R,?>> getSelections()
@NotNull @NotNull java.lang.String getTitle()