|
Gridarta 9263 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.gridarta.gui.dialog.gameobjectattributes.TypesBoxItemListener<G,A,R>
public class TypesBoxItemListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
ItemListener for the type-selection box on the attribute-dialog.
Field Summary | |
---|---|
private ArchetypeType |
archetypeType
Reference to the type data. |
private ArchetypeTypeSet |
archetypeTypeSet
The ArchetypeTypeSet to display. |
private String |
deselected
The latest deselected item. |
private Collection<DialogAttribute<G,A,R,?>> |
dialogAttributes
The DialogAttributes to update. |
private GameObject<G,A,R> |
gameObject
The game object which has the error to be added. |
private GameObjectAttributesDialog<G,A,R> |
gameObjectAttributesDialog
The attribute dialog main frame. |
private boolean |
ignoreEvent
While true , this listener ignores all events. |
private int |
type
The position of this type in the type list. |
private JComboBox |
typeComboBox
The selection box for the type. |
Constructor Summary | |
---|---|
TypesBoxItemListener(GameObjectAttributesDialog<G,A,R> frameNew,
GameObject<G,A,R> gameObject,
int type,
ArchetypeTypeSet archetypeTypeSet,
Collection<DialogAttribute<G,A,R,?>> dialogAttributes,
JComboBox typeComboBox,
ArchetypeType archetypeType)
Creates a new instance. |
Method Summary | |
---|---|
ArchetypeType |
getArchetypeType()
Returns a reference to the type data. |
void |
itemStateChanged(ItemEvent e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final GameObjectAttributesDialog<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> gameObjectAttributesDialog
@NotNull private final GameObject<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> gameObject
@NotNull private final ArchetypeTypeSet archetypeTypeSet
ArchetypeTypeSet
to display.
@NotNull private final Collection<DialogAttribute<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,?>> dialogAttributes
DialogAttributes
to update.
@NotNull private final JComboBox typeComboBox
@NotNull private ArchetypeType archetypeType
@Nullable private String deselected
private boolean ignoreEvent
true
, this listener ignores all events.
private int type
Constructor Detail |
---|
public TypesBoxItemListener(@NotNull GameObjectAttributesDialog<G,A,R> frameNew, @NotNull GameObject<G,A,R> gameObject, int type, @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull Collection<DialogAttribute<G,A,R,?>> dialogAttributes, @NotNull JComboBox typeComboBox, @NotNull ArchetypeType archetypeType)
frameNew
- the attribute dialog main framegameObject
- the game object which has the error to be addedtype
- the initially selected typearchetypeTypeSet
- the archetype type set to displaydialogAttributes
- the dialog attributes to updatetypeComboBox
- the selection box for the typearchetypeType
- the references to the data typeMethod Detail |
---|
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
@NotNull public ArchetypeType getArchetypeType()
|
Gridarta 9263 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2003-2010 The Gridarta Developers. All rights reserved.