Package com.ribs.helpers
Class JComboBoxHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JComboBoxHpr
This class provides Ribs functionality for JComboBox.
Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromXML
(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.float
getFloatValue
(JComponent aComponent) Returns the combo box's selected item as a float.int
getIntValue
(JComponent aComponent) Returns the combo box's selected index.getStringValue
(JComponent aComponent) Returns the combo box's selected item as a string.getValue
(JComponent aComponent) Returns the combo box's selected item.int
indexOfItem
(JComboBox aBox, Object anObj) Convenience method.void
initInstance
(JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).newInstance
(RXElement anElement) Creates a new instance of class for given element.void
setSendActionOnFocusLost
(JComponent aComponent, boolean aValue) Overrides the version in RJHelper to try add a focus listener to the combobox's editorvoid
setValue
(JComponent aComponent, int aValue) Sets the combo box's selected index.void
setValue
(JComponent aComponent, Object aValue) Sets the combo box's selected item.void
setValue
(JComponent aComponent, String aValue) Sets the combo box's selected item to the given string.toXML
(JComponent aComponent, RXArchiver anArchiver) XML archival.Methods inherited from class com.ribs.RJHelper
add, focusGained, focusLost, fromXMLDeep, get, getActionListener, getAutoscrolls, getAutosizing, getBackground, getBindKey, getBooleanValue, getBoolValue, getCallback, getChangeListener, getColorValue, getComponent, getComponentCount, getFocusListener, getForeground, getMaster, getMaximumSize, getMinimumSize, getOwner, getRibHeight, getRibWidth, getRibX, getRibY, getSendActionOnFocusLost, getSubstitutionClassString, isOpaque, performBindKeyGet, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSubstitutionClassString, setValue, setValue, setValue, setValue, takeFloatValue, takeIntValue, testOutBeanBag, toXMLDeep
-
Constructor Details
-
JComboBoxHpr
public JComboBoxHpr()
-
-
Method Details
-
newInstance
Creates a new instance of class for given element.- Overrides:
newInstance
in classRJHelper
-
initInstance
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstance
in classRJHelper
-
setSendActionOnFocusLost
Overrides the version in RJHelper to try add a focus listener to the combobox's editor- Overrides:
setSendActionOnFocusLost
in classRJHelper
-
indexOfItem
Convenience method. Finds the value among the combobox's items -
getValue
Returns the combo box's selected item. -
getStringValue
Returns the combo box's selected item as a string.- Overrides:
getStringValue
in classRJHelper
-
getIntValue
Returns the combo box's selected index.- Overrides:
getIntValue
in classRJHelper
-
getFloatValue
Returns the combo box's selected item as a float.- Overrides:
getFloatValue
in classRJHelper
-
setValue
Sets the combo box's selected item. -
setValue
Sets the combo box's selected item to the given string. -
setValue
Sets the combo box's selected index. -
toXML
XML archival. -
fromXML
XML unarchival.
-