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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An inner class to describe a selected range (start, end, length).static class
A simple sample table model so Ribs app can show sample table data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromXML
(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.float
getFloatValue
(JComponent aComponent) Returns the list's selected value as a float.int
getIntValue
(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.void
initInstance
(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.void
performBindKeyGet
(JComponent aComponent) Performs bind key get.void
setValue
(JComponent aComponent, int aValue) Sets the list's selected index.void
setValue
(JComponent aComponent, Object aValue) Sets the list selected index to index of given value.void
setValue
(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.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, 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
-
JListHpr
public JListHpr()
-
-
Method Details
-
newInstance
Creates a new instance of class for given element.- Overrides:
newInstance
in classRJHelper
-
initInstance
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstance
in classRJHelper
-
getSelectedRange
Returns the selected range as a Range object (with start, end, length). -
getValue
Returns the list's selected value. -
setValue
Sets the list selected index to index of given value. -
getStringValue
Returns the list's selected value as a string.- Overrides:
getStringValue
in classRJHelper
-
setValue
Sets the list's selected index to the index of given string. -
getIntValue
Returns the list's selected index.- Overrides:
getIntValue
in classRJHelper
-
getFloatValue
Returns the list's selected value as a float.- Overrides:
getFloatValue
in classRJHelper
-
setValue
Sets the list's selected index. -
toXML
XML archival. -
fromXML
XML unarchival. -
performBindKeyGet
Description copied from class:RJHelper
Performs bind key get.- Overrides:
performBindKeyGet
in classRJHelper
-