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 SummaryConstructors
- 
Method SummaryModifier 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.RJHelperadd, 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- 
JComboBoxHprpublic JComboBoxHpr()
 
- 
- 
Method Details- 
newInstanceCreates a new instance of class for given element.- Overrides:
- newInstancein class- RJHelper
 
- 
initInstanceInitializes the given instance (actually called the first time an owner is set).- Overrides:
- initInstancein class- RJHelper
 
- 
setSendActionOnFocusLostOverrides the version in RJHelper to try add a focus listener to the combobox's editor- Overrides:
- setSendActionOnFocusLostin class- RJHelper
 
- 
indexOfItemConvenience method. Finds the value among the combobox's items
- 
getValueReturns the combo box's selected item.
- 
getStringValueReturns the combo box's selected item as a string.- Overrides:
- getStringValuein class- RJHelper
 
- 
getIntValueReturns the combo box's selected index.- Overrides:
- getIntValuein class- RJHelper
 
- 
getFloatValueReturns the combo box's selected item as a float.- Overrides:
- getFloatValuein class- RJHelper
 
- 
setValueSets the combo box's selected item.
- 
setValueSets the combo box's selected item to the given string.
- 
setValueSets the combo box's selected index.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-