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 classA combobox model implementation to handle binding.static classA SwingEventListener for JComboBox. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SwingEventAdaptercreateEventAdapter(T aComboBox) Creates a SwingEventAdapter subclass.intgetChildCount(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.voidInitializes newly created object.voidsetItemDisplayKey(T aComboBox, String aKey) Sets the display key for ComboBox items.voidSets the items for an object.voidsetSelectedIndex(T aCBox, int anIndex) Override to repaint.voidOverride 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, setSendActionOnFocusLostMethods inherited from class com.inductiveautomation.snap.swing.SwingHelper
getHelper, getSwingHelper, getSwingHelperMethods 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:
getChildCountin classJComponentHpr<T extends JComboBox>
-
initUI
Initializes newly created object.- Overrides:
initUIin classJComponentHpr<T extends JComboBox>
-
createEventAdapter
Creates a SwingEventAdapter subclass.- Overrides:
createEventAdapterin classJComponentHpr<T extends JComboBox>
-
getPropertyNamesImpl
Returns the property names for given object.- Overrides:
getPropertyNamesImplin classJComponentHpr<T extends JComboBox>
-
getPropertyNameMapped
Returns a mapped property name.- Overrides:
getPropertyNameMappedin classUIHelper<T extends JComboBox>
-
setValue
Override to convert SelectedItem enums to String if needed. -
setSelectedIndex
Override to repaint.- Overrides:
setSelectedIndexin 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:
getItemDisplayKeyin classUIHelper<T extends JComboBox>
-
setItemDisplayKey
Sets the display key for ComboBox items.- Overrides:
setItemDisplayKeyin classUIHelper<T extends JComboBox>
-