|
||||||||||
| 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
org.apache.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 org.apache.wicket.Component |
|---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary |
|---|
| 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 | |
|---|---|
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)
Deprecated. rather than using this class/ constructor, use normal links and call
setResponsePage in their onClick methods. |
|
| 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 org.apache.wicket.markup.html.link.Link |
|---|
appendAnchor, getAnchor, getAutoEnable, getOnClickScript, getOnClickScript, getPopupSettings, getStatelessHint, getURL, isEnabled, onComponentTag, onLinkClicked, setAnchor, setAutoEnable, 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 |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, 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,
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.
public PageLink(java.lang.String id,
Page page)
links and call
setResponsePage in their onClick methods.
id - See componentpage - The page| Method Detail |
|---|
public boolean linksTo(Page page)
linksTo in class Linkpage - A page
Link.linksTo(org.apache.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 | |||||||||