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 SummaryConstructors
- 
Method SummaryModifier 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.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, 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- 
JTextComponentHprpublic JTextComponentHpr()
 
- 
- 
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
 
- 
getSendActionOnReturnReturns whether this text field sends action when the user strikes return.
- 
setSendActionOnReturnSets whether this text field sends action when the user strikes return.
- 
getSendActionOnDropStringReturns whether this text field sends action when a string is dropped on it.
- 
setSendActionOnDropStringSets whether this text field accepts drag and drop Strings.
- 
setValueSets the given text component to the given value.
- 
getStringValueReturns the text component's text string.- Overrides:
- getStringValuein class- RJHelper
 
- 
setValueSets the text component's text string.
- 
getIntValueReturns the text component's text string as an int.- Overrides:
- getIntValuein class- RJHelper
 
- 
setValueSets the text component's text string from an int.
- 
getFloatValueReturns the text component's text string as a float.- Overrides:
- getFloatValuein class- RJHelper
 
- 
setValueSets the text component's text string from a float.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-