Package com.ribs.helpers
Class JListHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JListHpr
An RJHelper implementation for JList.
 
Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAn inner class to describe a selected range (start, end, length).static classA simple sample table model so Ribs app can show sample table data.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidfromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.floatgetFloatValue(JComponent aComponent) Returns the list's selected value as a float.intgetIntValue(JComponent aComponent) Returns the list's selected index.getSelectedRange(JList aList) Returns the selected range as a Range object (with start, end, length).getStringValue(JComponent aComponent) Returns the list's selected value as a string.getValue(JComponent aComponent) Returns the list's selected value.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.voidperformBindKeyGet(JComponent aComponent) Performs bind key get.voidsetValue(JComponent aComponent, int aValue) Sets the list's selected index.voidsetValue(JComponent aComponent, Object aValue) Sets the list selected index to index of given value.voidsetValue(JComponent aComponent, String aValue) Sets the list's selected index to the index of 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, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, setValue, setValue, takeFloatValue, takeIntValue, testOutBeanBag, toXMLDeep
- 
Constructor Details- 
JListHprpublic JListHpr()
 
- 
- 
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
 
- 
getSelectedRangeReturns the selected range as a Range object (with start, end, length).
- 
getValueReturns the list's selected value.
- 
setValueSets the list selected index to index of given value.
- 
getStringValueReturns the list's selected value as a string.- Overrides:
- getStringValuein class- RJHelper
 
- 
setValueSets the list's selected index to the index of given string.
- 
getIntValueReturns the list's selected index.- Overrides:
- getIntValuein class- RJHelper
 
- 
getFloatValueReturns the list's selected value as a float.- Overrides:
- getFloatValuein class- RJHelper
 
- 
setValueSets the list's selected index.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
- 
performBindKeyGetDescription copied from class:RJHelperPerforms bind key get.- Overrides:
- performBindKeyGetin class- RJHelper
 
 
-