gvsig-educa / org.gvsig.educa.thematicmap / trunk / org.gvsig.educa.thematicmap / org.gvsig.educa.thematicmap.lib / org.gvsig.educa.thematicmap.lib.prov.locateonthemap / src / main / java / org / gvsig / educa / thematicmap / lib / prov / locateonthemap / DefaultGeomSelectSwingManager.java @ 228
History | View | Annotate | Download (2.05 KB)
1 | 228 | nfrancisco | package org.gvsig.educa.thematicmap.lib.prov.locateonthemap; |
---|---|---|---|
2 | |||
3 | import java.awt.BorderLayout; |
||
4 | |||
5 | import javax.swing.JFrame; |
||
6 | import javax.swing.JPanel; |
||
7 | |||
8 | import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException; |
||
9 | import org.gvsig.gui.beans.wizard.panel.OptionPanel; |
||
10 | import org.gvsig.tools.ToolsLocator; |
||
11 | import org.gvsig.tools.i18n.I18nManager; |
||
12 | |||
13 | public class DefaultGeomSelectSwingManager extends JPanel implements |
||
14 | OptionPanel { |
||
15 | |||
16 | private static final long serialVersionUID = 7516346577746142454L; |
||
17 | |||
18 | // private GametestManager manager; (game manager?)
|
||
19 | private I18nManager i18nmanager = null; |
||
20 | |||
21 | private DefaultGameWindow gameWindow;
|
||
22 | |||
23 | private JFrame frame; |
||
24 | |||
25 | public DefaultGeomSelectSwingManager() {
|
||
26 | this.i18nmanager = ToolsLocator.getI18nManager();
|
||
27 | // this.manager = GametestLocator.getManager();
|
||
28 | } |
||
29 | |||
30 | // public GametestManager getGametestManager() {
|
||
31 | // return this.manager;
|
||
32 | // }
|
||
33 | |||
34 | public String getTranslation(String key) { |
||
35 | return this.i18nmanager.getTranslation(key); |
||
36 | } |
||
37 | |||
38 | public void createGameWindow() { |
||
39 | System.out.println("\ncreateGameWindow!\n"); |
||
40 | |||
41 | this.gameWindow = new DefaultGameWindow(); |
||
42 | |||
43 | // 1. Create the frame.
|
||
44 | frame = new JFrame("GameTest Window"); |
||
45 | |||
46 | frame.getContentPane().add(gameWindow, BorderLayout.CENTER);
|
||
47 | |||
48 | // 4. Size the frame.
|
||
49 | frame.pack(); |
||
50 | |||
51 | // 5. Show it.
|
||
52 | frame.setVisible(true);
|
||
53 | frame.setAlwaysOnTop(true);
|
||
54 | |||
55 | } |
||
56 | |||
57 | public void closeWindow() { |
||
58 | frame.dispose(); |
||
59 | } |
||
60 | |||
61 | // public GeomSelect getGametestManager() {
|
||
62 | // // TODO Auto-generated method stub
|
||
63 | // return null;
|
||
64 | // }
|
||
65 | |||
66 | public void loadSecondPanel() { |
||
67 | // TODO Auto-generated method stub
|
||
68 | |||
69 | } |
||
70 | |||
71 | public String getPanelTitle() { |
||
72 | // TODO Auto-generated method stub
|
||
73 | return null; |
||
74 | } |
||
75 | |||
76 | public void nextPanel() throws NotContinueWizardException { |
||
77 | // TODO Auto-generated method stub
|
||
78 | |||
79 | } |
||
80 | |||
81 | public void lastPanel() { |
||
82 | // TODO Auto-generated method stub
|
||
83 | |||
84 | } |
||
85 | |||
86 | public void updatePanel() { |
||
87 | // TODO Auto-generated method stub
|
||
88 | |||
89 | } |
||
90 | |||
91 | public JPanel getJPanel() { |
||
92 | // TODO Auto-generated method stub
|
||
93 | return null; |
||
94 | } |
||
95 | |||
96 | // public void loadSecondPanel() {
|
||
97 | // gametestPanel.loadSecondPanel();
|
||
98 | // }
|
||
99 | |||
100 | } |