Revision 1705 org.gvsig.raster/tags/2.0.0/org.gvsig.raster.swing/org.gvsig.raster.swing.api/src/main/java/org/gvsig/raster/swing/pagedtable/PagedTable.java

View differences:

PagedTable.java
23 23
 */
24 24
package org.gvsig.raster.swing.pagedtable;
25 25

  
26
import javax.swing.JComponent;
27

  
28
import org.gvsig.gui.beans.table.exceptions.NotInitializeException;
29

  
26 30
/**
27 31
 * API for a <code>PagedTable</code>
28 32
 * @author Nacho Brodin (nachobrodin@gmail.com)
......
30 34
 */
31 35
public interface PagedTable {
32 36
	/**
37
	 * Gets the value at the selected position
38
	 * @param row
39
	 * @param col
40
	 * @return
41
	 */
42
	public Object getValueAt(int row, int col);
43
	
44
	/**
45
	 * Sets a value in a cell
46
	 * @param obj
47
	 * @param row
48
	 * @param column
49
	 */
50
	public void setValueAt(Object obj, int row, int column);
51
	/**
52
	 * Gets the number of columns
53
	 * @return
54
	 */
55
	public int getColumnCount();
56
	/**
57
	 * Gets the number of rows
58
	 * @return
59
	 */
60
	public int getRowCount();
61
	/**
33 62
	 * Adds a row to the table.
34 63
	 * @param list List of strings
35 64
	 */
......
71 100
	 */
72 101
	public void setSelectedRow(int row);
73 102
	
103
	/**
104
	 * Increase the selected row
105
	 */
74 106
	public void increaseSelectedRows();
75 107
	
108
	/**
109
	 * Decrease the selected row
110
	 */
76 111
	public void decreaseSelectedRows();
77 112
	
78 113
	/**
......
82 117
	public void addSelectedRow(int row);
83 118
	
84 119
	/**
120
	 * Shows or hides the controls to move rows
121
	 * @param show
122
	 */
123
	public void showMoveRowsControls(boolean show);
124
	
125
	/**
126
	 * Shows or hides the table controller
127
	 * @param show
128
	 */
129
	public void showControllerTable(boolean show);
130
	
131
	/**
132
	 * Selects the next page
133
	 */
134
	public void nextPage();
135
	
136
	/**
137
	 * Selects the previous page
138
	 */
139
	public void prevPage();
140
	
141
	/**
142
	 * Sets the page selected
143
	 * @param pageNumber
144
	 */
145
	public void setSelectedPage(int pageNumber);
146
	
147
	/**
85 148
	 * Gets the table data model
86 149
	 * @return
87 150
	 */
88 151
	public TableModel getTableModel();
152
	
153
	/**
154
	 * Gets the component
155
	 * @return
156
	 */
157
	public JComponent getComponent();
89 158
}

Also available in: Unified diff