01: /*
02: * $Id: IColumn.java 458267 2005-12-09 07:31:35Z ivaynberg $ $Revision: 458267 $
03: * $Date: 2005-12-09 08:31:35 +0100 (Fri, 09 Dec 2005) $
04: *
05: * ==================================================================== Licensed
06: * under the Apache License, Version 2.0 (the "License"); you may not use this
07: * file except in compliance with the License. You may obtain a copy of the
08: * License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.extensions.markup.html.repeater.data.table;
19:
20: import wicket.Component;
21: import wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
22:
23: /**
24: * An inteface that represents a column in the {@link DefaultDataTable}
25: *
26: * @author Igor Vaynberg ( ivaynberg )
27: */
28: public interface IColumn extends ICellPopulator {
29: /**
30: * Returns the component that will be used as the header for the column.
31: *
32: * This component will be contained in <span> tags.
33: *
34: * @param componentId
35: * component id for the returned Component
36: *
37: * @return component that will be used as the header for the column
38: */
39: Component getHeader(String componentId);
40:
41: /**
42: * Returns the name of the property that this header sorts. If null is
43: * returned the header will be unsortable.
44: *
45: * @return a string representing the sort property
46: */
47: String getSortProperty();
48:
49: /**
50: * Returns true if this header should be a sortable header
51: *
52: * @return true if header should be sortable
53: */
54: boolean isSortable();
55: }
|