![]() |
Gridarta Editor
|
Common base class for game object attributes dialogs. More...
Public Member Functions | |
void | attribApply () |
Action method for apply. More... | |
void | attribCancel () |
Action method for cancel. More... | |
void | attribEdit () |
Turns the summary off. More... | |
void | attribHelp () |
Action method for help. More... | |
void | attribOk () |
Action method for ok. More... | |
void | attribSummary () |
Action method for summary. More... | |
JDialog | createDialog () |
Creates a new JDialog instance for this dialog. More... | |
GameObjectAttributesDialog (@NotNull final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory, final ArchetypeTypeSet archetypeTypeSet, @NotNull final G gameObject, @NotNull final Frame parent, @NotNull final CFTreasureListTree treasureListTree, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects, @NotNull final ProjectSettings projectSettings, @NotNull final FileFilter mapFileFilter, @NotNull final FileFilter scriptFileFilter, @NotNull final FaceObjects faceObjects, @NotNull final Spells< GameObjectSpell< G, A, R >> gameObjectSpells, @NotNull final Spells< NumberSpell > numberSpells, final int undefinedSpellIndex, @NotNull final TreasureTree treasureTree, @NotNull final ImageIcon noFaceSquareIcon, @NotNull final ImageIcon unknownSquareIcon, @NotNull final TextAreaDefaults textAreaDefaults, @NotNull final MapManager< G, A, R > mapManager) | |
Creates a new instance. More... | |
Private Member Functions | |
boolean | applySettings () |
This method is called when the "apply"-button has been pressed. More... | |
boolean | applySettings2 () |
This method is called when the "apply"-button has been pressed. More... | |
JComponent | buildHeader () |
Constructs the upper left part of the attribute dialog, containing name, type, archetype name and face. More... | |
Object[] | buildOptions () |
Constructs the dialog options: help, default, okay, apply, cancel. More... | |
Component | buildTypesBox () |
Constructs the combo box of the available archetypes. More... | |
ImageIcon | getFace (@NotNull final BaseObject< G, A, R, ?> gameObject) |
Returns the face for a GameObject. More... | |
Private Attributes | |
final Archetype< G, A, R > | archetype |
gameObject's archetype. More... | |
ArchetypeType | archetypeType |
The ArchetypeType of gameObject. More... | |
final ArchetypeTypeSet | archetypeTypeSet |
Reference to the ArchetypeTypeSet. More... | |
final AttributesPaneBuilder< G, A, R > | attributesPaneBuilder |
/he AttributesPaneBuilder for creating (and re-creating) the attribute tabs. More... | |
AbstractButton | cancelButton |
The Button for cancel. More... | |
final CardLayout | cardLayout = new CardLayout() |
The CardLayout for toggling between edit and summary. More... | |
final Container | centerPanel |
The central pane, this is the parent component of above tabbed pane. More... | |
final Action | editAction = ACTION_BUILDER.createAction(false, "attribEdit", this) |
The Action for switching to the edit. More... | |
JLabel | faceLabel |
The panel for object's face (png). More... | |
final FaceObjectProviders | faceObjectProviders |
The FaceObjectProviders for looking up faces. More... | |
final FaceObjectProvidersListener | faceObjectProvidersListener |
The FaceObjectProvidersListener for detecting reloaded faces. More... | |
final G | gameObject |
The game object being modified. More... | |
final GameObjectAttributesDialogFactory< G, A, R > | gameObjectAttributesDialogFactory |
The associated factory. More... | |
final MapManager< G, A, R > | mapManager |
The MapManager instance. More... | |
final MapManagerListener< G, A, R > | mapManagerListener |
The MapManagerListener to detect closed maps. More... | |
final MapModel< G, A, R > | mapModel |
gameObject's initial map. More... | |
final MapModelListener< G, A, R > | mapModelListener |
Tracks mapModel's map for changes: when the gameObject is removed, cancels this dialog. More... | |
final Point | mapPos |
The position of the game object. More... | |
JButton | okButton |
The Button for ok. More... | |
final JOptionPane | optionPane |
final Frame | parent |
The parent frame for showing dialog boxes. More... | |
final Action | summaryAction = ACTION_BUILDER.createAction(false, "attribSummary", this) |
The Action for switching to the summary. More... | |
AbstractButton | summaryEditButton |
The Button for toggling the summary. More... | |
final JTextPane | summaryTextPane |
The text pane where the summary is displayed. More... | |
final Style | summaryTextStyle |
final ItemListener | typesBoxItemListener |
ItemListener for the type-selection box on the attribute dialog. More... | |
Static Private Attributes | |
static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
Action Builder. More... | |
static final Category | LOG = Logger.getLogger(GameObjectAttributesDialog.class) |
The Logger for printing log messages. More... | |
Common base class for game object attributes dialogs.
Definition at line 103 of file GameObjectAttributesDialog.java.
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog | ( | @NotNull final GameObjectAttributesDialogFactory< G, A, R > | gameObjectAttributesDialogFactory, |
final ArchetypeTypeSet | archetypeTypeSet, | ||
@NotNull final G | gameObject, | ||
@NotNull final Frame | parent, | ||
@NotNull final CFTreasureListTree | treasureListTree, | ||
@NotNull final FaceObjectProviders | faceObjectProviders, | ||
@NotNull final AnimationObjects | animationObjects, | ||
@NotNull final ProjectSettings | projectSettings, | ||
@NotNull final FileFilter | mapFileFilter, | ||
@NotNull final FileFilter | scriptFileFilter, | ||
@NotNull final FaceObjects | faceObjects, | ||
@NotNull final Spells< GameObjectSpell< G, A, R >> | gameObjectSpells, | ||
@NotNull final Spells< NumberSpell > | numberSpells, | ||
final int | undefinedSpellIndex, | ||
@NotNull final TreasureTree | treasureTree, | ||
@NotNull final ImageIcon | noFaceSquareIcon, | ||
@NotNull final ImageIcon | unknownSquareIcon, | ||
@NotNull final TextAreaDefaults | textAreaDefaults, | ||
@NotNull final MapManager< G, A, R > | mapManager | ||
) |
Creates a new instance.
gameObjectAttributesDialogFactory | the associated factory |
archetypeTypeSet | the reference to the list of archetype types |
gameObject | the game object to show dialog for; must be part of a map |
parent | the parent frame for showing dialog boxes |
treasureListTree | the treasure list tree to display |
faceObjectProviders | the face object providers for looking up faces |
animationObjects | the animation objects instance for choosing animation names |
projectSettings | the project settings to use |
mapFileFilter | the file filter to use for map files |
scriptFileFilter | the file filter to use for script files |
faceObjects | the face objects instance for choosing face names |
gameObjectSpells | the game object spells to use |
numberSpells | the numbered spells to use |
undefinedSpellIndex | the index for "no spell" |
treasureTree | the treasure tree to use |
noFaceSquareIcon | the image icon for no animations |
unknownSquareIcon | the image icon for undefined animations |
textAreaDefaults | the text area defaults for text fields |
mapManager | the map manager instance |
Definition at line 446 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.model.face.FaceObjectProviders.addFaceObjectProvidersListener(), net.sf.gridarta.model.mapmanager.MapManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addMapManagerListener(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addMapModelListener(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetype, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeType, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeTypeSet, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attributesPaneBuilder, net.sf.gridarta.gui.dialog.gameobjectattributes.AttributesPaneBuilder< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildAttribute(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildHeader(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildOptions(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.cardLayout, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.centerPanel, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.faceObjectProviders, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.faceObjectProvidersListener, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObject, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObjectAttributesDialogFactory, net.sf.gridarta.model.archetypetype.ArchetypeTypeSet.getArchetypeTypeByBaseObject(), net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapLocation(), net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), net.sf.gridarta.gui.dialog.gameobjectattributes.AttributesPaneBuilder< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getTabbedPane(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapManager, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapManagerListener, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapModel, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapModelListener, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapPos, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.optionPane, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parent, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryTextPane, and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryTextStyle.
|
private |
This method is called when the "apply"-button has been pressed.
All the settings from the dialog get written into the GameObject.
Definition at line 690 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.beginTransaction(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.endTransaction(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObject.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribApply(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribOk().
|
private |
This method is called when the "apply"-button has been pressed.
All the settings from the dialog get written into the GameObject.
Definition at line 705 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetype, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeType, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeTypeSet, net.sf.gridarta.gui.dialog.gameobjectattributes.ConfirmErrorsDialog.askConfirmErrors(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attributesPaneBuilder, errors, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.faceLabel, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObject, net.sf.gridarta.model.archetypetype.ArchetypeTypeSet.getArchetypeTypeByBaseObject(), net.sf.gridarta.gui.dialog.gameobjectattributes.AttributesPaneBuilder< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getDialogAttributes(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getFace(), net.sf.gridarta.model.gameobject.GameObjectUtils.getSyntaxErrors(), net.sf.gridarta.model.archetypetype.ArchetypeTypeSet.isFallbackArchetypeType(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.optionPane, net.sf.gridarta.utils.StringUtils.removeTrailingWhitespaceFromLines(), and net.sf.gridarta.model.baseobject.BaseObject< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, T extends BaseObject< G, A, R, T >.TYPE.
void net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribApply | ( | ) |
Action method for apply.
Definition at line 635 of file GameObjectAttributesDialog.java.
void net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribCancel | ( | ) |
Action method for cancel.
Definition at line 643 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.cancelButton, and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.optionPane.
void net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribEdit | ( | ) |
Turns the summary off.
Switches to the input-interface for all attributes and the summary list of all nonzero attributes.
Definition at line 680 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.cardLayout, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.centerPanel, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryAction, and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryEditButton.
void net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribHelp | ( | ) |
Action method for help.
Definition at line 616 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ACTION_BUILDER, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeType, net.sf.gridarta.model.archetypetype.ArchetypeType.getDescription(), net.sf.gridarta.model.archetypetype.ArchetypeType.getTypeName(), net.sf.gridarta.model.archetypetype.ArchetypeType.getUse(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parent.
void net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribOk | ( | ) |
Action method for ok.
Definition at line 625 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.okButton, and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.optionPane.
void net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribSummary | ( | ) |
Action method for summary.
Switches the card layout to the summary list of all nonzero attributes.
Definition at line 652 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attributesPaneBuilder, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.cardLayout, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.centerPanel, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.editAction, net.sf.gridarta.gui.dialog.gameobjectattributes.AttributesPaneBuilder< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getDialogAttributes(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.LOG, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryEditButton, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryTextPane, and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryTextStyle.
|
private |
Constructs the upper left part of the attribute dialog, containing name, type, archetype name and face.
Definition at line 550 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ACTION_BUILDER, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetype, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildTypesBox(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.faceLabel, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObject, net.sf.gridarta.model.archetype.Archetype< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getArchetypeName(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getFace(), and net.sf.gridarta.utils.ActionBuilderUtils.newLabel().
|
private |
Constructs the dialog options: help, default, okay, apply, cancel.
Definition at line 605 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ACTION_BUILDER, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.cancelButton, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.okButton, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryAction, and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.summaryEditButton.
|
private |
Constructs the combo box of the available archetypes.
Definition at line 518 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeType, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeTypeSet, net.sf.gridarta.model.archetypetype.ArchetypeTypeSet.getArchetypeTypeCount(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.typesBoxItemListener.
JDialog net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createDialog | ( | ) |
Creates a new JDialog instance for this dialog.
Definition at line 504 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ACTION_BUILDER, net.sf.gridarta.utils.ActionBuilderUtils.getString(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.okButton, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.optionPane, and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parent.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialogFactory< G, A, R >.showAttributeDialog().
|
private |
Returns the face for a GameObject.
gameObject | the game object to return face for |
Definition at line 539 of file GameObjectAttributesDialog.java.
References net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.faceObjectProviders, net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObject, and net.sf.gridarta.model.face.FaceObjectProviders.getFace().
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildHeader().
|
staticprivate |
Action Builder.
Definition at line 115 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribHelp(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildHeader(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildOptions(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createDialog().
|
private |
gameObject's archetype.
@serial
Definition at line 209 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildHeader(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
The ArchetypeType of gameObject.
Definition at line 274 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribHelp(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildTypesBox(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
Reference to the ArchetypeTypeSet.
Definition at line 127 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildTypesBox(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
/he AttributesPaneBuilder for creating (and re-creating) the attribute tabs.
Definition at line 174 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribSummary(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
The Button for cancel.
@serial
Definition at line 244 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribCancel(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildOptions().
|
private |
The CardLayout for toggling between edit and summary.
@serial
Definition at line 216 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribEdit(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribSummary(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
The central pane, this is the parent component of above tabbed pane.
@serial
Definition at line 258 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribEdit(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribSummary(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
The Action for switching to the edit.
@serial
Definition at line 230 of file GameObjectAttributesDialog.java.
|
private |
The panel for object's face (png).
@serial
Definition at line 181 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildHeader().
|
private |
The FaceObjectProviders for looking up faces.
Definition at line 140 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getFace().
|
private |
The FaceObjectProvidersListener for detecting reloaded faces.
Definition at line 355 of file GameObjectAttributesDialog.java.
|
private |
The game object being modified.
@serial
Definition at line 188 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildHeader(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getFace().
|
private |
The associated factory.
Definition at line 121 of file GameObjectAttributesDialog.java.
|
staticprivate |
The Logger for printing log messages.
Definition at line 109 of file GameObjectAttributesDialog.java.
|
private |
The MapManager instance.
Definition at line 146 of file GameObjectAttributesDialog.java.
|
private |
The MapManagerListener to detect closed maps.
Definition at line 325 of file GameObjectAttributesDialog.java.
|
private |
|
private |
Tracks mapModel's map for changes: when the gameObject is removed, cancels this dialog.
Definition at line 281 of file GameObjectAttributesDialog.java.
|
private |
The position of the game object.
@serial
Definition at line 202 of file GameObjectAttributesDialog.java.
|
private |
The Button for ok.
@serial
Definition at line 251 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribOk(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildOptions(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createDialog().
|
private |
Definition at line 149 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribCancel(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribOk(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createDialog(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
The parent frame for showing dialog boxes.
@serial
Definition at line 134 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribHelp(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createDialog(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
The Action for switching to the summary.
@serial
Definition at line 223 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribEdit(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildOptions().
|
private |
The Button for toggling the summary.
@serial
Definition at line 237 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribEdit(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribSummary(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.buildOptions().
|
private |
The text pane where the summary is displayed.
@serial
Definition at line 265 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribSummary(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
Definition at line 268 of file GameObjectAttributesDialog.java.
Referenced by net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.attribSummary(), and net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog().
|
private |
ItemListener for the type-selection box on the attribute dialog.
Definition at line 368 of file GameObjectAttributesDialog.java.