Project Wonder 5.0

er.ajax
Class FocusText

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 com.webobjects.appserver._private.WOText
                          extended by er.extensions.foundation.ERXPatcher.DynamicElementsPatches.Text
                              extended by er.extensions.components._private.ERXWOText
                                  extended by er.ajax.FocusText

public class FocusText
extends ERXWOText

Focus text is a convenience version of ERXWOText 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 _onEnter
           
protected  WOAssociation _onKeyPress
           
protected  WOAssociation _selectAll
           
 
Fields inherited from class er.extensions.foundation.ERXPatcher.DynamicElementsPatches.Text
_readonly
 
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, _id, _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
FocusText(String tagname, NSDictionary nsdictionary, WOElement woelement)
           
 
Method Summary
protected  void _appendAttributesFromAssociationsToResponse(WOResponse woresponse, WOContext wocontext, NSDictionary nsdictionary)
           
 void appendToResponse(WOResponse response, WOContext context)
           
 String id(WOComponent component, WOContext context)
           
 
Methods inherited from class er.extensions.components._private.ERXWOText
_appendValueAttributeToResponse
 
Methods inherited from class er.extensions.foundation.ERXPatcher.DynamicElementsPatches.Text
_appendNameAttributeToResponse, takeValuesFromRequest
 
Methods inherited from class com.webobjects.appserver._private.WOText
appendChildrenToResponse, hasContent
 
Methods inherited from class com.webobjects.appserver._private.WOInput
_appendDisabledAttributeToResponse, _appendTypeAttributeToResponse, appendAttributesToResponse, defaultEscapeHTML, escapeHTMLInContext, hiddenInContext, isDisabledInContext, isValueInInputValues, nameInContext, nameInContext, toString, type, valueStringInContext
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
__otherQueryDictionaryInContext, __queryDictionaryInContext, _appendClassAndIdToResponse, _appendCloseTagToResponse, _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, 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

_selectAll

protected WOAssociation _selectAll

_focus

protected WOAssociation _focus

_onEnter

protected WOAssociation _onEnter

_onKeyPress

protected WOAssociation _onKeyPress
Constructor Detail

FocusText

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

id

public String id(WOComponent component,
                 WOContext context)

_appendAttributesFromAssociationsToResponse

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

appendToResponse

public void appendToResponse(WOResponse response,
                             WOContext context)
Overrides:
appendToResponse in class ERXPatcher.DynamicElementsPatches.Text

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

Copyright © 2002 – 2011 Project Wonder.