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 TypeMethodDescriptionvoidfromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.floatgetFloatValue(JComponent aComponent) Returns the combo box's selected item as a float.intgetIntValue(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.intindexOfItem(JComboBox aBox, Object anObj) Convenience method.voidinitInstance(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.voidsetSendActionOnFocusLost(JComponent aComponent, boolean aValue) Overrides the version in RJHelper to try add a focus listener to the combobox's editorvoidsetValue(JComponent aComponent, int aValue) Sets the combo box's selected index.voidsetValue(JComponent aComponent, Object aValue) Sets the combo box's selected item.voidsetValue(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:
newInstancein classRJHelper
-
initInstance
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstancein classRJHelper
-
setSendActionOnFocusLost
Overrides the version in RJHelper to try add a focus listener to the combobox's editor- Overrides:
setSendActionOnFocusLostin 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:
getStringValuein classRJHelper
-
getIntValue
Returns the combo box's selected index.- Overrides:
getIntValuein classRJHelper
-
getFloatValue
Returns the combo box's selected item as a float.- Overrides:
getFloatValuein 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.
-