org.apache.wicket.extensions.markup.html.repeater.data.table
Interface IColumn<T>

Type Parameters:
T -
All Superinterfaces:
ICellPopulator<T>, IClusterable, IDetachable, java.io.Serializable
All Known Subinterfaces:
IFilteredColumn<T>, IStyledColumn<T>
All Known Implementing Classes:
AbstractColumn, ChoiceFilteredPropertyColumn, FilteredAbstractColumn, FilteredPropertyColumn, HeaderlessColumn, PropertyColumn, TextFilteredPropertyColumn

public interface IColumn<T>
extends ICellPopulator<T>

An interface that represents a column in the DefaultDataTable

Author:
Igor Vaynberg ( ivaynberg )

Method Summary
 Component getHeader(java.lang.String componentId)
          Returns the component that will be used as the header for the column.
 java.lang.String getSortProperty()
          Returns the name of the property that this header sorts.
 boolean isSortable()
          Returns true if this header should be a sortable header
 
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator
populateItem
 
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
 

Method Detail

getHeader

Component getHeader(java.lang.String componentId)
Returns the component that will be used as the header for the column. This component will be contained in <span> tags.

Parameters:
componentId - component id for the returned Component
Returns:
component that will be used as the header for the column

getSortProperty

java.lang.String getSortProperty()
Returns the name of the property that this header sorts. If null is returned the header will be unsortable.

Returns:
a string representing the sort property

isSortable

boolean isSortable()
Returns true if this header should be a sortable header

Returns:
true if header should be sortable


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.