Package com.ribs.helpers
Class JTextComponentHpr
java.lang.Object
com.ribs.RJHelper
com.ribs.helpers.JTextComponentHpr
- Direct Known Subclasses:
JFormattedTextFieldHpr
This class is a RJHelper implementation for JTextComponents.
Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromXML
(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.float
getFloatValue
(JComponent aComponent) Returns the text component's text string as a float.int
getIntValue
(JComponent aComponent) Returns the text component's text string as an int.boolean
Returns whether this text field sends action when a string is dropped on it.boolean
Returns whether this text field sends action when the user strikes return.getStringValue
(JComponent aComponent) Returns the text component's text string.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
setSendActionOnDropString
(JTextComponent aText, boolean aValue) Sets whether this text field accepts drag and drop Strings.void
setSendActionOnReturn
(JTextField aText, boolean aValue) Sets whether this text field sends action when the user strikes return.void
setValue
(JComponent aComponent, float aValue) Sets the text component's text string from a float.void
setValue
(JComponent aComponent, int aValue) Sets the text component's text string from an int.void
setValue
(JComponent aComponent, Object aValue) Sets the given text component to the given value.void
setValue
(JComponent aComponent, String aValue) Sets the text component's text 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, getValue, isOpaque, performBindKeyGet, performBindKeySet, sendAction, setAutoscrolls, setAutosizing, setBackground, setBindKey, setCallback, setForeground, setMaster, setMaximumSize, setMinimumSize, setOpaque, setOwner, setSendActionOnFocusLost, setSubstitutionClassString, setValue, setValue, setValue, takeFloatValue, takeIntValue, testOutBeanBag, toXMLDeep
-
Constructor Details
-
JTextComponentHpr
public JTextComponentHpr()
-
-
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
-
getSendActionOnReturn
Returns whether this text field sends action when the user strikes return. -
setSendActionOnReturn
Sets whether this text field sends action when the user strikes return. -
getSendActionOnDropString
Returns whether this text field sends action when a string is dropped on it. -
setSendActionOnDropString
Sets whether this text field accepts drag and drop Strings. -
setValue
Sets the given text component to the given value. -
getStringValue
Returns the text component's text string.- Overrides:
getStringValue
in classRJHelper
-
setValue
Sets the text component's text string. -
getIntValue
Returns the text component's text string as an int.- Overrides:
getIntValue
in classRJHelper
-
setValue
Sets the text component's text string from an int. -
getFloatValue
Returns the text component's text string as a float.- Overrides:
getFloatValue
in classRJHelper
-
setValue
Sets the text component's text string from a float. -
toXML
XML archival. -
fromXML
XML unarchival.
-