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 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 Summary
Constructors -
Method Summary
Modifier 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.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:
newInstancein classRJHelper
-
initInstance
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstancein 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:
getStringValuein classRJHelper
-
setValue
Sets the list's selected index to the index of given string. -
getIntValue
Returns the list's selected index.- Overrides:
getIntValuein classRJHelper
-
getFloatValue
Returns the list's selected value as a float.- Overrides:
getFloatValuein classRJHelper
-
setValue
Sets the list's selected index. -
toXML
XML archival. -
fromXML
XML unarchival. -
performBindKeyGet
Description copied from class:RJHelperPerforms bind key get.- Overrides:
performBindKeyGetin classRJHelper
-