Package com.ribs.helpers
Class JListHpr
- java.lang.Object
- 
- com.ribs.RJHelper
- 
- com.ribs.helpers.JListHpr
 
 
- 
 public class JListHpr extends RJHelper An RJHelper implementation for JList.Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill . 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classJListHpr.RangeAn inner class to describe a selected range (start, end, length).static classJListHpr.SampleModelA simple sample table model so Ribs app can show sample table data.
 - 
Constructor SummaryConstructors Constructor Description JListHpr()
 - 
Method SummaryAll 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 list's selected value as a float.intgetIntValue(javax.swing.JComponent aComponent)Returns the list's selected index.JListHpr.RangegetSelectedRange(javax.swing.JList aList)Returns the selected range as a Range object (with start, end, length).java.lang.StringgetStringValue(javax.swing.JComponent aComponent)Returns the list's selected value as a string.java.lang.ObjectgetValue(javax.swing.JComponent aComponent)Returns the list's selected value.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.voidperformBindKeyGet(javax.swing.JComponent aComponent)Performs bind key get.voidsetValue(javax.swing.JComponent aComponent, int aValue)Sets the list's selected index.voidsetValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets the list selected index to index of given value.voidsetValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the list's selected index to the index of given string.RXElementtoXML(javax.swing.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, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, setValue, setValue, takeFloatValue, takeIntValue, testOutBeanBag, toXMLDeep
 
- 
 
- 
- 
- 
Method Detail- 
newInstancepublic java.lang.Object newInstance(RXElement anElement) Creates a new instance of class for given element.- Overrides:
- newInstancein class- RJHelper
 
 - 
initInstancepublic void initInstance(javax.swing.JComponent aComponent) Initializes the given instance (actually called the first time an owner is set).- Overrides:
- initInstancein class- RJHelper
 
 - 
getSelectedRangepublic JListHpr.Range getSelectedRange(javax.swing.JList aList) Returns the selected range as a Range object (with start, end, length).
 - 
getValuepublic java.lang.Object getValue(javax.swing.JComponent aComponent) Returns the list's selected value.
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets the list selected index to index of given value.
 - 
getStringValuepublic java.lang.String getStringValue(javax.swing.JComponent aComponent) Returns the list's selected value as a string.- Overrides:
- getStringValuein class- RJHelper
 
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the list's selected index to the index of given string.
 - 
getIntValuepublic int getIntValue(javax.swing.JComponent aComponent) Returns the list's selected index.- Overrides:
- getIntValuein class- RJHelper
 
 - 
getFloatValuepublic float getFloatValue(javax.swing.JComponent aComponent) Returns the list's selected value as a float.- Overrides:
- getFloatValuein class- RJHelper
 
 - 
setValuepublic void setValue(javax.swing.JComponent aComponent, int aValue)Sets the list's selected index.
 - 
toXMLpublic RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.
 - 
performBindKeyGetpublic void performBindKeyGet(javax.swing.JComponent aComponent) Description copied from class:RJHelperPerforms bind key get.- Overrides:
- performBindKeyGetin class- RJHelper
 
 
- 
 
-