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  WOAssociation _focus
           
protected  WOAssociation _id
           
protected  WOAssociation _onEnter
           
protected  WOAssociation _onKeyPress
           
protected  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
_disabled, _escapeHTML, _hidden, _name, _value
 
Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_associations, _class, _constantAttributeAssociations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization, _generatedId, _prefix, _rendered, _secure, _style, _suffix, _title, DontEscapeHTML, EscapeHTML
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
FocusTextField(String tagname, NSDictionary nsdictionary, WOElement woelement)
           
 
Method Summary
protected  void _appendAttributesFromAssociationsToResponse(WOResponse response, WOContext wocontext, NSDictionary nsdictionary)
           
static void _appendAttributesFromAssociationsToResponse(WOResponse response, WOContext wocontext, String id, String onKeyPress, String onEnterScript)
           
static void appendJavascriptToResponse(WOResponse response, WOContext context, String id, boolean focus, boolean selectAll, String onEnterScript)
           
 void appendToResponse(WOResponse response, WOContext context)
          Overridden to make output XML compatible.
 String id(WOComponent component, 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
_appendDisabledAttributeToResponse, _appendNameAttributeToResponse, _appendTypeAttributeToResponse, appendAttributesToResponse, defaultEscapeHTML, escapeHTMLInContext, hasContent, hiddenInContext, isValueInInputValues, nameInContext, nameInContext, valueStringInContext
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
__otherQueryDictionaryInContext, __queryDictionaryInContext, _appendClassAndIdToResponse, _appendOpenTagToResponse, _appendTagAttributeAndValueToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendHiddenFieldToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, classInContext, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributeAssociations, constantAttributesRepresentation, elementName, escapeHTML, idInContext, isRenderedInContext, nonUrlAttributeAssociations, prefixInContext, secureInContext, stringValueInContext, styleInContext, suffixInContext, titleInContext, 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 WOAssociation _id

_selectAll

protected WOAssociation _selectAll

_focus

protected WOAssociation _focus

_onEnter

protected WOAssociation _onEnter

_onKeyPress

protected WOAssociation _onKeyPress
Constructor Detail

FocusTextField

public FocusTextField(String tagname,
                      NSDictionary nsdictionary,
                      WOElement woelement)
Method Detail

id

public String id(WOComponent component,
                 WOContext context)

appendToResponse

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

Overrides:
appendToResponse in class ERXWOTextField

_appendAttributesFromAssociationsToResponse

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

_appendAttributesFromAssociationsToResponse

public static void _appendAttributesFromAssociationsToResponse(WOResponse response,
                                                               WOContext wocontext,
                                                               String id,
                                                               String onKeyPress,
                                                               String onEnterScript)

appendJavascriptToResponse

public static void appendJavascriptToResponse(WOResponse response,
                                              WOContext context,
                                              String id,
                                              boolean focus,
                                              boolean selectAll,
                                              String onEnterScript)

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.