|
||||||||||
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.extensions.markup.html.repeater.data.sort.OrderByLink
public class OrderByLink
A component that represents a sort header. When the link is clicked it will toggle the state of a sortable property within the sort state object.
Nested Class Summary | |
---|---|
static class |
OrderByLink.CssModifier
Uses the specified ICssProvider to add css class attributes to the link. |
static class |
OrderByLink.CssProvider
Easily constructible implementation of ICSSProvider |
static class |
OrderByLink.DefaultCssProvider
Default implementation of ICssProvider |
static interface |
OrderByLink.ICssProvider
Interface used to generate values of css class attribute for the anchor tag If the generated value is null class attribute will not be added |
static class |
OrderByLink.VoidCssProvider
Convenience implementation of ICssProvider that always returns a null and so never adds a class attribute |
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_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, 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 | |
---|---|
OrderByLink(String id,
String property,
ISortStateLocator stateLocator)
Constructor. |
|
OrderByLink(String id,
String property,
ISortStateLocator stateLocator,
OrderByLink.ICssProvider cssProvider)
Constructor. |
Method Summary | |
---|---|
void |
onClick()
Called when a link is clicked. |
protected void |
onSortChanged()
This method is a hook for subclasses to perform an action after sort has changed |
OrderByLink |
sort()
Re-sort data provider according to this link |
Methods inherited from class org.apache.wicket.markup.html.link.Link |
---|
appendAnchor, getAnchor, getAutoEnable, getModel, getModelObject, getOnClickScript, getOnClickScript, getPopupSettings, getStatelessHint, getURL, isEnabled, linksTo, 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, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, 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 OrderByLink(String id, String property, ISortStateLocator stateLocator)
id
- the component id of the linkproperty
- the name of the sortable property this link represents. this value will be used as
parameter for sort state object methods. sort state object will be located via the
stateLocator argument.stateLocator
- locator used to locate sort state object that this will use to read/write state of
sorted propertiespublic OrderByLink(String id, String property, ISortStateLocator stateLocator, OrderByLink.ICssProvider cssProvider)
id
- the component id of the linkproperty
- the name of the sortable property this link represents. this value will be used as
parameter for sort state object methods. sort state object will be located via the
stateLocator argument.stateLocator
- locator used to locate sort state object that this will use to read/write state of
sorted propertiescssProvider
- CSS provider that will be used generate the value of class attribute for this linkOrderByLink.ICssProvider
Method Detail |
---|
public final void onClick()
Link
onClick
in class Link
Link
protected void onSortChanged()
public final OrderByLink sort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |