com.fruitioninc.jwc
Interface Application

All Known Implementing Classes:
AbstractApplication

public interface Application

A web application. Web applications consists of a set of Page instances each representing a web page within the application. At any one point in time, only one web page is visible. Every JWebComponents application has one of these.

See Also:
ApplicationFactory

Method Summary
 Component getComponent(java.lang.String pathName)
          Returns a component given a path name.
 Page getPage(java.lang.String name)
          Returns a web page with a given name.
 java.util.Iterator getPages()
          Returns an iteration of the pages in this application.
 Page getVisiblePage()
          Returns the currently visible page.
 void setVisiblePage(Page page)
          Sets the currently visible page.
 

Method Detail

getPage

public Page getPage(java.lang.String name)
Returns a web page with a given name.

Returns:
the page that name identifies or null if no such page exists

getComponent

public Component getComponent(java.lang.String pathName)
Returns a component given a path name. A path name is a name within a hierarchical namespace that identifies one component in an application. The actual form of the path name is determined by the instance of RequestParameterNameMarshaller being used.

Returns:
the component that pathName identifies or null if no such component exists
See Also:
RequestParameterNameMarshaller

getVisiblePage

public Page getVisiblePage()
Returns the currently visible page.

Returns:
the currently visible page.

setVisiblePage

public void setVisiblePage(Page page)
Sets the currently visible page.


getPages

public java.util.Iterator getPages()
Returns an iteration of the pages in this application.

Returns:
an iteration of Page objects.