|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.markup.html.WebMarkupContainer
wicket.markup.html.link.Link
wicket.markup.html.link.PageLink
public class PageLink
Links to a given page via an object implementing the IPageLink delayed linking interface. PageLinks can be constructed directly with an IPageLink interface or with a Page Class object. In the latter case, an IPageLink implementation is provided which constructs a Page of the given class when the link is clicked. A default no-args constructor must be available in this case or a WicketRuntimeException will be thrown when Wicket fails to instantiate the class.
IPageLink,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class wicket.Component |
|---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary |
|---|
| Fields inherited from class 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 wicket.markup.html.link.ILinkListener |
|---|
INTERFACE |
| Constructor Summary | |
|---|---|
PageLink(java.lang.String id,
java.lang.Class c)
Constructs a link that instantiates the given Page class when the link is clicked. |
|
PageLink(java.lang.String id,
IPageLink pageLink)
This constructor is ideal for constructing pages lazily. |
|
PageLink(java.lang.String id,
Page page)
This constructor is ideal if a Page object was passed in from a previous Page. |
|
| Method Summary | |
|---|---|
boolean |
linksTo(Page page)
Returns true if the given page is of the same class as the (delayed) destination of this page link. |
void |
onClick()
Handles a link click by asking for a concrete Page instance through the IPageLink.getPage() delayed linking interface. |
| Methods inherited from class wicket.markup.html.link.Link |
|---|
appendAnchor, getAfterDisabledLink, getAnchor, getAutoEnable, getBeforeDisabledLink, getOnClickScript, getOnClickScript, getPopupSettings, getURL, internalOnAttach, isEnabled, onComponentTag, onComponentTagBody, onLinkClicked, setAfterDisabledLink, setAnchor, setAutoEnable, setBeforeDisabledLink, setPopupSettings |
| Methods inherited from class wicket.markup.html.WebMarkupContainer |
|---|
getMarkupType, getWebPage |
| Methods inherited from class wicket.MarkupContainer |
|---|
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, internalDetach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PageLink(java.lang.String id,
java.lang.Class c)
id - See Componentc - Page class
public PageLink(java.lang.String id,
Page page)
id - See componentpage - The page
public PageLink(java.lang.String id,
IPageLink pageLink)
id - See ComponentpageLink - An implementation of IPageLink which will create the page
linked to if and when this hyperlink is clicked at a later
time.| Method Detail |
|---|
public boolean linksTo(Page page)
linksTo in class Linkpage - A page
Link.linksTo(wicket.Page)public void onClick()
onClick in class LinkLink.onClick()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||