|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.servlet.Page
Identifies a single page in an application. All characters are allowable in the names and page properties, with the following exceptions:
Developers refer requests to a Page by using the UIX Controller's PageEncoder API, which transforms URLs back into Pages. Most often, developers will want their application to always submit forms and send events back to the same Page that was used for rendering. This is especially easy; PageEncoder.getDefaultURL() will return exactly this URL.
Page objects directly support the State architecture. Clients can use the BajaContext to get a StateManager, then create State objects, and set those State objects on a Page instance. Any requests back to that Page will have the State object already attached (if the State object hasn't expired in the meantime).
PageEncoder
,
State
Constructor Summary | |
Page(Page referencePage,
java.lang.String name)
Creates a sibling Page. |
|
Page(Page referencePage,
java.lang.String name,
java.util.Dictionary properties)
Creates a sibling Page. |
|
Page(java.lang.String name)
Creates a Page object with the given name. |
|
Page(java.lang.String name,
java.util.Dictionary properties)
Creates a Page object with the given name and a full set of properties. |
Method Summary | |
void |
clearProperties()
Removes all properties from a page. |
java.lang.Object |
clone()
Clones the page object. |
void |
copyIntoSelf(Page page)
Replaces all the values of this Page object with the values in another. |
boolean |
equals(java.lang.Object o)
Compares two Objects for equality. |
boolean |
getBooleanProperty(java.lang.String key,
boolean defaultValue)
Gets a property of the page. |
java.lang.String |
getFullName(PageEncoder encoder)
Returns the full name of the page, including all the parameters in encoded form. |
java.lang.String |
getName()
Gets the name of the page. |
java.util.Dictionary |
getProperties()
Returns a map of all the properties of this page. |
java.lang.String |
getProperty(java.lang.String key)
Gets a property of the page. |
PageEvent |
getPropertyAsEvent(Page source,
java.lang.String key)
Returns a PageEvent object stored as a property as the page. |
Page |
getPropertyAsPage(java.lang.String key,
PageDecoder decoder)
Returns a Page object stored as a property of the page. |
State |
getState()
Gets the State object attached to the Page. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setBooleanProperty(java.lang.String key,
boolean value)
Sets a boolean property on the page. |
void |
setName(Page basePage,
java.lang.String name)
Sets the name of the page relative to another page. |
void |
setName(java.lang.String name)
Sets the name of the page. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property on the page. |
void |
setPropertyAsEvent(java.lang.String key,
PageEvent event)
Sets a PageEvent object as a property on the page. |
void |
setPropertyAsPage(java.lang.String key,
Page page,
PageEncoder encoder)
Sets a Page object as a property on the page. |
void |
setState(State state)
Sets the State object attached to the Page. |
java.lang.String |
toString()
Converts the page to a string. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Page(java.lang.String name)
public Page(java.lang.String name, java.util.Dictionary properties)
public Page(Page referencePage, java.lang.String name, java.util.Dictionary properties)
referencePage
- the page name from which to pull the pathname
- the new page nameproperties
- the new page is created with this full set of properties.public Page(Page referencePage, java.lang.String name)
referencePage
- the page name from which to pull the pathname
- the new page nameMethod Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public void setName(Page basePage, java.lang.String name)
public State getState()
public void setState(State state)
public void setProperty(java.lang.String key, java.lang.String value)
key
- the property keyvalue
- the property value; if null, the property will be removed.public java.lang.String getProperty(java.lang.String key)
public void setBooleanProperty(java.lang.String key, boolean value)
key
- the property keyvalue
- the property valuepublic boolean getBooleanProperty(java.lang.String key, boolean defaultValue)
key
- the property keydefaultValue
- the default value; if the property has not
been set, this value will be returnedpublic java.util.Dictionary getProperties()
public void setPropertyAsPage(java.lang.String key, Page page, PageEncoder encoder)
key
- the property keypage
- a page objectencoder
- a PageEncoder implementationpublic void setPropertyAsEvent(java.lang.String key, PageEvent event)
key
- the property keyevent
- a PageEvent objectpublic Page getPropertyAsPage(java.lang.String key, PageDecoder decoder)
public PageEvent getPropertyAsEvent(Page source, java.lang.String key)
source
- The Page which is the source of the PageEventkey
- The key of the event propertypublic void clearProperties()
public java.lang.String getFullName(PageEncoder encoder)
public java.lang.Object clone()
clone
in class java.lang.Object
public void copyIntoSelf(Page page)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
java.util.Hashtable
.hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |