|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.PageMap
public final class PageMap
A container for pages held in the session. PageMap is a parameter to several methods in the Wicket API. You can get a PageMap by name from a Session with Session.getPageMap(String pageMapName) or more conveniently with PageMap.forName(String pageMapName). But you should not hold onto a reference to the pagemap (just as you should not hold onto a reference to your Session but should get it each time you need it instead). Instead, create a strongly typed accessor method like this:
public PageMap getMyPageMap()
{
return PageMap.forName("myPageMapName");
}
If the page map with the given name is not found, one will be automatically
created.
| Nested Class Summary | |
|---|---|
static class |
PageMap.Access
Holds information about a pagemap access |
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_NAME
Name of default pagemap |
| Method Summary | |
|---|---|
void |
clear()
Removes all pages from this map |
static PageMap |
forName(java.lang.String pageMapName)
Gets a page map for a page map name, automatically creating the page map if it does not exist. |
ArrayListStack |
getAccessStack()
Returns a stack of PageMap.Access entries pushed in the order that the pages and versions were accessed. |
IPageMapEntry |
getEntry(int id)
Retrieves entry with given id. |
java.lang.String |
getName()
|
Session |
getSession()
|
long |
getSizeInBytes()
|
int |
getVersions()
|
boolean |
isDefault()
|
IPageMapEntry |
lastAccessedEntry()
Gets the most recently accessed page map entry off the top of the entry access stack. |
void |
remove()
Removes this PageMap from the Session. |
void |
remove(Page page)
Removes the page from the pagemap |
void |
removeEntry(IPageMapEntry entry)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_NAME
| Method Detail |
|---|
public static PageMap forName(java.lang.String pageMapName)
pageMapName - The name of the page map to get
public final void clear()
public final ArrayListStack getAccessStack()
public final IPageMapEntry getEntry(int id)
id - The page identifier
public final java.lang.String getName()
public final Session getSession()
public final long getSizeInBytes()
public final int getVersions()
public final boolean isDefault()
public final IPageMapEntry lastAccessedEntry()
getAccessStack()public final void remove()
public final void remove(Page page)
page - page to be removed from the pagemappublic final void removeEntry(IPageMapEntry entry)
entry - The entry to removepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||