Project Wonder 5.0

er.ajax
Class FocusTextField

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by com.webobjects.appserver._private.WOHTMLDynamicElement
                  extended by com.webobjects.appserver._private.WOInput
                      extended by er.extensions.components._private.ERXWOTextField
                          extended by er.ajax.FocusTextField

public class FocusTextField
extends ERXWOTextField

Focus text field is a convenience version of ERXWOTextField that provides support for grabbing default focus via javascript.

Author:
mschrag
Bindings
id the id the textfield
           
selectAll if true, the text will default to be selected
           
focus if false, focus will not be grabbed
           
onEnter javascript to execute when the enter key is pressed
           

Field Summary
protected  com.webobjects.appserver.WOAssociation _focus
           
protected  com.webobjects.appserver.WOAssociation _id
           
protected  com.webobjects.appserver.WOAssociation _onEnter
           
protected  com.webobjects.appserver.WOAssociation _onKeyPress
           
protected  com.webobjects.appserver.WOAssociation _selectAll
           
 
Fields inherited from class er.extensions.components._private.ERXWOTextField
_blankIsNull, _dateFormat, _formatter, _numberFormat, _readonly, _useDecimalNumber, log
 
Fields inherited from class com.webobjects.appserver._private.WOInput
_escapeHTML, _value
 
Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_associations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
FocusTextField(java.lang.String tagname, com.webobjects.foundation.NSDictionary nsdictionary, com.webobjects.appserver.WOElement woelement)
           
 
Method Summary
protected  void _appendAttributesFromAssociationsToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext wocontext, com.webobjects.foundation.NSDictionary nsdictionary)
           
static void _appendAttributesFromAssociationsToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext wocontext, java.lang.String id, java.lang.String onKeyPress, java.lang.String onEnterScript)
           
static void appendJavascriptToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context, java.lang.String id, boolean focus, boolean selectAll, java.lang.String onEnterScript)
           
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
          Overridden to make output XML compatible.
 java.lang.String id(com.webobjects.appserver.WOComponent component, com.webobjects.appserver.WOContext context)
           
 
Methods inherited from class er.extensions.components._private.ERXWOTextField
_appendCloseTagToResponse, _appendValueAttributeToResponse, isDisabledInContext, isReadonlyInContext, takeValuesFromRequest, toString, type
 
Methods inherited from class com.webobjects.appserver._private.WOInput
_appendNameAttributeToResponse, _shouldEscapeHTML, appendAttributesToResponse, constantAttributesRepresentation, disabledInComponent, nameInContext
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_appendOpenTagToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, elementName, escapeHTML, nonUrlAttributeAssociations, urlAttributeAssociations
 
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeAction, invokeChildrenAction, takeChildrenValuesFromRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_id

protected com.webobjects.appserver.WOAssociation _id

_selectAll

protected com.webobjects.appserver.WOAssociation _selectAll

_focus

protected com.webobjects.appserver.WOAssociation _focus

_onEnter

protected com.webobjects.appserver.WOAssociation _onEnter

_onKeyPress

protected com.webobjects.appserver.WOAssociation _onKeyPress
Constructor Detail

FocusTextField

public FocusTextField(java.lang.String tagname,
                      com.webobjects.foundation.NSDictionary nsdictionary,
                      com.webobjects.appserver.WOElement woelement)
Method Detail

id

public java.lang.String id(com.webobjects.appserver.WOComponent component,
                           com.webobjects.appserver.WOContext context)

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse response,
                             com.webobjects.appserver.WOContext context)
Description copied from class: ERXWOTextField
Overridden to make output XML compatible.

Overrides:
appendToResponse in class ERXWOTextField

_appendAttributesFromAssociationsToResponse

protected void _appendAttributesFromAssociationsToResponse(com.webobjects.appserver.WOResponse response,
                                                           com.webobjects.appserver.WOContext wocontext,
                                                           com.webobjects.foundation.NSDictionary nsdictionary)
Overrides:
_appendAttributesFromAssociationsToResponse in class com.webobjects.appserver._private.WOHTMLDynamicElement

_appendAttributesFromAssociationsToResponse

public static void _appendAttributesFromAssociationsToResponse(com.webobjects.appserver.WOResponse response,
                                                               com.webobjects.appserver.WOContext wocontext,
                                                               java.lang.String id,
                                                               java.lang.String onKeyPress,
                                                               java.lang.String onEnterScript)

appendJavascriptToResponse

public static void appendJavascriptToResponse(com.webobjects.appserver.WOResponse response,
                                              com.webobjects.appserver.WOContext context,
                                              java.lang.String id,
                                              boolean focus,
                                              boolean selectAll,
                                              java.lang.String onEnterScript)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.