Class GameObjectAttributesDialog<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog<G,A,R>
-
public class GameObjectAttributesDialog<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectCommon base class for game object attributes dialogs.
-
-
Constructor Summary
Constructors Constructor Description GameObjectAttributesDialog(@NotNull GameObjectAttributesDialogFactory<G,A,R> gameObjectAttributesDialogFactory, ArchetypeTypeSet archetypeTypeSet, G gameObject, @NotNull java.awt.Frame parent, @NotNull CFTreasureListTree treasureListTree, @NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @NotNull ProjectSettings projectSettings, @NotNull javax.swing.filechooser.FileFilter mapFileFilter, @NotNull javax.swing.filechooser.FileFilter scriptFileFilter, @NotNull FaceObjects faceObjects, @NotNull Spells<GameObjectSpell<G,A,R>> gameObjectSpells, @NotNull Spells<NumberSpell> numberSpells, int undefinedSpellIndex, @NotNull TreasureTree treasureTree, @NotNull javax.swing.ImageIcon noFaceSquareIcon, @NotNull javax.swing.ImageIcon unknownSquareIcon, @NotNull TextAreaDefaults textAreaDefaults, @NotNull MapManager<G,A,R> mapManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribApply()Action method for apply.voidattribCancel()Action method for cancel.voidattribEdit()Turns the summary off.voidattribHelp()Action method for help.voidattribOk()Action method for ok.voidattribSummary()Action method for summary.@NotNull javax.swing.JDialogcreateDialog()Creates a newJDialoginstance for this dialog.
-
-
-
Constructor Detail
-
GameObjectAttributesDialog
public GameObjectAttributesDialog(@NotNull @NotNull GameObjectAttributesDialogFactory<G,A,R> gameObjectAttributesDialogFactory, ArchetypeTypeSet archetypeTypeSet, @NotNull G gameObject, @NotNull @NotNull java.awt.Frame parent, @NotNull @NotNull CFTreasureListTree treasureListTree, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull javax.swing.filechooser.FileFilter mapFileFilter, @NotNull @NotNull javax.swing.filechooser.FileFilter scriptFileFilter, @NotNull @NotNull FaceObjects faceObjects, @NotNull @NotNull Spells<GameObjectSpell<G,A,R>> gameObjectSpells, @NotNull @NotNull Spells<NumberSpell> numberSpells, int undefinedSpellIndex, @NotNull @NotNull TreasureTree treasureTree, @NotNull @NotNull javax.swing.ImageIcon noFaceSquareIcon, @NotNull @NotNull javax.swing.ImageIcon unknownSquareIcon, @NotNull @NotNull TextAreaDefaults textAreaDefaults, @NotNull @NotNull MapManager<G,A,R> mapManager)Creates a new instance.- Parameters:
gameObjectAttributesDialogFactory- the associated factoryarchetypeTypeSet- the reference to the list of archetype typesgameObject- the game object to show dialog for; must be part of a mapparent- the parent frame for showing dialog boxestreasureListTree- the treasure list tree to displayfaceObjectProviders- the face object providers for looking up facesanimationObjects- the animation objects instance for choosing animation namesprojectSettings- the project settings to usemapFileFilter- the file filter to use for map filesscriptFileFilter- the file filter to use for script filesfaceObjects- the face objects instance for choosing face namesgameObjectSpells- the game object spells to usenumberSpells- the numbered spells to useundefinedSpellIndex- the index for "no spell"treasureTree- the treasure tree to usenoFaceSquareIcon- the image icon for no animationsunknownSquareIcon- the image icon for undefined animationstextAreaDefaults- the text area defaults for text fieldsmapManager- the map manager instance
-
-
Method Detail
-
createDialog
@NotNull public @NotNull javax.swing.JDialog createDialog()
Creates a newJDialoginstance for this dialog.- Returns:
- the new dialog
-
attribHelp
@ActionMethod public void attribHelp()
Action method for help.
-
attribOk
@ActionMethod public void attribOk()
Action method for ok.
-
attribApply
@ActionMethod public void attribApply()
Action method for apply.
-
attribCancel
@ActionMethod public void attribCancel()
Action method for cancel.
-
attribSummary
@ActionMethod public void attribSummary()
Action method for summary. Switches the card layout to the summary list of all nonzero attributes.
-
attribEdit
@ActionMethod public void attribEdit()
Turns the summary off. Switches to the input-interface for all attributes and the summary list of all nonzero attributes.
-
-