public class JComboBoxHpr<T extends javax.swing.JComboBox> extends JComponentHpr<T>
Modifier and Type | Class and Description |
---|---|
static class |
JComboBoxHpr.ItemsModel
A combobox model implementation to handle binding.
|
static class |
JComboBoxHpr.JComboBoxEventAdapter
A SwingEventListener for JComboBox.
|
Constructor and Description |
---|
JComboBoxHpr() |
Modifier and Type | Method and Description |
---|---|
protected SwingEventAdapter |
createEventAdapter(T aComboBox)
Creates a SwingEventAdapter subclass.
|
int |
getChildCount(T anObj)
Override to suppress children.
|
java.lang.String |
getItemDisplayKey(T aComboBox)
Returns the render key chain.
|
java.util.List |
getItems(T anObj)
Returns the items for an object.
|
java.lang.String |
getPropertyNameMapped(T anObj,
java.lang.String aName)
Returns a mapped property name.
|
protected java.util.List<java.lang.String> |
getPropertyNamesImpl(T anObj)
Returns the property names for given object.
|
void |
initUI(T anObj,
UIOwner anOwner)
Initializes newly created object.
|
void |
setItemDisplayKey(T aComboBox,
java.lang.String aKey)
Sets the display key for ComboBox items.
|
void |
setItems(T anObj,
java.util.List theItems)
Sets the items for an object.
|
void |
setSelectedIndex(T aCBox,
int anIndex)
Override to repaint.
|
void |
setValue(T aCBox,
java.lang.String aPropertyName,
java.lang.Object aValue)
Override to convert SelectedItem enums to String if needed.
|
addBinding, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLost
getHelper, getSwingHelper, getSwingHelper
enableEvents, getAction, getBinding, getChild, getKeyValue, getPropertyNames, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getSelectedItem, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItems, setKeyValue, setSelectedIndexes, setSelectedItem, setText
public int getChildCount(T anObj)
getChildCount
in class JComponentHpr<T extends javax.swing.JComboBox>
public void initUI(T anObj, UIOwner anOwner)
initUI
in class JComponentHpr<T extends javax.swing.JComboBox>
protected SwingEventAdapter createEventAdapter(T aComboBox)
createEventAdapter
in class JComponentHpr<T extends javax.swing.JComboBox>
protected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj)
getPropertyNamesImpl
in class JComponentHpr<T extends javax.swing.JComboBox>
public java.lang.String getPropertyNameMapped(T anObj, java.lang.String aName)
getPropertyNameMapped
in class UIHelper<T extends javax.swing.JComboBox>
public void setValue(T aCBox, java.lang.String aPropertyName, java.lang.Object aValue)
public void setSelectedIndex(T aCBox, int anIndex)
setSelectedIndex
in class UIHelper<T extends javax.swing.JComboBox>
public java.util.List getItems(T anObj)
public void setItems(T anObj, java.util.List theItems)
public java.lang.String getItemDisplayKey(T aComboBox)
getItemDisplayKey
in class UIHelper<T extends javax.swing.JComboBox>
public void setItemDisplayKey(T aComboBox, java.lang.String aKey)
setItemDisplayKey
in class UIHelper<T extends javax.swing.JComboBox>