|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.navigation.paging.PagingNavigationIncrementLink org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink
public class AjaxPagingNavigationIncrementLink
An incremental Ajaxian link to a page of a PageableListView. Assuming your list view navigation looks like
[first / << / <] 1 | 2 | 3 [> / >> /last]
and "<" meaning the previous and "<<" goto the "current page - 5", than it is this kind of incremental page links which can easily be created. This link will update the pageable and itself or the navigator the link is part of using Ajax techniques, or perform a full refresh when ajax is not available.
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.markup.html.navigation.paging.PagingNavigationIncrementLink |
---|
pageable |
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 | |
---|---|
AjaxPagingNavigationIncrementLink(java.lang.String id,
IPageable pageable,
int increment)
Constructor. |
Method Summary | |
---|---|
protected java.lang.String |
getEventHandler(java.lang.String defaultHandler)
Returns the javascript event handler for this component. |
void |
onClick()
Fallback event listener, will redisplay the current page. |
void |
onClick(AjaxRequestTarget target)
Performs the actual action of this component, performing a non-ajax fallback when there was no AjaxRequestTarget available. |
Methods inherited from class org.apache.wicket.markup.html.navigation.paging.PagingNavigationIncrementLink |
---|
getPageNumber, isFirst, isLast, linksTo |
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 AjaxPagingNavigationIncrementLink(java.lang.String id, IPageable pageable, int increment)
id
- See Componentpageable
- The pageable component the page links are referring toincrement
- increment byMethod Detail |
---|
protected java.lang.String getEventHandler(java.lang.String defaultHandler)
NOTE: It is recommended that you only prepend additional javascript to the default handler because the default handler uses the return func() format so any appended javascript will not be evaluated by default.
defaultHandler
- default javascript event handler generated by this link
public void onClick()
onClick
in class PagingNavigationIncrementLink
Link.onClick()
public void onClick(AjaxRequestTarget target)
onClick
in interface IAjaxLink
target
- the request target, when null
, a full page refresh will be generated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |