public class MapParameterComboBoxModel<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends javax.swing.DefaultComboBoxModel<MapControl<G,A,R>>
Constructor and Description |
---|
MapParameterComboBoxModel(@NotNull MapManager<G,A,R> mapManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull MapControl<G,A,R> |
getElementAt(int index) |
int |
getIndexOf(@NotNull java.lang.Object anObject) |
@Nullable java.lang.Object |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(@Nullable java.lang.Object anObject) |
addElement, insertElementAt, removeAllElements, removeElement, removeElementAt
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public MapParameterComboBoxModel(@NotNull @NotNull MapManager<G,A,R> mapManager)
mapManager
- the map manager to use@NotNull public @NotNull MapControl<G,A,R> getElementAt(int index)
getElementAt
in interface javax.swing.ListModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
getElementAt
in class javax.swing.DefaultComboBoxModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
public int getIndexOf(@NotNull @NotNull java.lang.Object anObject)
getIndexOf
in class javax.swing.DefaultComboBoxModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
@Nullable public @Nullable java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
getSelectedItem
in class javax.swing.DefaultComboBoxModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
public int getSize()
getSize
in interface javax.swing.ListModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
getSize
in class javax.swing.DefaultComboBoxModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
public void setSelectedItem(@Nullable @Nullable java.lang.Object anObject)
setSelectedItem
in interface javax.swing.ComboBoxModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
setSelectedItem
in class javax.swing.DefaultComboBoxModel<MapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>