KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > components > table > SortableTableModel


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.webwork.components.table;
6
7 import javax.swing.table.TableModel JavaDoc;
8
9
10 /**
11  * @author $author$
12  * @version $Revision: 1.1 $
13  */

14 public interface SortableTableModel extends TableModel JavaDoc {
15     //~ Static fields/initializers /////////////////////////////////////////////
16

17     final static public String JavaDoc NONE = "NONE";
18     final static public String JavaDoc ASC = "ASC";
19     final static public String JavaDoc DESC = "DESC";
20
21     //~ Methods ////////////////////////////////////////////////////////////////
22

23     public int getSortedColumnNumber();
24
25     public String JavaDoc getSortedDirection(int columnNumber);
26
27     public void sort(int columnNumber, String JavaDoc direction);
28 }
29
Popular Tags