public class JListHpr<T extends javax.swing.JList> extends JComponentHpr<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
JListHpr.ItemsModel
List Model implementation for lists of items.
|
static class |
JListHpr.KeyChainCellRenderer
Inner class to dereference the display value from list value using given key (from binding).
|
| Constructor and Description |
|---|
JListHpr() |
| Modifier and Type | Method and Description |
|---|---|
int |
getChildCount(T anObj)
Override to suppress children.
|
java.lang.String |
getItemDisplayKey(T aList)
Returns the render key chain.
|
java.util.List |
getItems(T aList)
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.
|
java.lang.Object |
getSelectedItem(T aList)
Returns the selected object property of given object.
|
void |
initUI(T aList,
UIOwner anOwner)
Initializes newly created object.
|
static void |
scrollCellToVisible(javax.swing.JList aList,
int aRow)
Scrolls a JList to make given row visible (-1 for current selection).
|
void |
setItemDisplayKey(T aList,
java.lang.String aKey)
Sets the display key for UI node item.
|
void |
setItems(T aList,
java.util.List theItems)
Sets the items for an object.
|
void |
setSelectedItem(T aList,
java.lang.Object aValue)
Sets the selected object property of given object to given value.
|
addBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLostgetHelper, getSwingHelper, getSwingHelperenableEvents, getAction, getBinding, getChild, getKeyValue, getPropertyNames, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setText, setValuepublic int getChildCount(T anObj)
getChildCount in class JComponentHpr<T extends javax.swing.JList>public void initUI(T aList, UIOwner anOwner)
initUI in class JComponentHpr<T extends javax.swing.JList>public static void scrollCellToVisible(javax.swing.JList aList,
int aRow)
protected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj)
getPropertyNamesImpl in class JComponentHpr<T extends javax.swing.JList>public java.lang.String getPropertyNameMapped(T anObj, java.lang.String aName)
getPropertyNameMapped in class UIHelper<T extends javax.swing.JList>public java.util.List getItems(T aList)
public void setItems(T aList, java.util.List theItems)
public java.lang.String getItemDisplayKey(T aList)
getItemDisplayKey in class UIHelper<T extends javax.swing.JList>public void setItemDisplayKey(T aList, java.lang.String aKey)
UIHelpersetItemDisplayKey in class UIHelper<T extends javax.swing.JList>public java.lang.Object getSelectedItem(T aList)
getSelectedItem in class UIHelper<T extends javax.swing.JList>public void setSelectedItem(T aList, java.lang.Object aValue)
setSelectedItem in class UIHelper<T extends javax.swing.JList>