net.sf.gridarta.gui.dialog.plugin.parameter
public class ArchComboBoxModel<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractListModel implements ComboBoxModel
Modifier and Type | Field and Description |
---|---|
private List<Archetype<G,A,R>> |
archList |
private static String |
CURRENT_FILTER |
private static long |
serialVersionUID |
private Object |
value |
listenerList
Constructor and Description |
---|
ArchComboBoxModel(ArchetypeSet<G,A,R> archetypeSet) |
Modifier and Type | Method and Description |
---|---|
private void |
enlargeFilter(String filter) |
private static int |
getCommonPrefix(CharSequence s1,
CharSequence s2) |
Object |
getElementAt(int index) |
Archetype<G,A,R> |
getNearestMatch(String name) |
Object |
getSelectedItem() |
int |
getSize() |
private void |
narrowFilter(String filter) |
void |
setFilter(String filter) |
void |
setSelectedItem(Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
@NotNull private final List<Archetype<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>> archList
@NotNull private static final String CURRENT_FILTER
private static final long serialVersionUID
public ArchComboBoxModel(@NotNull ArchetypeSet<G,A,R> archetypeSet)
@Nullable public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public void setSelectedItem(Object anItem)
setSelectedItem
in interface ComboBoxModel
@NotNull public Object getElementAt(int index)
getElementAt
in interface ListModel
private static int getCommonPrefix(@NotNull CharSequence s1, @NotNull CharSequence s2)
private void enlargeFilter(@NotNull String filter)
private void narrowFilter(@NotNull String filter)
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.