|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.link.AbstractLink
org.apache.wicket.markup.html.link.Link<T>
org.apache.wicket.markup.html.link.BookmarkablePageLink<T>
T - type of model object, if anypublic class BookmarkablePageLink<T>
Renders a stable link which can be cached in a web browser and used at a later time.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.wicket.Component |
|---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor<T extends Component>, Component.VisibilityChange |
| Field Summary | |
|---|---|
protected MiniMap<java.lang.String,java.lang.Object> |
parameters
The parameters to pass to the class constructor when instantiated. |
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
| Fields inherited from interface org.apache.wicket.markup.html.link.ILinkListener |
|---|
INTERFACE |
| Constructor Summary | |
|---|---|
BookmarkablePageLink(java.lang.String id,
java.lang.Class<C> pageClass)
Constructor. |
|
BookmarkablePageLink(java.lang.String id,
java.lang.Class<C> pageClass,
PageParameters parameters)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Class<? extends Page> |
getPageClass()
Get tge page class registered with the link |
IPageMap |
getPageMap()
|
PageParameters |
getPageParameters()
|
protected boolean |
getStatelessHint()
Returns whether the component can be stateless. |
protected java.lang.CharSequence |
getURL()
Gets the url to use for this link. |
boolean |
linksTo(Page page)
Whether this link refers to the given page. |
void |
onClick()
THIS METHOD IS NOT USED! Bookmarkable links do not have a click handler. |
BookmarkablePageLink<T> |
setPageMap(IPageMap pageMap)
|
BookmarkablePageLink<T> |
setParameter(java.lang.String property,
int value)
Adds a given page property value to this link. |
BookmarkablePageLink<T> |
setParameter(java.lang.String property,
long value)
Adds a given page property value to this link. |
BookmarkablePageLink<T> |
setParameter(java.lang.String property,
java.lang.String value)
Adds a given page property value to this link. |
| Methods inherited from class org.apache.wicket.markup.html.link.Link |
|---|
appendAnchor, getAnchor, getAutoEnable, getModel, getModelObject, getOnClickScript, getOnClickScript, getPopupSettings, isEnabled, onComponentTag, onLinkClicked, setAnchor, setAutoEnable, setModel, setModelObject, setPopupSettings |
| Methods inherited from class org.apache.wicket.markup.html.link.AbstractLink |
|---|
disableLink, getAfterDisabledLink, getBeforeDisabledLink, isLinkEnabled, onBeforeRender, onComponentTagBody, setAfterDisabledLink, setBeforeDisabledLink |
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getMarkupType, getWebPage, getWebRequest |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected MiniMap<java.lang.String,java.lang.Object> parameters
| Constructor Detail |
|---|
public BookmarkablePageLink(java.lang.String id,
java.lang.Class<C> pageClass)
C - type of pageid - The name of this componentpageClass - The class of page to link to
public BookmarkablePageLink(java.lang.String id,
java.lang.Class<C> pageClass,
PageParameters parameters)
C - id - See ComponentpageClass - The class of page to link toparameters - The parameters to pass to the new page when the link is clicked| Method Detail |
|---|
public PageParameters getPageParameters()
public final java.lang.Class<? extends Page> getPageClass()
public final IPageMap getPageMap()
public boolean linksTo(Page page)
linksTo in class Link<T>page - the page
Link.linksTo(org.apache.wicket.Page)protected boolean getStatelessHint()
Component
getStatelessHint in class Link<T>public final void onClick()
onClick in class Link<T>Link.onClick()public final BookmarkablePageLink<T> setPageMap(IPageMap pageMap)
pageMap - The pagemap for this link's destination
public BookmarkablePageLink<T> setParameter(java.lang.String property,
int value)
property - The propertyvalue - The value
public BookmarkablePageLink<T> setParameter(java.lang.String property,
long value)
property - The propertyvalue - The value
public BookmarkablePageLink<T> setParameter(java.lang.String property,
java.lang.String value)
property - The propertyvalue - The value
protected java.lang.CharSequence getURL()
getURL in class Link<T>Link.getURL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||