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

Common base class for game object attributes dialogs. More...

+ Collaboration diagram for net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

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...
 

Detailed Description

Common base class for game object attributes dialogs.

Author
Christian Hujer
Andreas Kirschbaum

Definition at line 103 of file GameObjectAttributesDialog.java.

Constructor & Destructor Documentation

◆ GameObjectAttributesDialog()

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.

Parameters
gameObjectAttributesDialogFactorythe associated factory
archetypeTypeSetthe reference to the list of archetype types
gameObjectthe game object to show dialog for; must be part of a map
parentthe parent frame for showing dialog boxes
treasureListTreethe treasure list tree to display
faceObjectProvidersthe face object providers for looking up faces
animationObjectsthe animation objects instance for choosing animation names
projectSettingsthe project settings to use
mapFileFilterthe file filter to use for map files
scriptFileFilterthe file filter to use for script files
faceObjectsthe face objects instance for choosing face names
gameObjectSpellsthe game object spells to use
numberSpellsthe numbered spells to use
undefinedSpellIndexthe index for "no spell"
treasureTreethe treasure tree to use
noFaceSquareIconthe image icon for no animations
unknownSquareIconthe image icon for undefined animations
textAreaDefaultsthe text area defaults for text fields
mapManagerthe 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.

+ Here is the call graph for this function:

Member Function Documentation

◆ applySettings()

boolean net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings ( )
private

◆ applySettings2()

boolean net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings2 ( )
private

This method is called when the "apply"-button has been pressed.

All the settings from the dialog get written into the GameObject.

Returns
true if the settings were applied, false if error occurred

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.

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ attribApply()

◆ attribCancel()

◆ attribEdit()

◆ attribHelp()

◆ attribOk()

◆ attribSummary()

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.

+ Here is the call graph for this function:

◆ buildHeader()

JComponent 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

Constructs the upper left part of the attribute dialog, containing name, type, archetype name and face.

Returns
a
JScrollPane
with the upper left part of the dialog window

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().

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildOptions()

Object [] 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

◆ buildTypesBox()

◆ createDialog()

◆ getFace()

Member Data Documentation

◆ ACTION_BUILDER

◆ archetype

◆ archetypeType

◆ archetypeTypeSet

◆ attributesPaneBuilder

◆ cancelButton

◆ cardLayout

◆ centerPanel

◆ editAction

final Action net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.editAction = ACTION_BUILDER.createAction(false, "attribEdit", this)
private

◆ faceLabel

◆ faceObjectProviders

◆ faceObjectProvidersListener

final FaceObjectProvidersListener net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.faceObjectProvidersListener
private
Initial value:
= new FaceObjectProvidersListener() {
@Override
public void facesReloaded() {
}
}

The FaceObjectProvidersListener for detecting reloaded faces.

Definition at line 355 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().

◆ gameObject

◆ gameObjectAttributesDialogFactory

◆ LOG

final Category net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.LOG = Logger.getLogger(GameObjectAttributesDialog.class)
staticprivate

◆ mapManager

◆ mapManagerListener

final MapManagerListener<G, A, R> net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapManagerListener
private
Initial value:
= new MapManagerListener<G, A, R>() {
@Override
public void currentMapChanged(@Nullable final MapControl<G, A, R> mapControl) {
}
@Override
public void mapCreated(@NotNull final MapControl<G, A, R> mapControl, final boolean interactive) {
}
@Override
public void mapClosing(@NotNull final MapControl<G, A, R> mapControl) {
}
@Override
public void mapClosed(@NotNull final MapControl<G, A, R> mapControl) {
if (mapControl.getMapModel() == mapModel) {
}
}
}

The MapManagerListener to detect closed maps.

Definition at line 325 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().

◆ mapModel

◆ mapModelListener

◆ mapPos

◆ okButton

◆ optionPane

final JOptionPane net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.optionPane
private

◆ parent

◆ summaryAction

◆ summaryEditButton

◆ summaryTextPane

◆ summaryTextStyle

◆ typesBoxItemListener

final ItemListener net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.typesBoxItemListener
private

The documentation for this class was generated from the following file:
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.mapManagerListener
final MapManagerListener< G, A, R > mapManagerListener
The MapManagerListener to detect closed maps.
Definition: GameObjectAttributesDialog.java:325
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.mapModelListener
final MapModelListener< G, A, R > mapModelListener
Tracks mapModel's map for changes: when the gameObject is removed, cancels this dialog.
Definition: GameObjectAttributesDialog.java:281
net.sf.gridarta.model.mapmanager.MapManager.removeMapManagerListener
void removeMapManagerListener(@NotNull MapManagerListener< G, A, R > listener)
Removes a MapManagerListener to be notified.
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.cancelButton
AbstractButton cancelButton
The Button for cancel.
Definition: GameObjectAttributesDialog.java:244
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.faceLabel
JLabel faceLabel
The panel for object's face (png).
Definition: GameObjectAttributesDialog.java:181
net.sf.gridarta.model.face.FaceObjectProviders.removeFaceObjectProvidersListener
void removeFaceObjectProvidersListener(@NotNull final FaceObjectProvidersListener listener)
Removes a FaceObjectProvidersListener to be notified about changes.
Definition: FaceObjectProviders.java:206
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.mapManager
final MapManager< G, A, R > mapManager
The MapManager instance.
Definition: GameObjectAttributesDialog.java:146
net.sf.gridarta.model.mapmodel.MapModel.removeMapModelListener
void removeMapModelListener(@NotNull MapModelListener< G, A, R > listener)
Unregister a map listener.
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.mapModel
final MapModel< G, A, R > mapModel
gameObject's initial map.
Definition: GameObjectAttributesDialog.java:195
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.gameObjectAttributesDialogFactory
final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory
The associated factory.
Definition: GameObjectAttributesDialog.java:121
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.gameObject
final G gameObject
The game object being modified.
Definition: GameObjectAttributesDialog.java:188
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.faceObjectProvidersListener
final FaceObjectProvidersListener faceObjectProvidersListener
The FaceObjectProvidersListener for detecting reloaded faces.
Definition: GameObjectAttributesDialog.java:355
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.getFace
ImageIcon getFace(@NotNull final BaseObject< G, A, R, ?> gameObject)
Returns the face for a GameObject.
Definition: GameObjectAttributesDialog.java:539
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.faceObjectProviders
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
Definition: GameObjectAttributesDialog.java:140
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog.optionPane
final JOptionPane optionPane
Definition: GameObjectAttributesDialog.java:149
net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialogFactory.hideAttributeDialog
void hideAttributeDialog(@NotNull final G gameObject)
Hides the game object attributes dialog for a given GameObject instance.
Definition: GameObjectAttributesDialogFactory.java:241