ModalDialogExample Class Reference

Inherits com::webobjects::appserver::WOComponent.

Inherited by ModalDialogOpenerExample.

Collaboration diagram for ModalDialogExample:

Collaboration graph
[legend]

List of all members.

Public Member Functions

WOActionResults cancelEdit ()
String confirmationMessage ()
WOActionResults deleteIt ()
WOActionResults deleteIt2 ()
WOActionResults editEmployee ()
Employee employee ()
String errorMessages ()
String firstName ()
String lastName ()
 ModalDialogExample (WOContext context)
WOActionResults saveEdit ()
void setEmployee (Employee person)
void setFirstName (String name)
void setLastName (String name)

Public Attributes

NSMutableArray< Companycompanies = new NSMutableArray<Company>()
final NSArray< StringcompanyNames

Protected Attributes

String errorMessages

Private Attributes

Employee employee
boolean isSecondConfirmation


Detailed Description

Example usage of AjaxModalDialog. Not intended as a best practice example of WO coding...

See also:
AjaxModalDialog

Constructor & Destructor Documentation

ModalDialogExample ( WOContext  context  ) 


Member Function Documentation

WOActionResults cancelEdit (  ) 

Shows the use of an AjaxSubmitButton to cancel a dialog.

Reimplemented in ModalDialogOpenerExample.

String confirmationMessage (  ) 

Binding for WOString that is in AjaxUpdateContainer "ConfirmationMessage". Returns an initial or repeated confirmation message.

WOActionResults deleteIt (  ) 

Ajax method that is called when deletion is confirmed in the Ajax Dialog with the Yes hyperlink

WOActionResults deleteIt2 (  ) 

Ajax method that is called when deletion is confirmed in the Ajax Dialog with the Yes2 hyperlink. This shows how to update the dialog contents and how to close the box from Java.

WOActionResults editEmployee (  ) 

Shows how to bind the action method to a component that needs initialization before being shown in the dialog. This component contains form elements.

Employee employee (  ) 

Returns:
the employee

Binding for WOString that is in AjaxUpdateContainer "ValidationMessage". Returns any error messages from trying to save employee().

String firstName (  ) 

String lastName (  ) 

WOActionResults saveEdit (  ) 

Shows the use of an AjaxSubmitButton to submit a form, validate the contents, and either update or close the dialog.

Reimplemented in ModalDialogOpenerExample.

void setEmployee ( Employee  person  ) 

Parameters:
person the employee to set

void setFirstName ( String  name  ) 

This is used instead of employee.firstName so that we can see which method is called

void setLastName ( String  name  ) 

This is used instead of employee.lastName so that we can see which method is called


Member Data Documentation

final NSArray<String> companyNames

Initial value:

 new NSArray<String>(new String[]{
                        "Acme Ajax, Inc.",
                        "Betty's Baubles, LLC",
                        "Gimcrack, Intl.", 
                         "Sally's Seashore Seashells",
                         "The Fu Bar"
        })

Employee employee [private]

String errorMessages [protected]

boolean isSecondConfirmation [private]


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

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