Package com.ribs.helpers
Class JComboBoxHpr
- java.lang.Object
-
- com.ribs.RJHelper
-
- com.ribs.helpers.JComboBoxHpr
-
public class JComboBoxHpr extends RJHelper
This class provides Ribs functionality for JComboBox.Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill
.
-
-
Constructor Summary
Constructors Constructor Description JComboBoxHpr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.floatgetFloatValue(javax.swing.JComponent aComponent)Returns the combo box's selected item as a float.intgetIntValue(javax.swing.JComponent aComponent)Returns the combo box's selected index.java.lang.StringgetStringValue(javax.swing.JComponent aComponent)Returns the combo box's selected item as a string.java.lang.ObjectgetValue(javax.swing.JComponent aComponent)Returns the combo box's selected item.intindexOfItem(javax.swing.JComboBox aBox, java.lang.Object anObj)Convenience method.voidinitInstance(javax.swing.JComponent aComponent)Initializes the given instance (actually called the first time an owner is set).java.lang.ObjectnewInstance(RXElement anElement)Creates a new instance of class for given element.voidsetSendActionOnFocusLost(javax.swing.JComponent aComponent, boolean aValue)Overrides the version in RJHelper to try add a focus listener to the combobox's editorvoidsetValue(javax.swing.JComponent aComponent, int aValue)Sets the combo box's selected index.voidsetValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets the combo box's selected item.voidsetValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the combo box's selected item to the given string.RXElementtoXML(javax.swing.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
-
-
-
-
Method Detail
-
newInstance
public java.lang.Object newInstance(RXElement anElement)
Creates a new instance of class for given element.- Overrides:
newInstancein classRJHelper
-
initInstance
public void initInstance(javax.swing.JComponent aComponent)
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstancein classRJHelper
-
setSendActionOnFocusLost
public void setSendActionOnFocusLost(javax.swing.JComponent aComponent, boolean aValue)Overrides the version in RJHelper to try add a focus listener to the combobox's editor- Overrides:
setSendActionOnFocusLostin classRJHelper
-
indexOfItem
public int indexOfItem(javax.swing.JComboBox aBox, java.lang.Object anObj)Convenience method. Finds the value among the combobox's items
-
getValue
public java.lang.Object getValue(javax.swing.JComponent aComponent)
Returns the combo box's selected item.
-
getStringValue
public java.lang.String getStringValue(javax.swing.JComponent aComponent)
Returns the combo box's selected item as a string.- Overrides:
getStringValuein classRJHelper
-
getIntValue
public int getIntValue(javax.swing.JComponent aComponent)
Returns the combo box's selected index.- Overrides:
getIntValuein classRJHelper
-
getFloatValue
public float getFloatValue(javax.swing.JComponent aComponent)
Returns the combo box's selected item as a float.- Overrides:
getFloatValuein classRJHelper
-
setValue
public void setValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets the combo box's selected item.
-
setValue
public void setValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the combo box's selected item to the given string.
-
setValue
public void setValue(javax.swing.JComponent aComponent, int aValue)Sets the combo box's selected index.
-
toXML
public RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver)
XML archival.
-
fromXML
public void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.
-
-