Class GameObjectAttributesDialog<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<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.Object
    Common base class for game object attributes dialogs.
    • 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 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
    • Method Detail

      • createDialog

        @NotNull
        public @NotNull javax.swing.JDialog createDialog()
        Creates a new JDialog instance 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.