svn-gvsig-desktop / trunk / libraries / libCorePlugin / src / com / iver / core / preferences / general / ExtensionsPage.java @ 5792
History | View | Annotate | Download (1.4 KB)
1 |
package com.iver.core.preferences.general; |
---|---|
2 |
|
3 |
import javax.swing.ImageIcon; |
4 |
import javax.swing.JPanel; |
5 |
|
6 |
import com.iver.andami.PluginServices; |
7 |
import com.iver.andami.preferences.AbstractPreferencePage; |
8 |
import javax.swing.JLabel; |
9 |
import java.awt.BorderLayout; |
10 |
|
11 |
public class ExtensionsPage extends AbstractPreferencePage { |
12 |
|
13 |
private JLabel jLabel = null; |
14 |
private ImageIcon icon; |
15 |
|
16 |
/**
|
17 |
* This is the default constructor
|
18 |
*/
|
19 |
public ExtensionsPage() {
|
20 |
super();
|
21 |
icon = new ImageIcon(this.getClass().getClassLoader().getResource("images/bonobo-component-browser.png")); |
22 |
initialize(); |
23 |
} |
24 |
|
25 |
/**
|
26 |
* This method initializes this
|
27 |
*
|
28 |
* @return void
|
29 |
*/
|
30 |
private void initialize() { |
31 |
jLabel = new JLabel(); |
32 |
jLabel.setText(PluginServices.getText(this,"configurar_todas_las_extensiones")); |
33 |
this.setLayout(new BorderLayout()); |
34 |
this.setSize(300, 200); |
35 |
this.add(jLabel, java.awt.BorderLayout.CENTER);
|
36 |
} |
37 |
|
38 |
public String getID() { |
39 |
return this.getClass().getName(); |
40 |
} |
41 |
|
42 |
public String getTitle() { |
43 |
return PluginServices.getText(this,"extensiones"); |
44 |
} |
45 |
|
46 |
public JPanel getPanel() { |
47 |
return this; |
48 |
} |
49 |
|
50 |
public String getParentID() { |
51 |
return GeneralPage.class.getName();
|
52 |
} |
53 |
|
54 |
public void initializeValues() { |
55 |
// TODO Auto-generated method stub
|
56 |
|
57 |
} |
58 |
|
59 |
public boolean storeValues() { |
60 |
return true; |
61 |
} |
62 |
|
63 |
public void initializeDefaults() { |
64 |
// TODO Auto-generated method stub
|
65 |
|
66 |
} |
67 |
|
68 |
public ImageIcon getIcon() { |
69 |
return icon;
|
70 |
} |
71 |
|
72 |
} |