public class ArchComboBoxEditor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
implements javax.swing.ComboBoxEditor
Constructor and Description |
---|
ArchComboBoxEditor(@NotNull javax.swing.JComboBox<Archetype<G,A,R>> comboBox,
@NotNull ArchComboBoxModel<G,A,R> archComboBoxModel,
@NotNull ObjectChooser<G,A,R> objectChooser,
@NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel,
@NotNull FaceObjectProviders faceObjectProviders)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(@NotNull java.awt.event.ActionListener l) |
@NotNull javax.swing.text.JTextComponent |
getEditor() |
@NotNull java.awt.Component |
getEditorComponent() |
@Nullable java.lang.Object |
getItem() |
void |
removeActionListener(@NotNull java.awt.event.ActionListener l) |
void |
selectAll() |
void |
setItem(@Nullable java.lang.Object anObject) |
public ArchComboBoxEditor(@NotNull @NotNull javax.swing.JComboBox<Archetype<G,A,R>> comboBox, @NotNull @NotNull ArchComboBoxModel<G,A,R> archComboBoxModel, @NotNull @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel, @NotNull @NotNull FaceObjectProviders faceObjectProviders)
objectChooser
- the object chooser for selecting archetypes from
opened mapsgameObjectAttributesModel
- the game object attributes model for
selecting archetypes from opened mapsfaceObjectProviders
- the face object providers for looking up
facespublic void selectAll()
selectAll
in interface javax.swing.ComboBoxEditor
@NotNull public @NotNull java.awt.Component getEditorComponent()
getEditorComponent
in interface javax.swing.ComboBoxEditor
public void addActionListener(@NotNull @NotNull java.awt.event.ActionListener l)
addActionListener
in interface javax.swing.ComboBoxEditor
public void removeActionListener(@NotNull @NotNull java.awt.event.ActionListener l)
removeActionListener
in interface javax.swing.ComboBoxEditor
@Nullable public @Nullable java.lang.Object getItem()
getItem
in interface javax.swing.ComboBoxEditor
public void setItem(@Nullable @Nullable java.lang.Object anObject)
setItem
in interface javax.swing.ComboBoxEditor
@NotNull public @NotNull javax.swing.text.JTextComponent getEditor()