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 TypeMethodDescriptionvoidfromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement) XML unarchival.floatgetFloatValue(JComponent aComponent) Returns the text component's text string as a float.intgetIntValue(JComponent aComponent) Returns the text component's text string as an int.booleanReturns whether this text field sends action when a string is dropped on it.booleanReturns whether this text field sends action when the user strikes return.getStringValue(JComponent aComponent) Returns the text component's text string.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.voidsetSendActionOnDropString(JTextComponent aText, boolean aValue) Sets whether this text field accepts drag and drop Strings.voidsetSendActionOnReturn(JTextField aText, boolean aValue) Sets whether this text field sends action when the user strikes return.voidsetValue(JComponent aComponent, float aValue) Sets the text component's text string from a float.voidsetValue(JComponent aComponent, int aValue) Sets the text component's text string from an int.voidsetValue(JComponent aComponent, Object aValue) Sets the given text component to the given value.voidsetValue(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:
newInstancein classRJHelper
-
initInstance
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstancein 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:
getStringValuein classRJHelper
-
setValue
Sets the text component's text string. -
getIntValue
Returns the text component's text string as an int.- Overrides:
getIntValuein classRJHelper
-
setValue
Sets the text component's text string from an int. -
getFloatValue
Returns the text component's text string as a float.- Overrides:
getFloatValuein classRJHelper
-
setValue
Sets the text component's text string from a float. -
toXML
XML archival. -
fromXML
XML unarchival.
-