KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > rero > gui > toolkit > GeneralListModel


1 package rero.gui.toolkit;
2
3 import java.util.*;
4 import javax.swing.table.*;
5
6 import java.awt.event.*;
7
8 import text.*;
9
10 import contrib.javapro.*;
11
12 /** A model for the sortable list window thingy... */
13 public abstract class GeneralListModel extends AbstractTableModel implements SortTableModel
14 {
15    public boolean isSortable(int col)
16    {
17       return true;
18    }
19
20    public abstract void sortColumn(int col, boolean ascending);
21
22    public abstract int getRowCount();
23    public abstract int getColumnCount();
24
25    public abstract String JavaDoc getColumnName(int col);
26    public abstract int getColumnWidth(int col);
27
28    public abstract HashMap getEventHashMap(int row);
29
30    /** make sure this method always returns an AttributedString */
31    public abstract Object JavaDoc getValueAt(int row, int col);
32 }
33
Popular Tags