Package com.ribs.helpers
Class JTextComponentHpr
- java.lang.Object
-
- com.ribs.RJHelper
-
- com.ribs.helpers.JTextComponentHpr
-
- Direct Known Subclasses:
JFormattedTextFieldHpr
public class JTextComponentHpr extends RJHelper
This class is a RJHelper implementation for JTextComponents.Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill
.
-
-
Constructor Summary
Constructors Constructor Description JTextComponentHpr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.floatgetFloatValue(javax.swing.JComponent aComponent)Returns the text component's text string as a float.intgetIntValue(javax.swing.JComponent aComponent)Returns the text component's text string as an int.booleangetSendActionOnDropString(javax.swing.text.JTextComponent aText)Returns whether this text field sends action when a string is dropped on it.booleangetSendActionOnReturn(javax.swing.text.JTextComponent aText)Returns whether this text field sends action when the user strikes return.java.lang.StringgetStringValue(javax.swing.JComponent aComponent)Returns the text component's text string.voidinitInstance(javax.swing.JComponent aComponent)Initializes the given instance (actually called the first time an owner is set).java.lang.ObjectnewInstance(RXElement anElement)Creates a new instance of class for given element.voidsetSendActionOnDropString(javax.swing.text.JTextComponent aText, boolean aValue)Sets whether this text field accepts drag and drop Strings.voidsetSendActionOnReturn(javax.swing.JTextField aText, boolean aValue)Sets whether this text field sends action when the user strikes return.voidsetValue(javax.swing.JComponent aComponent, float aValue)Sets the text component's text string from a float.voidsetValue(javax.swing.JComponent aComponent, int aValue)Sets the text component's text string from an int.voidsetValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets the given text component to the given value.voidsetValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the text component's text string.RXElementtoXML(javax.swing.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
-
-
-
-
Method Detail
-
newInstance
public java.lang.Object newInstance(RXElement anElement)
Creates a new instance of class for given element.- Overrides:
newInstancein classRJHelper
-
initInstance
public void initInstance(javax.swing.JComponent aComponent)
Initializes the given instance (actually called the first time an owner is set).- Overrides:
initInstancein classRJHelper
-
getSendActionOnReturn
public boolean getSendActionOnReturn(javax.swing.text.JTextComponent aText)
Returns whether this text field sends action when the user strikes return.
-
setSendActionOnReturn
public void setSendActionOnReturn(javax.swing.JTextField aText, boolean aValue)Sets whether this text field sends action when the user strikes return.
-
getSendActionOnDropString
public boolean getSendActionOnDropString(javax.swing.text.JTextComponent aText)
Returns whether this text field sends action when a string is dropped on it.
-
setSendActionOnDropString
public void setSendActionOnDropString(javax.swing.text.JTextComponent aText, boolean aValue)Sets whether this text field accepts drag and drop Strings.
-
setValue
public void setValue(javax.swing.JComponent aComponent, java.lang.Object aValue)Sets the given text component to the given value.
-
getStringValue
public java.lang.String getStringValue(javax.swing.JComponent aComponent)
Returns the text component's text string.- Overrides:
getStringValuein classRJHelper
-
setValue
public void setValue(javax.swing.JComponent aComponent, java.lang.String aValue)Sets the text component's text string.
-
getIntValue
public int getIntValue(javax.swing.JComponent aComponent)
Returns the text component's text string as an int.- Overrides:
getIntValuein classRJHelper
-
setValue
public void setValue(javax.swing.JComponent aComponent, int aValue)Sets the text component's text string from an int.
-
getFloatValue
public float getFloatValue(javax.swing.JComponent aComponent)
Returns the text component's text string as a float.- Overrides:
getFloatValuein classRJHelper
-
setValue
public void setValue(javax.swing.JComponent aComponent, float aValue)Sets the text component's text string from a float.
-
toXML
public RXElement toXML(javax.swing.JComponent aComponent, RXArchiver anArchiver)
XML archival.
-
fromXML
public void fromXML(javax.swing.JComponent aComponent, RXArchiver anArchiver, RXElement anElement)XML unarchival.
-
-