|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.PageMap
public abstract class PageMap
FIXME javadoc
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_NAME
Name of default pagemap |
Constructor Summary | |
---|---|
PageMap(java.lang.String name)
Constructor |
Method Summary | ||
---|---|---|
java.lang.String |
attributeForId(int id)
|
|
void |
clear()
Removes all pages from this map |
|
boolean |
continueToOriginalDestination()
Redirects to any intercept page previously specified by a call to redirectToInterceptPage. |
|
protected void |
dirty()
|
|
static IPageMap |
forName(java.lang.String pageMapName)
Gets a page map for a page map name, automatically creating the page map if it does not exist. |
|
abstract Page |
get(int id,
int versionNumber)
Retrieves page with given id. |
|
IPageMapEntry |
getEntry(int id)
Retrieves entry with given id. |
|
java.io.Serializable |
getMetaData(MetaDataKey<?> key)
Gets metadata for this PageMap using the given key. |
|
java.lang.String |
getName()
|
|
Session |
getSession()
|
|
long |
getSizeInBytes()
|
|
boolean |
isDefault()
|
|
int |
nextId()
|
|
abstract void |
put(Page page)
|
|
|
redirectToInterceptPage(java.lang.Class<T> pageClazz)
Redirects browser to an intermediate page such as a sign-in page. |
|
void |
redirectToInterceptPage(Page page)
Redirects browser to an intermediate page such as a sign-in page. |
|
void |
remove()
Removes this PageMap from the Session. |
|
void |
remove(Page page)
Removes the page from the pagemap |
|
abstract void |
removeEntry(IPageMapEntry entry)
|
|
void |
setMetaData(MetaDataKey<?> key,
java.io.Serializable object)
Sets the metadata for this PageMap using the given key. |
|
java.lang.String |
toString()
|
|
protected void |
visitEntries(org.apache.wicket.PageMap.IVisitor visitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.wicket.IPageMap |
---|
containsPage |
Field Detail |
---|
public static final java.lang.String DEFAULT_NAME
Constructor Detail |
---|
public PageMap(java.lang.String name)
name
- The name of this page mapMethod Detail |
---|
public static IPageMap forName(java.lang.String pageMapName)
pageMapName
- The name of the page map to get
public final java.lang.String attributeForId(int id)
attributeForId
in interface IPageMap
id
- The page id to create an attribute for
IPageMap.attributeForId(int)
public void clear()
IPageMap
clear
in interface IPageMap
IPageMap.clear()
public final boolean continueToOriginalDestination()
continueToOriginalDestination
in interface IPageMap
redirectToInterceptPage(Page)
public abstract Page get(int id, int versionNumber)
IPageMap
get
in interface IPageMap
id
- The page identifierversionNumber
- The version to get
IPageMap.get(int, int)
public final IPageMapEntry getEntry(int id)
IPageMap
getEntry
in interface IPageMap
id
- The page identifier
IPageMap.getEntry(int)
public final java.lang.String getName()
getName
in interface IPageMap
IPageMap.getName()
public final Session getSession()
public final long getSizeInBytes()
getSizeInBytes
in interface IPageMap
IPageMap.getSizeInBytes()
public final boolean isDefault()
isDefault
in interface IPageMap
IPageMap.isDefault()
public final int nextId()
nextId
in interface IPageMap
IPageMap.nextId()
public abstract void put(Page page)
put
in interface IPageMap
page
- The page to put into this mapIPageMap.put(org.apache.wicket.Page)
public final <T extends Page> void redirectToInterceptPage(java.lang.Class<T> pageClazz)
redirectToInterceptPage
in interface IPageMap
pageClazz
- The page clazz to temporarily redirect topublic final void redirectToInterceptPage(Page page)
redirectToInterceptPage
in interface IPageMap
page
- The page to temporarily redirect toComponent.continueToOriginalDestination()
public final void remove()
IPageMap
remove
in interface IPageMap
IPageMap.remove()
public final void remove(Page page)
IPageMap
remove
in interface IPageMap
page
- page to be removed from the pagemapIPageMap.remove(org.apache.wicket.Page)
public abstract void removeEntry(IPageMapEntry entry)
removeEntry
in interface IPageMap
entry
- The entry to removeIPageMap.removeEntry(org.apache.wicket.session.pagemap.IPageMapEntry)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
protected final void dirty()
protected final void visitEntries(org.apache.wicket.PageMap.IVisitor visitor)
visitor
- The visitor to call at each Page in this PageMap.public final void setMetaData(MetaDataKey<?> key, java.io.Serializable object)
MetaDataKey
.
key
- The singleton key for the metadataobject
- The metadata object
java.lang.IllegalArgumentException
MetaDataKey
public final java.io.Serializable getMetaData(MetaDataKey<?> key)
key
- The key for the data
MetaDataKey
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |