|
||||||||||
| 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.PageLink<T>
T - type of model object
@Deprecated public class PageLink<T>
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. TODO 1.5: remove
IPageLink,
Serialized Form| 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 |
|---|
| 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> c)
Deprecated. Constructs a link that instantiates the given Page class when the link is clicked. |
|
PageLink(java.lang.String id,
IPageLink pageLink)
Deprecated. 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 | |
|---|---|
java.lang.Class<? extends Page> |
getPageClass()
Deprecated. Retrieves the class of page this link links to. |
boolean |
linksTo(Page page)
Deprecated. Returns true if the given page is of the same class as the (delayed) destination of this page link. |
void |
onClick()
Deprecated. 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, getModel, getModelObject, getOnClickScript, getOnClickScript, getPopupSettings, getStatelessHint, getURL, 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 |
| Constructor Detail |
|---|
public PageLink(java.lang.String id,
java.lang.Class<C> c)
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.
@Deprecated
public PageLink(java.lang.String id,
Page page)
links and call
setResponsePage in their onClick methods.
id - See componentpage - The page| Method Detail |
|---|
public java.lang.Class<? extends Page> getPageClass()
public boolean linksTo(Page page)
linksTo in class Link<T>page - A page
Link.linksTo(org.apache.wicket.Page)public void onClick()
onClick in class Link<T>Link.onClick()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||