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 / PagedTableEvent.java @ 1733
History | View | Annotate | Download (2.36 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
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 |
*/
|
22 |
package org.gvsig.raster.swing.pagedtable; |
23 |
|
24 |
import java.util.EventObject; |
25 |
|
26 |
/**
|
27 |
* Evento lanzado por las herramientas de la vista
|
28 |
* 17/01/2008
|
29 |
* @author Nacho Brodin nachobrodin@gmail.com
|
30 |
*/
|
31 |
public class PagedTableEvent extends EventObject { |
32 |
private static final long serialVersionUID = 1L; |
33 |
|
34 |
public static int EVENT_SELECTED_ROWS = 0; |
35 |
public static int EVENT_ADD_ENTRY = 1; |
36 |
public static int EVENT_REMOVE_ENTRY = 2; |
37 |
public static int EVENT_REMOVE_ALL = 3; |
38 |
public static int EVENT_SELECTED_PAGE = 4; |
39 |
public static int EVENT_MODIFY_ENTRY = 5; |
40 |
public static int EVENT_SWAP_ENTRIES = 6; |
41 |
|
42 |
private int event = -1; |
43 |
private int[] rows = null; |
44 |
private Object rowDeleted = null; |
45 |
|
46 |
/**
|
47 |
* Constructor
|
48 |
* @param source
|
49 |
*/
|
50 |
public PagedTableEvent(Object source, int id, int[] rows) { |
51 |
super(source);
|
52 |
this.event = id;
|
53 |
this.rows = rows;
|
54 |
} |
55 |
|
56 |
/**
|
57 |
* Constructor
|
58 |
* @param source
|
59 |
*/
|
60 |
public PagedTableEvent(Object source, int id, Object rowDeleted) { |
61 |
super(source);
|
62 |
this.event = id;
|
63 |
this.rowDeleted = rowDeleted;
|
64 |
} |
65 |
|
66 |
public int getEvent() { |
67 |
return event;
|
68 |
} |
69 |
|
70 |
public int[] getRows() { |
71 |
return rows;
|
72 |
} |
73 |
|
74 |
public Object getRowDeleted() { |
75 |
return rowDeleted;
|
76 |
} |
77 |
|
78 |
} |