EchoPoint
1.0

echopoint.ui
Class TextFieldUI

java.lang.Object
  extended bynextapp.echoservlet.ComponentPeer
      extended bynextapp.echoservlet.ui.TextComponentUI
          extended bynextapp.echoservlet.ui.TextFieldUI
              extended byechopoint.ui.TextFieldUI
All Implemented Interfaces:
nextapp.echoservlet.ClientActionProducer, nextapp.echoservlet.ClientInputProducer, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
Direct Known Subclasses:
AbstractDateFieldUI, ClientDatePickerUI, ComboBoxUI, NumberFormatFieldUI, SpinFieldUI

public class TextFieldUI
extends nextapp.echoservlet.ui.TextFieldUI

TextFieldUI is the peer for the echopoint.TextField

Its has support for the new Validation classes as well as modularises the creation of the INPUT element.

See Also:
Serialized Form

Field Summary
protected  ToolTipPopUpSupportHelper toolTipHelper
          a ToolTipPopUpSupportHelper available to subclasses
 
Fields inherited from class nextapp.echoservlet.ui.TextFieldUI
SERVICE_TEXT_FIELD_SCRIPT
 
Fields inherited from class nextapp.echoservlet.ui.TextComponentUI
renderedActive
 
Constructor Summary
TextFieldUI()
           
 
Method Summary
protected  java.lang.String generateOnBlurJavaScript(nextapp.echoservlet.RenderingContext rc)
          Called to return the onblur script that saves the state of the TextField and also performs client side validation.
protected  java.lang.String generateOnChangeJavaScript(nextapp.echoservlet.RenderingContext rc)
          Called to return the onchange script that saves the state of the TextField and also performs client side validation.
protected  nextapp.echoservlet.ComponentStyle getStyle()
           
protected  TextField getTextField()
          A helper method to get the TextField safelt instead of via (TextField) getComponent().
protected  nextapp.echoservlet.html.Element getTextInput(nextapp.echoservlet.RenderingContext rc, TextField textField, java.lang.String styleClassName)
          Called to return the HTML element that will be used as the visiual representation of the TextField.
static void register()
          Registers the Component with its peer bindings
 void registered()
           
 void render(nextapp.echoservlet.RenderingContext rc, nextapp.echoservlet.html.Element parent)
           
 void unregistered()
           
 
Methods inherited from class nextapp.echoservlet.ui.TextFieldUI
clientAction
 
Methods inherited from class nextapp.echoservlet.ui.TextComponentUI
clientInput, propertyChange
 
Methods inherited from class nextapp.echoservlet.ComponentPeer
addAncillaryService, generateId, getBackground, getChildCount, getChildren, getComponent, getFont, getForeground, getId, getInstancePeer, getParent, getPeer, redraw, removeAncillaryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echoservlet.ClientInputProducer
getId
 

Field Detail

toolTipHelper

protected ToolTipPopUpSupportHelper toolTipHelper
a ToolTipPopUpSupportHelper available to subclasses

Constructor Detail

TextFieldUI

public TextFieldUI()
Method Detail

registered

public void registered()
See Also:
TextComponentUI.registered()

unregistered

public void unregistered()
See Also:
TextComponentUI.unregistered()

register

public static void register()
Registers the Component with its peer bindings


getTextField

protected TextField getTextField()
A helper method to get the TextField safelt instead of via (TextField) getComponent().

Returns:
the TextField associated with this peer.

getStyle

protected nextapp.echoservlet.ComponentStyle getStyle()
See Also:
TextComponentUI.getStyle()

getTextInput

protected nextapp.echoservlet.html.Element getTextInput(nextapp.echoservlet.RenderingContext rc,
                                                        TextField textField,
                                                        java.lang.String styleClassName)
Called to return the HTML element that will be used as the visiual representation of the TextField.

This default version returns a "input type=text" element that an id="getId()". It morphs into a "input type=password" if the field is indeed a PasswordField.

It also adds a tooltip support to the element.

Parameters:
rc - - ther renderind context in play
textField - -the textfield component
styleClassName - - the componentn style name to use
Returns:
the HTML element representing the textfield

generateOnBlurJavaScript

protected java.lang.String generateOnBlurJavaScript(nextapp.echoservlet.RenderingContext rc)
Called to return the onblur script that saves the state of the TextField and also performs client side validation. It returns a script that ends in a semi colon, ready for chaining with other scripts.

Parameters:
rc - - The rendering
Returns:
the generated on blur script

generateOnChangeJavaScript

protected java.lang.String generateOnChangeJavaScript(nextapp.echoservlet.RenderingContext rc)
Called to return the onchange script that saves the state of the TextField and also performs client side validation. It returns a script that ends in a semi colon, ready for chaining with other scripts.

Parameters:
rc - - The rendering
Returns:
the generated onchange script

render

public void render(nextapp.echoservlet.RenderingContext rc,
                   nextapp.echoservlet.html.Element parent)
See Also:
ComponentPeer.render(RenderingContext, Element)

EchoPoint
1.0