Constructor and Description |
---|
DropDownComboBox(javax.swing.JComboBox combo,
java.awt.Color warningBackgroundColor) |
Modifier and Type | Method and Description |
---|---|
void |
addDropdownListener(java.awt.event.ActionListener listener) |
void |
addItemListener(java.awt.event.ItemListener itemListener) |
javax.swing.JComponent |
asJComponent()
Returns this component as a swing
JComponent . |
java.util.List<javax.swing.ImageIcon> |
getIcons() |
javax.swing.ComboBoxModel |
getModel() |
int |
getSelectedIndex() |
java.lang.Object |
getSelectedItem() |
java.lang.Object[] |
getSelectedObjects() |
boolean |
isReadOnly() |
boolean |
isVisibleDropdownArrow() |
void |
removeDropdownListener(java.awt.event.ActionListener listener) |
void |
removeItemListener(java.awt.event.ItemListener l) |
void |
setEnabled(boolean enabled) |
void |
setIcons(java.util.List<javax.swing.ImageIcon> icons) |
void |
setModel(javax.swing.ComboBoxModel model) |
void |
setReadOnly(boolean readOnly) |
void |
setSelectedIndex(int i) |
void |
setValue(java.lang.Object value) |
void |
setVisibleDropdownArrow(boolean visible) |
public DropDownComboBox(javax.swing.JComboBox combo, java.awt.Color warningBackgroundColor)
public javax.swing.JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
public boolean isReadOnly()
isReadOnly
in interface DropDown
public void setReadOnly(boolean readOnly)
setReadOnly
in interface DropDown
public void setVisibleDropdownArrow(boolean visible)
setVisibleDropdownArrow
in interface DropDown
public boolean isVisibleDropdownArrow()
isVisibleDropdownArrow
in interface DropDown
public void setEnabled(boolean enabled)
setEnabled
in interface DropDown
public void setModel(javax.swing.ComboBoxModel model)
public void addItemListener(java.awt.event.ItemListener itemListener)
addItemListener
in interface java.awt.ItemSelectable
public void setSelectedIndex(int i)
setSelectedIndex
in interface DropDown
public java.lang.Object getSelectedItem()
getSelectedItem
in interface DropDown
public int getSelectedIndex()
getSelectedIndex
in interface DropDown
public java.lang.Object[] getSelectedObjects()
getSelectedObjects
in interface java.awt.ItemSelectable
public void removeItemListener(java.awt.event.ItemListener l)
removeItemListener
in interface java.awt.ItemSelectable
public void setIcons(java.util.List<javax.swing.ImageIcon> icons)
public java.util.List<javax.swing.ImageIcon> getIcons()
public void addDropdownListener(java.awt.event.ActionListener listener)
addDropdownListener
in interface DropDown
public void removeDropdownListener(java.awt.event.ActionListener listener)
removeDropdownListener
in interface DropDown