svn-gvsig-desktop / tags / v2_0_0_Build_2059 / libraries / libCorePlugin / src / org / gvsig / coreplugin / preferences / general / GeneralPage.java @ 39304
History | View | Annotate | Download (3.14 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2005 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 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
package org.gvsig.coreplugin.preferences.general; |
42 |
|
43 |
import javax.swing.ImageIcon; |
44 |
import javax.swing.JCheckBox; |
45 |
import javax.swing.JPanel; |
46 |
|
47 |
import org.gvsig.andami.PluginServices; |
48 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
49 |
|
50 |
/**
|
51 |
* First default page in the Preferences Dialog. It is supposed to be
|
52 |
* used to hold simple user interaction settings such as:
|
53 |
* <ol>
|
54 |
* <li>
|
55 |
* Window positions.
|
56 |
* </li>
|
57 |
* <li>
|
58 |
* Mouse behaviors (double click vs. simple click).
|
59 |
* </li>
|
60 |
* <li>
|
61 |
* Users' language preferences.
|
62 |
* </li>
|
63 |
* <li>
|
64 |
* Confirm overwriting files.
|
65 |
* </li>
|
66 |
* <li>
|
67 |
* Toolbars config
|
68 |
* </li>
|
69 |
* </ol>
|
70 |
*
|
71 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
72 |
*
|
73 |
*/
|
74 |
public class GeneralPage extends AbstractPreferencePage { |
75 |
private ImageIcon icon; |
76 |
public static String id; |
77 |
|
78 |
private JCheckBox rememberWindowPosition; |
79 |
private JCheckBox rememberWindowSize; |
80 |
|
81 |
public GeneralPage() {
|
82 |
super();
|
83 |
initialize(); |
84 |
id = this.getClass().getName();
|
85 |
} |
86 |
|
87 |
private void initialize() { |
88 |
icon = PluginServices.getIconTheme().get("edit-setup-general");
|
89 |
|
90 |
/*
|
91 |
* Removed until behavior is clear when
|
92 |
* we do not store pos/size
|
93 |
*
|
94 |
// remember windows position check box
|
95 |
addComponent(rememberWindowPosition = new JCheckBox(PluginServices.getText(this, "options.general.remember_windows_pos")));
|
96 |
// remember windows sizes check box
|
97 |
addComponent(rememberWindowSize = new JCheckBox(PluginServices.getText(this, "options.general.remember_windows_size")));
|
98 |
*/
|
99 |
} |
100 |
|
101 |
|
102 |
public String getID() { |
103 |
return id;
|
104 |
} |
105 |
|
106 |
public String getTitle() { |
107 |
return PluginServices.getText(this, "pref.general"); |
108 |
} |
109 |
|
110 |
public JPanel getPanel() { |
111 |
return this; |
112 |
} |
113 |
|
114 |
public void initializeValues() { |
115 |
} |
116 |
|
117 |
public void storeValues() { |
118 |
} |
119 |
|
120 |
public void initializeDefaults() { |
121 |
} |
122 |
|
123 |
public ImageIcon getIcon() { |
124 |
return icon;
|
125 |
} |
126 |
|
127 |
public boolean isValueChanged() { |
128 |
return super.hasChanged(); |
129 |
} |
130 |
|
131 |
public void setChangesApplied() { |
132 |
setChanged(false);
|
133 |
} |
134 |
|
135 |
|
136 |
|
137 |
} |