gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.swing / org.gvsig.raster.swing.api / src / main / java / org / gvsig / raster / swing / pagedtable / PagedTable.java @ 1672
History | View | Annotate | Download (2.56 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2012 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.raster.swing.pagedtable; |
25 |
|
26 |
import javax.swing.JComponent; |
27 |
|
28 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
29 |
|
30 |
/**
|
31 |
* API for a <code>PagedTable</code>
|
32 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
33 |
*
|
34 |
*/
|
35 |
public interface PagedTable { |
36 |
/**
|
37 |
* Adds a row to the table.
|
38 |
* @param list List of strings
|
39 |
*/
|
40 |
public void addRow(Object[] list); |
41 |
|
42 |
/**
|
43 |
* Deletes a row from the table.
|
44 |
* @param Global position of the entry
|
45 |
*/
|
46 |
public void delRow(int i); |
47 |
|
48 |
/**
|
49 |
* Removes all rows of this table.
|
50 |
*/
|
51 |
public void removeAllRows(); |
52 |
|
53 |
/**
|
54 |
* Gets the selected rows
|
55 |
* @return
|
56 |
* @throws NotInitializeException
|
57 |
*/
|
58 |
public int[] getSelectedRows(); |
59 |
|
60 |
/**
|
61 |
* Swap two rows
|
62 |
* @param i Row to delete
|
63 |
*/
|
64 |
public void swapRow(int i, int j); |
65 |
|
66 |
/**
|
67 |
* Sets the rows selected
|
68 |
* @param rows
|
69 |
*/
|
70 |
public void setSelectedRows(int[] rows); |
71 |
|
72 |
/**
|
73 |
* Sets the row selected
|
74 |
* @param rows
|
75 |
*/
|
76 |
public void setSelectedRow(int row); |
77 |
|
78 |
/**
|
79 |
* Increase the selected row
|
80 |
*/
|
81 |
public void increaseSelectedRows(); |
82 |
|
83 |
/**
|
84 |
* Decrease the selected row
|
85 |
*/
|
86 |
public void decreaseSelectedRows(); |
87 |
|
88 |
/**
|
89 |
* Adds a new row selected without deselecting the old ones
|
90 |
* @param row
|
91 |
*/
|
92 |
public void addSelectedRow(int row); |
93 |
|
94 |
/**
|
95 |
* Selects the next page
|
96 |
*/
|
97 |
public void nextPage(); |
98 |
|
99 |
/**
|
100 |
* Selects the previous page
|
101 |
*/
|
102 |
public void prevPage(); |
103 |
|
104 |
/**
|
105 |
* Sets the page selected
|
106 |
* @param pageNumber
|
107 |
*/
|
108 |
public void setSelectedPage(int pageNumber); |
109 |
|
110 |
/**
|
111 |
* Gets the table data model
|
112 |
* @return
|
113 |
*/
|
114 |
public TableModel getTableModel(); |
115 |
|
116 |
/**
|
117 |
* Gets the component
|
118 |
* @return
|
119 |
*/
|
120 |
public JComponent getComponent(); |
121 |
} |