|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.mock.MockPageManager
public class MockPageManager
Simple IPageManager
used for testing.
Constructor Summary | |
---|---|
MockPageManager()
Construct. |
Method Summary | |
---|---|
void |
commitRequest()
Commits the changes to external storage if the manager uses it. |
void |
destroy()
Destroy the page manager. |
IPageManagerContext |
getContext()
|
IManageablePage |
getPage(int id)
Retrieve page instance with given id. |
void |
newSessionCreated()
Invoked when new session has been created. |
void |
sessionExpired(String sessionId)
Invoked when the session has been expired. |
void |
setContext(IPageManagerContext context)
|
boolean |
supportsVersioning()
Returns whether this manager supports versioning. |
void |
touchPage(IManageablePage page)
Marks page as changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockPageManager()
Method Detail |
---|
public void commitRequest()
IPageManager
commitRequest
in interface IPageManager
public void destroy()
IPageManager
destroy
in interface IPageManager
public IManageablePage getPage(int id)
IPageManager
getPage
in interface IPageManager
null
public void newSessionCreated()
IPageManager
newSessionCreated
in interface IPageManager
public void sessionExpired(String sessionId)
IPageManager
sessionExpired
in interface IPageManager
public void setContext(IPageManagerContext context)
context
- public boolean supportsVersioning()
IPageManager
supportsVersioning
in interface IPageManager
public void touchPage(IManageablePage page)
IPageManager
touchPage
in interface IPageManager
public IPageManagerContext getContext()
getContext
in interface IPageManager
IPageManager.getContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |