public class ArchComboBoxModel<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends javax.swing.AbstractListModel<Archetype<G,A,R>> implements javax.swing.ComboBoxModel<Archetype<G,A,R>>
Constructor and Description |
---|
ArchComboBoxModel(@NotNull ArchetypeSet<G,A,R> archetypeSet) |
Modifier and Type | Method and Description |
---|---|
@NotNull Archetype<G,A,R> |
getElementAt(int index) |
@NotNull Archetype<G,A,R> |
getNearestMatch(@NotNull java.lang.String name) |
@Nullable java.lang.Object |
getSelectedItem() |
int |
getSize() |
void |
setFilter(@NotNull java.lang.String filter) |
void |
setSelectedItem(@Nullable java.lang.Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public ArchComboBoxModel(@NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet)
@Nullable public @Nullable java.lang.Object getSelectedItem()
public void setSelectedItem(@Nullable @Nullable java.lang.Object anItem)
public int getSize()
public void setFilter(@NotNull @NotNull java.lang.String filter)