Gridarta Editor
net.sf.gridarta.gui.mainwindow.GameObjectTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

A Tab that displays the currently selected GameObject. More...

+ Inheritance diagram for net.sf.gridarta.gui.mainwindow.GameObjectTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.gui.mainwindow.GameObjectTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

 GameObjectTab (@NotNull final String ident, @NotNull final GameObjectAttributesControl< G, A, R > gameObjectAttributesControl, @NotNull final Location location, final boolean alternativeLocation, final int index, final boolean defaultOpen)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.gui.utils.tabbedpanel.Tab
void addTabListener (@NotNull final TabListener listener)
 Adds a TabListener to be notified. More...
 
AbstractButton getButton ()
 Returns the AbstractButton for showing or hiding the component. More...
 
Component getComponent ()
 Returns the Component that is shown when this tab is active. More...
 
Location getLocation ()
 Returns the tab's location. More...
 
JMenu getMoveToMenu ()
 Returns the "Move To" menu within the button's context menu. More...
 
JPopupMenu getPopupMenu ()
 Returns the button's context menu. More...
 
Severity getSeverity ()
 Returns the tab's Severity. More...
 
int getSize ()
 Returns the tab's size. More...
 
boolean isAlternativeLocation ()
 Returns whether the button is shown in the alternative location. More...
 
boolean isOpen ()
 Returns the tab's open status. More...
 
void removeTabListener (@NotNull final TabListener listener)
 Removes a TabListener to be notified. More...
 
void setAlternativeLocation (final boolean alternativeLocation)
 Sets whether the button is shown in the alternative location. More...
 
void setLocation (@NotNull final Location location)
 Sets the tab's location. More...
 
void setOpen (final boolean open)
 Sets the tab's open status. More...
 
void setSize (final int size)
 Sets the tab's size. More...
 
void setSplitModeAction (@Nullable final ToggleAction splitModeAction)
 Sets the ToggleAction to update if the "split mode" state changes. More...
 
 Tab (@NotNull final String ident, @NotNull final JComponent component, @NotNull final Location defaultLocation, final boolean alternativeLocation, final int index, final boolean defaultOpen)
 Creates a new instance. More...
 

Additional Inherited Members

- Protected Member Functions inherited from net.sf.gridarta.gui.utils.tabbedpanel.Tab
void setSeverity (@NotNull final Severity severity)
 Sets the tab's Severity. More...
 

Detailed Description

A Tab that displays the currently selected GameObject.

Author
Andreas Kirschbaum

Definition at line 35 of file GameObjectTab.java.

Constructor & Destructor Documentation

◆ GameObjectTab()

net.sf.gridarta.gui.mainwindow.GameObjectTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectTab ( @NotNull final String  ident,
@NotNull final GameObjectAttributesControl< G, A, R >  gameObjectAttributesControl,
@NotNull final Location  location,
final boolean  alternativeLocation,
final int  index,
final boolean  defaultOpen 
)

Creates a new instance.

Parameters
identthe tab's identification string
gameObjectAttributesControlthe game object attributes control to display
locationthe tab's location
alternativeLocationwhether the tab is shown in the alternative location
indexthe tab's index for ordering
defaultOpenthe tab's default opened status

Definition at line 48 of file GameObjectTab.java.

References net.sf.gridarta.gui.utils.tabbedpanel.Tab.setSeverity().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: