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(javax.swing.JComboBox comboBox,
ArchComboBoxModel<G,A,R> archComboBoxModel,
ObjectChooser<G,A,R> objectChooser,
GameObjectAttributesModel<G,A,R> gameObjectAttributesModel,
FaceObjectProviders faceObjectProviders)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener l) |
void |
editorEntryChange() |
javax.swing.text.JTextComponent |
getEditor() |
java.awt.Component |
getEditorComponent() |
java.lang.Object |
getItem() |
void |
lockEditor() |
void |
removeActionListener(java.awt.event.ActionListener l) |
void |
selectAll() |
void |
setItem(java.lang.Object anObject) |
void |
unlockEditor() |
public ArchComboBoxEditor(@NotNull javax.swing.JComboBox comboBox, @NotNull ArchComboBoxModel<G,A,R> archComboBoxModel, @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel, @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 lockEditor()
public void unlockEditor()
public void selectAll()
selectAll
in interface javax.swing.ComboBoxEditor
@NotNull public java.awt.Component getEditorComponent()
getEditorComponent
in interface javax.swing.ComboBoxEditor
public void addActionListener(@NotNull java.awt.event.ActionListener l)
addActionListener
in interface javax.swing.ComboBoxEditor
public void removeActionListener(@NotNull java.awt.event.ActionListener l)
removeActionListener
in interface javax.swing.ComboBoxEditor
@Nullable public java.lang.Object getItem()
getItem
in interface javax.swing.ComboBoxEditor
public void setItem(@Nullable java.lang.Object anObject)
setItem
in interface javax.swing.ComboBoxEditor
@NotNull public javax.swing.text.JTextComponent getEditor()
public void editorEntryChange()