FocusTextField Class Reference

Inherits er::extensions::components::_private::ERXWOTextField.

Collaboration diagram for FocusTextField:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void appendToResponse (WOResponse response, WOContext context)
 FocusTextField (String tagname, NSDictionary nsdictionary, WOElement woelement)
String id (WOComponent component, WOContext context)

Static Public Member Functions

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)

Protected Member Functions

void _appendAttributesFromAssociationsToResponse (WOResponse response, WOContext wocontext, NSDictionary nsdictionary)

Protected Attributes

WOAssociation _focus
WOAssociation _id
WOAssociation _onEnter
WOAssociation _onKeyPress
WOAssociation _selectAll


Detailed Description

Focus text field is a convenience version of ERXWOTextField that provides support for grabbing default focus via javascript.

Author:
mschrag
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

Constructor & Destructor Documentation

FocusTextField ( String  tagname,
NSDictionary  nsdictionary,
WOElement  woelement 
)


Member Function Documentation

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

void _appendAttributesFromAssociationsToResponse ( WOResponse  response,
WOContext  wocontext,
NSDictionary  nsdictionary 
) [protected]

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

void appendToResponse ( WOResponse  woresponse,
WOContext  wocontext 
)

Overridden to make output XML compatible.

Reimplemented from ERXWOTextField.

String id ( WOComponent  component,
WOContext  context 
)


Member Data Documentation

WOAssociation _focus [protected]

WOAssociation _id [protected]

WOAssociation _onEnter [protected]

WOAssociation _onKeyPress [protected]

WOAssociation _selectAll [protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:40 2012 for Project Wonder by  doxygen 1.5.8