Class JListHpr<T extends 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>
An RibsHelper implementation for JList.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
List Model implementation for lists of items.static class
Inner class to dereference the display value from list value using given key (from binding). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getChildCount
(T anObj) Override to suppress children.getItemDisplayKey
(T aList) Returns the render key chain.Returns the items for an object.getPropertyNameMapped
(T anObj, String aName) Returns a mapped property name.getPropertyNamesImpl
(T anObj) Returns the property names for given object.getSelectedItem
(T aList) Returns the selected object property of given object.void
Initializes newly created object.static void
scrollCellToVisible
(JList aList, int aRow) Scrolls a JList to make given row visible (-1 for current selection).void
setItemDisplayKey
(T aList, String aKey) Sets the display key for UI node item.void
Sets the items for an object.void
setSelectedItem
(T aList, Object aValue) Sets the selected object property of given object to given value.Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpr
addBinding, 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.SwingHelper
getHelper, getSwingHelper, getSwingHelper
Methods inherited from class com.inductiveautomation.snap.ui.UIHelper
enableEvents, getAction, getBinding, getChild, getKeyValue, getPropertyNames, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setText, setValue
-
Constructor Details
-
JListHpr
public JListHpr()
-
-
Method Details
-
getChildCount
Override to suppress children.- Overrides:
getChildCount
in classJComponentHpr<T extends JList>
-
initUI
Initializes newly created object.- Overrides:
initUI
in classJComponentHpr<T extends JList>
-
scrollCellToVisible
Scrolls a JList to make given row visible (-1 for current selection). -
getPropertyNamesImpl
Returns the property names for given object.- Overrides:
getPropertyNamesImpl
in classJComponentHpr<T extends JList>
-
getPropertyNameMapped
Returns a mapped property name.- Overrides:
getPropertyNameMapped
in classUIHelper<T extends JList>
-
getItems
Returns the items for an object. -
setItems
Sets the items for an object. -
getItemDisplayKey
Returns the render key chain.- Overrides:
getItemDisplayKey
in classUIHelper<T extends JList>
-
setItemDisplayKey
Description copied from class:UIHelper
Sets the display key for UI node item.- Overrides:
setItemDisplayKey
in classUIHelper<T extends JList>
-
getSelectedItem
Returns the selected object property of given object.- Overrides:
getSelectedItem
in classUIHelper<T extends JList>
-
setSelectedItem
Sets the selected object property of given object to given value.- Overrides:
setSelectedItem
in classUIHelper<T extends JList>
-