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  com.webobjects.appserver.WOAssociation _focus
           
protected  com.webobjects.appserver.WOAssociation _onEnter
           
protected  com.webobjects.appserver.WOAssociation _onKeyPress
           
protected  com.webobjects.appserver.WOAssociation _selectAll
           
 
Fields inherited from class er.extensions.foundation.ERXPatcher.DynamicElementsPatches.Text
_id, _readonly
 
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
FocusText(java.lang.String tagname, com.webobjects.foundation.NSDictionary nsdictionary, com.webobjects.appserver.WOElement woelement)
           
 
Method Summary
protected  void _appendAttributesFromAssociationsToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext, com.webobjects.foundation.NSDictionary nsdictionary)
           
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
 java.lang.String id(com.webobjects.appserver.WOComponent component, com.webobjects.appserver.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
 
Methods inherited from class com.webobjects.appserver._private.WOInput
_shouldEscapeHTML, appendAttributesToResponse, constantAttributesRepresentation, disabledInComponent, nameInContext, toString, type
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_appendCloseTagToResponse, _appendOpenTagToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, elementName, escapeHTML, nonUrlAttributeAssociations, 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 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

FocusText

public FocusText(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)

_appendAttributesFromAssociationsToResponse

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

appendToResponse

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

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

Copyright © 2002 – 2007 Project Wonder.