| wicket.markup.html.border.Border wicket.examples.displaytag.list.SortableListViewHeader
SortableListViewHeader | abstract public class SortableListViewHeader extends Border (Code) | | Sortable list view header component for a single list view column.
Functionality provided includes sorting the underlying list view and changing
the colours (style) of the header.
See Also: SortableListViewHeaderGroup See Also: SortableListViewHeaders author: Juergen Donnerstag |
SortableListViewHeader | public SortableListViewHeader(String id, SortableListViewHeaderGroup group)(Code) | | Construct.
Parameters: id - The component's id Parameters: group - The group of headers the new one will be added to |
compareTo | protected int compareTo(Object o1, Object o2)(Code) | | Compare two objects (list elements of list view's model object). Both
objects must implement Comparable. In order to compare basic types like
int or double, simply subclass the method.
Parameters: o1 - first object Parameters: o2 - second object comparision result |
getCssClass | final protected String getCssClass()(Code) | | Get CSS style for the header based on ascending / descending. Delegate to
the header group to determine the style.
css class |
getObjectToCompare | protected Comparable getObjectToCompare(Object object)(Code) | | Returns the comparable object of the list view the header/column is
referring to, e.g. obj.getId();
Parameters: object - the ListItems model object The object to compare |
linkClicked | protected void linkClicked()(Code) | | Header has been clicked. Define what to do.
|
sort | protected void sort()(Code) | | Sort list view's model object based on column data
|
|
|