root / branches / v2_0_0_prep / libraries / libCorePlugin / src / org / gvsig / coreplugin / preferences / general / ExtensionsPage.java @ 38564
History | View | Annotate | Download (1.38 KB)
1 | 29630 | jpiera | package org.gvsig.coreplugin.preferences.general; |
---|---|---|---|
2 | 5792 | caballero | |
3 | 6102 | jaume | import java.awt.BorderLayout; |
4 | |||
5 | 5792 | caballero | import javax.swing.ImageIcon; |
6 | 6102 | jaume | import javax.swing.JLabel; |
7 | 5792 | caballero | import javax.swing.JPanel; |
8 | |||
9 | 29630 | jpiera | import org.gvsig.andami.PluginServices; |
10 | import org.gvsig.andami.preferences.AbstractPreferencePage; |
||
11 | 5792 | caballero | |
12 | 29630 | jpiera | |
13 | 5792 | caballero | public class ExtensionsPage extends AbstractPreferencePage { |
14 | |||
15 | private JLabel jLabel = null; |
||
16 | private ImageIcon icon; |
||
17 | |||
18 | /**
|
||
19 | * This is the default constructor
|
||
20 | */
|
||
21 | public ExtensionsPage() {
|
||
22 | super();
|
||
23 | 38564 | jjdelcerro | icon = PluginServices.getIconTheme().get("edit-setup-extensions");
|
24 | 5804 | fjp | setParentID(GeneralPage.class.getName()); |
25 | 5792 | caballero | initialize(); |
26 | } |
||
27 | |||
28 | /**
|
||
29 | * This method initializes this
|
||
30 | *
|
||
31 | * @return void
|
||
32 | */
|
||
33 | private void initialize() { |
||
34 | jLabel = new JLabel(); |
||
35 | jLabel.setText(PluginServices.getText(this,"configurar_todas_las_extensiones")); |
||
36 | this.setLayout(new BorderLayout()); |
||
37 | this.setSize(300, 200); |
||
38 | this.add(jLabel, java.awt.BorderLayout.CENTER);
|
||
39 | } |
||
40 | |||
41 | public String getID() { |
||
42 | return this.getClass().getName(); |
||
43 | } |
||
44 | |||
45 | public String getTitle() { |
||
46 | return PluginServices.getText(this,"extensiones"); |
||
47 | } |
||
48 | |||
49 | public JPanel getPanel() { |
||
50 | return this; |
||
51 | } |
||
52 | |||
53 | |||
54 | 5804 | fjp | |
55 | 5792 | caballero | public void initializeValues() { |
56 | } |
||
57 | |||
58 | 6662 | caballero | public void storeValues() { |
59 | 5792 | caballero | } |
60 | |||
61 | public void initializeDefaults() { |
||
62 | } |
||
63 | |||
64 | public ImageIcon getIcon() { |
||
65 | return icon;
|
||
66 | } |
||
67 | |||
68 | 6805 | jaume | public boolean isValueChanged() { |
69 | return false; // Because it does not manage values |
||
70 | 6575 | jaume | } |
71 | |||
72 | 6810 | jaume | public void setChangesApplied() { |
73 | } |
||
74 | 5792 | caballero | } |