er.ajax
Class FocusText
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
com.webobjects.appserver._private.WOHTMLDynamicElement
com.webobjects.appserver._private.WOInput
com.webobjects.appserver._private.WOText
er.extensions.foundation.ERXPatcher.DynamicElementsPatches.Text
er.extensions.components._private.ERXWOText
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 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 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 |
_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
FocusText
public FocusText(java.lang.String tagname,
com.webobjects.foundation.NSDictionary nsdictionary,
com.webobjects.appserver.WOElement woelement)
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
Copyright © 2002 – 2007 Project Wonder.