root / tags / v1_1_Build_1004 / libraries / libCorePlugin / src / com / iver / core / preferences / general / ExtensionsPage.java @ 12319
History | View | Annotate | Download (1.41 KB)
1 | 5792 | caballero | package com.iver.core.preferences.general; |
---|---|---|---|
2 | |||
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 | import com.iver.andami.PluginServices; |
||
10 | import com.iver.andami.preferences.AbstractPreferencePage; |
||
11 | |||
12 | public class ExtensionsPage extends AbstractPreferencePage { |
||
13 | |||
14 | private JLabel jLabel = null; |
||
15 | private ImageIcon icon; |
||
16 | |||
17 | /**
|
||
18 | * This is the default constructor
|
||
19 | */
|
||
20 | public ExtensionsPage() {
|
||
21 | super();
|
||
22 | icon = new ImageIcon(this.getClass().getClassLoader().getResource("images/bonobo-component-browser.png")); |
||
23 | 5804 | fjp | setParentID(GeneralPage.class.getName()); |
24 | 5792 | caballero | initialize(); |
25 | } |
||
26 | |||
27 | /**
|
||
28 | * This method initializes this
|
||
29 | *
|
||
30 | * @return void
|
||
31 | */
|
||
32 | private void initialize() { |
||
33 | jLabel = new JLabel(); |
||
34 | jLabel.setText(PluginServices.getText(this,"configurar_todas_las_extensiones")); |
||
35 | this.setLayout(new BorderLayout()); |
||
36 | this.setSize(300, 200); |
||
37 | this.add(jLabel, java.awt.BorderLayout.CENTER);
|
||
38 | } |
||
39 | |||
40 | public String getID() { |
||
41 | return this.getClass().getName(); |
||
42 | } |
||
43 | |||
44 | public String getTitle() { |
||
45 | return PluginServices.getText(this,"extensiones"); |
||
46 | } |
||
47 | |||
48 | public JPanel getPanel() { |
||
49 | return this; |
||
50 | } |
||
51 | |||
52 | |||
53 | 5804 | fjp | |
54 | 5792 | caballero | public void initializeValues() { |
55 | } |
||
56 | |||
57 | 6662 | caballero | public void storeValues() { |
58 | 5792 | caballero | } |
59 | |||
60 | public void initializeDefaults() { |
||
61 | } |
||
62 | |||
63 | public ImageIcon getIcon() { |
||
64 | return icon;
|
||
65 | } |
||
66 | |||
67 | 6805 | jaume | public boolean isValueChanged() { |
68 | return false; // Because it does not manage values |
||
69 | 6575 | jaume | } |
70 | |||
71 | 6810 | jaume | public void setChangesApplied() { |
72 | } |
||
73 | 5792 | caballero | } |