gvsig-projects-pool / org.gvsig.winmgr / trunk / org.gvsig.winmgr.app / org.gvsig.winmgr.app.mainplugin / src / main / java / org / gvsig / coreplugin / preferences / general / ExtensionsPage.java @ 682
History | View | Annotate | Download (2.32 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 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 3
|
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.coreplugin.preferences.general; |
25 |
|
26 |
import java.awt.BorderLayout; |
27 |
|
28 |
import javax.swing.ImageIcon; |
29 |
import javax.swing.JLabel; |
30 |
import javax.swing.JPanel; |
31 |
|
32 |
import org.gvsig.andami.PluginServices; |
33 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
34 |
|
35 |
|
36 |
public class ExtensionsPage extends AbstractPreferencePage { |
37 |
|
38 |
private JLabel jLabel = null; |
39 |
private ImageIcon icon; |
40 |
|
41 |
/**
|
42 |
* This is the default constructor
|
43 |
*/
|
44 |
public ExtensionsPage() {
|
45 |
super();
|
46 |
icon = PluginServices.getIconTheme().get("edit-setup-extensions");
|
47 |
setParentID(GeneralPage.class.getName()); |
48 |
initialize(); |
49 |
} |
50 |
|
51 |
/**
|
52 |
* This method initializes this
|
53 |
*
|
54 |
* @return void
|
55 |
*/
|
56 |
private void initialize() { |
57 |
jLabel = new JLabel(); |
58 |
jLabel.setText(PluginServices.getText(this,"configurar_todas_las_extensiones")); |
59 |
this.setLayout(new BorderLayout()); |
60 |
this.setSize(300, 200); |
61 |
this.add(jLabel, java.awt.BorderLayout.CENTER);
|
62 |
} |
63 |
|
64 |
public String getID() { |
65 |
return this.getClass().getName(); |
66 |
} |
67 |
|
68 |
public String getTitle() { |
69 |
return PluginServices.getText(this,"extensiones"); |
70 |
} |
71 |
|
72 |
public JPanel getPanel() { |
73 |
return this; |
74 |
} |
75 |
|
76 |
|
77 |
|
78 |
public void initializeValues() { |
79 |
} |
80 |
|
81 |
public void storeValues() { |
82 |
} |
83 |
|
84 |
public void initializeDefaults() { |
85 |
} |
86 |
|
87 |
public ImageIcon getIcon() { |
88 |
return icon;
|
89 |
} |
90 |
|
91 |
public boolean isValueChanged() { |
92 |
return false; // Because it does not manage values |
93 |
} |
94 |
|
95 |
public void setChangesApplied() { |
96 |
} |
97 |
} |