Class AttributesPaneBuilder<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.AttributesPaneBuilder<G,A,R>
-
public class AttributesPaneBuilder<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectBuilder for game object attribute panels.
-
-
Constructor Summary
Constructors Constructor Description AttributesPaneBuilder(@NotNull Attributes attributes, @NotNull java.awt.Component parent, @NotNull ArchetypeTypeSet archetypeTypeSet, @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)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildAttribute(@NotNull Attributes attributes, @NotNull java.lang.Iterable<ArchetypeAttributeSection> archetypeType)Constructs the central part of the attribute dialog, containing the object's attributes.@NotNull java.lang.Iterable<DialogAttribute<G,A,R,?>>getDialogAttributes()Returns allDialogAttributesin the dialog.@NotNull java.awt.ComponentgetTabbedPane()Returns theJTabbedPanethat contains all attribute tabs.
-
-
-
Constructor Detail
-
AttributesPaneBuilder
public AttributesPaneBuilder(@NotNull @NotNull Attributes attributes, @NotNull @NotNull java.awt.Component parent, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet, @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)Creates a new instance.- Parameters:
attributes- the game object for which the attributes are builtparent- the parent component for dialogsarchetypeTypeSet- the reference to the list of archetype typestreasureListTree- 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 fields
-
-
Method Detail
-
getTabbedPane
@NotNull public @NotNull java.awt.Component getTabbedPane()
Returns theJTabbedPanethat contains all attribute tabs.- Returns:
- the pane
-
getDialogAttributes
@NotNull public @NotNull java.lang.Iterable<DialogAttribute<G,A,R,?>> getDialogAttributes()
Returns allDialogAttributesin the dialog.- Returns:
- the dialog attributes
-
buildAttribute
public void buildAttribute(@NotNull @NotNull Attributes attributes, @NotNull @NotNull java.lang.Iterable<ArchetypeAttributeSection> archetypeType)Constructs the central part of the attribute dialog, containing the object's attributes.- Parameters:
attributes- the attributes for which the attributes panel is builtarchetypeType- the archetype type ofgamObject
-
-