org.apache.wicket.extensions.markup.html.repeater.data.sort
Class OrderByLink.CssProvider<S>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink.CssProvider<S>
- Type Parameters:
S - the type of the sort property
- All Implemented Interfaces:
- Serializable, OrderByLink.ICssProvider<S>, org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
- OrderByLink.DefaultCssProvider, OrderByLink.VoidCssProvider
- Enclosing class:
- OrderByLink<S>
public static class OrderByLink.CssProvider<S>
- extends Object
- implements OrderByLink.ICssProvider<S>
Easily constructible implementation of ICSSProvider
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderByLink.CssProvider
public OrderByLink.CssProvider(String ascending,
String descending,
String none)
- Parameters:
ascending - css class when sorting is ascendingdescending - css class when sorting is descendingnone - css class when not sorted
getClassAttributeValue
public String getClassAttributeValue(ISortState<S> state,
S sortProperty)
- Specified by:
getClassAttributeValue in interface OrderByLink.ICssProvider<S>
- Parameters:
state - current sort statesortProperty - sort sortProperty represented by the OrderByLink
- Returns:
- the value of the "class" attribute for the given sort state/sort sortProperty
combination
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.