Class JListHpr<T extends javax.swing.JList>
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIHelper<T>
- 
- com.inductiveautomation.snap.swing.SwingHelper<T>
- 
- com.inductiveautomation.snap.swing.helpers.JComponentHpr<T>
- 
- com.inductiveautomation.snap.swing.helpers.JListHpr<T>
 
 
 
 
- 
 public class JListHpr<T extends javax.swing.JList> extends JComponentHpr<T> An RibsHelper implementation for JList.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classJListHpr.ItemsModelList Model implementation for lists of items.static classJListHpr.KeyChainCellRendererInner class to dereference the display value from list value using given key (from binding).
 - 
Constructor SummaryConstructors Constructor Description JListHpr()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChildCount(T anObj)Override to suppress children.java.lang.StringgetItemDisplayKey(T aList)Returns the render key chain.java.util.ListgetItems(T aList)Returns the items for an object.java.lang.StringgetPropertyNameMapped(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.ObjectgetSelectedItem(T aList)Returns the selected object property of given object.voidinitUI(T aList, UIOwner anOwner)Initializes newly created object.static voidscrollCellToVisible(javax.swing.JList aList, int aRow)Scrolls a JList to make given row visible (-1 for current selection).voidsetItemDisplayKey(T aList, java.lang.String aKey)Sets the display key for UI node item.voidsetItems(T aList, java.util.List theItems)Sets the items for an object.voidsetSelectedItem(T aList, java.lang.Object aValue)Sets the selected object property of given object to given value.- 
Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpraddBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLost
 - 
Methods inherited from class com.inductiveautomation.snap.swing.SwingHelpergetHelper, getSwingHelper, getSwingHelper
 - 
Methods inherited from class com.inductiveautomation.snap.ui.UIHelperenableEvents, getAction, getBinding, getChild, getKeyValue, getPropertyNames, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setText, setValue
 
- 
 
- 
- 
- 
Method Detail- 
getChildCountpublic int getChildCount(T anObj) Override to suppress children.- Overrides:
- getChildCountin class- JComponentHpr<T extends javax.swing.JList>
 
 - 
initUIpublic void initUI(T aList, UIOwner anOwner) Initializes newly created object.- Overrides:
- initUIin class- JComponentHpr<T extends javax.swing.JList>
 
 - 
scrollCellToVisiblepublic static void scrollCellToVisible(javax.swing.JList aList, int aRow)Scrolls a JList to make given row visible (-1 for current selection).
 - 
getPropertyNamesImplprotected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj) Returns the property names for given object.- Overrides:
- getPropertyNamesImplin class- JComponentHpr<T extends javax.swing.JList>
 
 - 
getPropertyNameMappedpublic java.lang.String getPropertyNameMapped(T anObj, java.lang.String aName) Returns a mapped property name.- Overrides:
- getPropertyNameMappedin class- UIHelper<T extends javax.swing.JList>
 
 - 
getItemspublic java.util.List getItems(T aList) Returns the items for an object.
 - 
setItemspublic void setItems(T aList, java.util.List theItems) Sets the items for an object.
 - 
getItemDisplayKeypublic java.lang.String getItemDisplayKey(T aList) Returns the render key chain.- Overrides:
- getItemDisplayKeyin class- UIHelper<T extends javax.swing.JList>
 
 - 
setItemDisplayKeypublic void setItemDisplayKey(T aList, java.lang.String aKey) Description copied from class:UIHelperSets the display key for UI node item.- Overrides:
- setItemDisplayKeyin class- UIHelper<T extends javax.swing.JList>
 
 - 
getSelectedItempublic java.lang.Object getSelectedItem(T aList) Returns the selected object property of given object.- Overrides:
- getSelectedItemin class- UIHelper<T extends javax.swing.JList>
 
 - 
setSelectedItempublic void setSelectedItem(T aList, java.lang.Object aValue) Sets the selected object property of given object to given value.- Overrides:
- setSelectedItemin class- UIHelper<T extends javax.swing.JList>
 
 
- 
 
-