com.fruitioninc.jwc
Class Page

java.lang.Object
  |
  +--com.fruitioninc.jwc.Component
        |
        +--com.fruitioninc.jwc.Container
              |
              +--com.fruitioninc.jwc.Page

public class Page
extends Container

A web page. This is the outermost container in a web application.


Field Summary
 
Fields inherited from class com.fruitioninc.jwc.Component
NAME_DELIMITER
 
Constructor Summary
Page(Application application)
          Creates page with a default name, model, and title.
Page(Application application, java.lang.String title)
           
Page(Application application, java.lang.String name, java.lang.String title)
           
Page(PageModel model, Application application)
           
 
Method Summary
 void addPageListener(PageListener listener)
           
 Application getApplication()
          Returns this Page's enclosing Application.
static java.lang.String getDefaultName(java.lang.Class pageClass)
          Returns the default name a page.
 PageModel getPageModel()
          Returns this Page's model.
 java.lang.String getTitle()
          Returns the title of this Page.
 void setTitle(java.lang.String title)
          Sets the title of this Page.
 
Methods inherited from class com.fruitioninc.jwc.Container
add, getChildComponent, getChildren, getComponents, getPathName
 
Methods inherited from class com.fruitioninc.jwc.Component
addComponentListener, addMouseListener, fireComponentSerialize, fireMouseClicked, getComponentListenerCount, getComponentListeners, getContainer, getModel, getMouseListenerCount, getMouseListeners, getName, getPathName, getView, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

public Page(Application application)
Creates page with a default name, model, and title.


Page

public Page(PageModel model,
            Application application)

Page

public Page(Application application,
            java.lang.String title)

Page

public Page(Application application,
            java.lang.String name,
            java.lang.String title)
Method Detail

getPageModel

public PageModel getPageModel()
Returns this Page's model.


getTitle

public java.lang.String getTitle()
Returns the title of this Page.


setTitle

public void setTitle(java.lang.String title)
Sets the title of this Page.


getApplication

public Application getApplication()
Returns this Page's enclosing Application.

Overrides:
getApplication in class Component

addPageListener

public void addPageListener(PageListener listener)

getDefaultName

public static java.lang.String getDefaultName(java.lang.Class pageClass)
Returns the default name a page.

Parameters:
pageClass - the class of the page