root / trunk / extensions / extRasterTools-SE / src / org / gvsig / rastertools / vectorizacion / ui / NextPrevPanel.java @ 21539
History | View | Annotate | Download (2.01 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*/
|
19 |
package org.gvsig.rastertools.vectorizacion.ui; |
20 |
|
21 |
import java.awt.FlowLayout; |
22 |
|
23 |
import javax.swing.JButton; |
24 |
import javax.swing.JPanel; |
25 |
|
26 |
import org.gvsig.raster.util.RasterToolsUtil; |
27 |
|
28 |
/**
|
29 |
* Panel con los controles de siguiente y anterior panel.
|
30 |
*
|
31 |
* 09/06/2008
|
32 |
* @author Nacho Brodin nachobrodin@gmail.com
|
33 |
*/
|
34 |
public class NextPrevPanel extends JPanel { |
35 |
private static final long serialVersionUID = 1L; |
36 |
private JButton next = null; |
37 |
private JButton prev = null; |
38 |
|
39 |
public NextPrevPanel() {
|
40 |
init(); |
41 |
} |
42 |
|
43 |
/**
|
44 |
* Inicializaci?n de los componentes gr?ficos
|
45 |
*/
|
46 |
private void init() { |
47 |
FlowLayout fl = new FlowLayout(); |
48 |
setLayout(fl); |
49 |
add(getPrev(), fl); |
50 |
add(getNext(), fl); |
51 |
} |
52 |
|
53 |
/**
|
54 |
* Obtiene el bot?n de siguiente
|
55 |
* @return JButton
|
56 |
*/
|
57 |
public JButton getNext() { |
58 |
if(next == null) { |
59 |
next = new JButton(RasterToolsUtil.getText(this, "next")); |
60 |
next.setEnabled(false);
|
61 |
} |
62 |
return next;
|
63 |
} |
64 |
|
65 |
/**
|
66 |
* Obtiene el bot?n de siguiente
|
67 |
* @return JButton
|
68 |
*/
|
69 |
public JButton getPrev() { |
70 |
if(prev == null) { |
71 |
prev = new JButton(RasterToolsUtil.getText(this, "prev")); |
72 |
prev.setEnabled(false);
|
73 |
} |
74 |
return prev;
|
75 |
} |
76 |
} |