er.ajax
Class FocusTextField
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
er.extensions.components._private.ERXWOTextField
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 |
| 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 |
|
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 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 |
_id
protected WOAssociation _id
_selectAll
protected WOAssociation _selectAll
_focus
protected WOAssociation _focus
_onEnter
protected WOAssociation _onEnter
_onKeyPress
protected WOAssociation _onKeyPress
FocusTextField
public FocusTextField(String tagname,
NSDictionary nsdictionary,
WOElement woelement)
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)
Copyright © 2002 – 2011 Project Wonder.