ERDControllerButton Class Reference

Inherits er::directtoweb::components::buttons::ERDActionButton, and er::directtoweb::delegates::ERDBranchInterface.

Collaboration diagram for ERDControllerButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

NSDictionary branch ()
String branchButtonLabel ()
NSArray branchChoices ()
ERDBranchDelegateInterface branchDelegate ()
String branchName ()
String cssForChoice ()
 ERDControllerButton (WOContext context)
boolean hasBranchChoices ()
String imageName ()
boolean isButton ()
boolean isFlyOver ()
WOComponent nextPageFromParent ()
WOComponent performAction ()
void reset ()
void setBranch (NSDictionary value)
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

Action button that looks for the inner-most page with a pageController (which must be a ERDBranchDelegateInterface), collects all the actions from there and displays them as a menu with an activation button.
Author:
ak

Constructor & Destructor Documentation

ERDControllerButton ( WOContext  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 page. 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.

String cssForChoice (  ) 

boolean hasBranchChoices (  ) 

Determines if this message page should display branch choices.

Returns:
if the current delegate supports branch choices.

String imageName (  ) 

boolean isButton (  ) 

boolean isFlyOver (  ) 

WOComponent nextPageFromParent (  ) 

WOComponent performAction (  ) 

override this

void reset (  ) 

Used by stateless subclasses.

Reimplemented from ERDCustomComponent.

void setBranch ( NSDictionary  value  ) 

Sets the user chosen branch.

Parameters:
value branch chosen by user.

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 ERDActionButton.


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