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 <info@reportmill.com>.

  • Constructor Details

    • JTextComponentHpr

      public JTextComponentHpr()
  • Method Details

    • newInstance

      public Object newInstance(RXElement anElement)
      Creates a new instance of class for given element.
      Overrides:
      newInstance in class RJHelper
    • initInstance

      public void initInstance(JComponent aComponent)
      Initializes the given instance (actually called the first time an owner is set).
      Overrides:
      initInstance in class RJHelper
    • getSendActionOnReturn

      public boolean getSendActionOnReturn(JTextComponent aText)
      Returns whether this text field sends action when the user strikes return.
    • setSendActionOnReturn

      public void setSendActionOnReturn(JTextField aText, boolean aValue)
      Sets whether this text field sends action when the user strikes return.
    • getSendActionOnDropString

      public boolean getSendActionOnDropString(JTextComponent aText)
      Returns whether this text field sends action when a string is dropped on it.
    • setSendActionOnDropString

      public void setSendActionOnDropString(JTextComponent aText, boolean aValue)
      Sets whether this text field accepts drag and drop Strings.
    • setValue

      public void setValue(JComponent aComponent, Object aValue)
      Sets the given text component to the given value.
      Overrides:
      setValue in class RJHelper
    • getStringValue

      public String getStringValue(JComponent aComponent)
      Returns the text component's text string.
      Overrides:
      getStringValue in class RJHelper
    • setValue

      public void setValue(JComponent aComponent, String aValue)
      Sets the text component's text string.
      Overrides:
      setValue in class RJHelper
    • getIntValue

      public int getIntValue(JComponent aComponent)
      Returns the text component's text string as an int.
      Overrides:
      getIntValue in class RJHelper
    • setValue

      public void setValue(JComponent aComponent, int aValue)
      Sets the text component's text string from an int.
      Overrides:
      setValue in class RJHelper
    • getFloatValue

      public float getFloatValue(JComponent aComponent)
      Returns the text component's text string as a float.
      Overrides:
      getFloatValue in class RJHelper
    • setValue

      public void setValue(JComponent aComponent, float aValue)
      Sets the text component's text string from a float.
      Overrides:
      setValue in class RJHelper
    • toXML

      public RXElement toXML(JComponent aComponent, RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXML in class RJHelper
    • fromXML

      public void fromXML(JComponent aComponent, RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXML in class RJHelper