Class JComboBoxHpr<T extends JComboBox>
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.JComboBoxHpr<T>
This class provides Ribs functionality for JComboBox.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A combobox model implementation to handle binding.static class
A SwingEventListener for JComboBox. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SwingEventAdapter
createEventAdapter
(T aComboBox) Creates a SwingEventAdapter subclass.int
getChildCount
(T anObj) Override to suppress children.getItemDisplayKey
(T aComboBox) 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.void
Initializes newly created object.void
setItemDisplayKey
(T aComboBox, String aKey) Sets the display key for ComboBox items.void
Sets the items for an object.void
setSelectedIndex
(T aCBox, int anIndex) Override to repaint.void
Override to convert SelectedItem enums to String if needed.Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpr
addBinding, 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, getSelectedItem, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItems, setKeyValue, setSelectedIndexes, setSelectedItem, setText
-
Constructor Details
-
JComboBoxHpr
public JComboBoxHpr()
-
-
Method Details
-
getChildCount
Override to suppress children.- Overrides:
getChildCount
in classJComponentHpr<T extends JComboBox>
-
initUI
Initializes newly created object.- Overrides:
initUI
in classJComponentHpr<T extends JComboBox>
-
createEventAdapter
Creates a SwingEventAdapter subclass.- Overrides:
createEventAdapter
in classJComponentHpr<T extends JComboBox>
-
getPropertyNamesImpl
Returns the property names for given object.- Overrides:
getPropertyNamesImpl
in classJComponentHpr<T extends JComboBox>
-
getPropertyNameMapped
Returns a mapped property name.- Overrides:
getPropertyNameMapped
in classUIHelper<T extends JComboBox>
-
setValue
Override to convert SelectedItem enums to String if needed. -
setSelectedIndex
Override to repaint.- Overrides:
setSelectedIndex
in classUIHelper<T extends JComboBox>
-
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 JComboBox>
-
setItemDisplayKey
Sets the display key for ComboBox items.- Overrides:
setItemDisplayKey
in classUIHelper<T extends JComboBox>
-