| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echoservlet.AbstractComponentPeer
nextapp.echoservlet.ui.TextComponentUI
nextapp.echoservlet.ui.TextFieldUI
echopoint.ui.TextFieldUI
public class 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.
| 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 | 
| Fields inherited from interface nextapp.echoservlet.ComponentPeer | 
|---|
IGNORE_PROPERTY_CHANGE | 
| Constructor Summary | |
|---|---|
TextFieldUI()
 | 
|
| Method Summary | |
|---|---|
protected  java.lang.String | 
generateOnBlurJavaScript(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(RenderingContext rc)
Called to return the onchange script that saves the state of the TextField and also performs client side validation.  | 
protected  ComponentStyle | 
getStyle()
Returns a ComponentStyle object suitable for this component.  | 
protected  TextField | 
getTextField()
A helper method to get the TextField safelt instead of via (TextField) getComponent().  | 
protected  Element | 
getTextInput(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()
Called when the component is registered.  | 
 void | 
render(RenderingContext rc,
       Element parent)
A method that should be overridden for the ComponentPeer to produce HTML output.  | 
 void | 
unregistered()
Called when the component is 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.AbstractComponentPeer | 
|---|
addAncillaryService, generateId, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getChildCount, getChildren, getComponent, getFocusedElementId, getId, getInstancePeer, getParentComponentPeer, getPeer, redraw, registerAncillaryServices, removeAncillaryService, setComponent, setId, setInstancePeer, unregisterAncillaryServices | 
| 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 | 
|---|
protected ToolTipPopUpSupportHelper toolTipHelper
| Constructor Detail | 
|---|
public TextFieldUI()
| Method Detail | 
|---|
public void registered()
AbstractComponentPeer
registered in interface ComponentPeerregistered in class TextComponentUITextComponentUI.registered()public void unregistered()
AbstractComponentPeer
unregistered in interface ComponentPeerunregistered in class TextComponentUITextComponentUI.unregistered()public static void register()
protected TextField getTextField()
protected ComponentStyle getStyle()
TextComponentUI
getStyle in class TextComponentUITextComponentUI.getStyle()
protected Element getTextInput(RenderingContext rc,
                               TextField textField,
                               java.lang.String styleClassName)
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.
rc - - ther renderind context in playtextField - -the textfield componentstyleClassName - - the componentn style name to use
protected java.lang.String generateOnBlurJavaScript(RenderingContext rc)
rc - - The rendering
protected java.lang.String generateOnChangeJavaScript(RenderingContext rc)
rc - - The rendering
public void render(RenderingContext rc,
                   Element parent)
ComponentPeer
render in interface ComponentPeerrender in class TextFieldUIrc - A rendering context provided by the Connection.parent - The element that will contain content rendered by this
            ComponentPeer.ComponentPeer.render(RenderingContext, Element)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||