ERDActionBar Class Reference

Inherits er::directtoweb::components::ERDCustomEditComponent, and er::directtoweb::delegates::ERDBranchInterface.

Inherited by ERMDActionBar.

Collaboration diagram for ERDActionBar:

Collaboration graph
[legend]

List of all members.

Public Member Functions

NSDictionary branch ()
String branchButtonLabel ()
NSArray branchChoices ()
ERDBranchDelegateInterface branchDelegate ()
String branchName ()
 ERDActionBar (WOContext context)
boolean hasBranchChoices ()
boolean isStateless ()
WOComponent nextPageFromParent ()
WOComponent performAction ()
void reset ()
void setBranch (NSDictionary value)
boolean synchronizesVariablesWithBindings ()
void validationFailedWithException (Throwable theException, Object theValue, String theKeyPath)

Protected Attributes

NSDictionary branch
NSArray branchChoices
ERDBranchDelegateInterface branchDelegate

Static Private Attributes

static final Logger log = Logger.getLogger(ERDActionBar.class)


Detailed Description

Displays a set of buttons and calls the enclosing page's branch delegate with it. Its usable as an item in a repetition.

d2wContext the context for this component

Author:
ak on Sun Jan 26 2003 ERExtras

Constructor & Destructor Documentation

ERDActionBar ( WOContext  context  ) 

Public constructor

Parameters:
context the context


Member Function Documentation

NSDictionary branch (  ) 

Cover method for getting the choosen branch.

Returns:
user choosen branch.

String branchButtonLabel (  ) 

Implementation of the ERDBranchDelegate. Gets the user selected branch name.

Returns:
user selected branch name.

NSArray branchChoices (  ) 

Calculates the branch choices for the current poage. This method is just a cover for calling the method branchChoicesForContext on the current ERDBranchDelegate.

Returns:
array of branch choices

find the next non-null NextPageDelegate in the component tree, break if there is a D2WPage found beforehand

String branchName (  ) 

Implementation of the ERDBranchDelegate. Gets the user selected branch name.

Returns:
user selected branch name.

Implements ERDBranchInterface.

boolean hasBranchChoices (  ) 

Determines if this message page should display branch choices.

Returns:
if the current delegate supports branch choices.

boolean isStateless (  ) 

component is not stateless

Reimplemented from ERDCustomEditComponent.

Reimplemented in ERMDActionBar.

WOComponent nextPageFromParent (  ) 

WOComponent performAction (  ) 

override this

void reset (  ) 

Used by stateless subclasses.

Reimplemented from ERDCustomEditComponent.

void setBranch ( NSDictionary  value  ) 

Sets the user choosen branch.

Parameters:
value branch choosen by user.

boolean synchronizesVariablesWithBindings (  ) 

component does not synchronize it's variables

Reimplemented from ERDCustomEditComponent.

void validationFailedWithException ( Throwable  e,
Object  value,
String  keyPath 
)

Validation Support. Passes errors to the parent.

Reimplemented from ERDCustomComponent.


Member Data Documentation

NSDictionary branch [protected]

holds the chosen branch

NSArray branchChoices [protected]

final Logger log = Logger.getLogger(ERDActionBar.class) [static, private]

logging support

Reimplemented from ERDCustomEditComponent.


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

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