public static class CapOptions.CapOptionsComboBoxModel
extends java.lang.Object
implements javax.swing.ComboBoxModel
| Constructor and Description |
|---|
CapOptionsComboBoxModel() |
CapOptionsComboBoxModel(java.util.List<CapOptions.CapOptionItem> fullList,
Source.Capability capability,
boolean filterInvalidItems,
java.lang.Object selectedValue)
Will set the selectedItem to cap value, or list default (if cap value doesn't exist) or fall back to the first item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListDataListener(javax.swing.event.ListDataListener l) |
java.lang.Object |
getElementAt(int index) |
java.lang.Object |
getSelectedItem() |
int |
getSelecteIndex() |
int |
getSize() |
void |
removeListDataListener(javax.swing.event.ListDataListener l) |
void |
setList(java.util.List<CapOptions.CapOptionItem> fullList,
Source.Capability capability,
boolean filterInvalidItems,
java.lang.Object defaultSelectedValue)
Will set the selectedItem to cap value, or list default (if cap value doesn't exist) or fall back to the first item.
|
void |
setSelectedIndex(int index) |
void |
setSelectedItem(java.lang.Object anItem) |
public CapOptionsComboBoxModel()
public CapOptionsComboBoxModel(java.util.List<CapOptions.CapOptionItem> fullList, Source.Capability capability, boolean filterInvalidItems, java.lang.Object selectedValue)
fullList - full list of itemscapability - public void setList(java.util.List<CapOptions.CapOptionItem> fullList, Source.Capability capability, boolean filterInvalidItems, java.lang.Object defaultSelectedValue)
fullList - full list of itemscapability - public void setSelectedIndex(int index)
public int getSelecteIndex()
public void setSelectedItem(java.lang.Object anItem)
setSelectedItem in interface javax.swing.ComboBoxModelpublic java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModelpublic int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModelpublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModelv12.0.5.0 | Copyright © Asprise Software. All Rights Reserved. Please visit the product page at asprise.com