root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / help / AndamiHelpPanel.java @ 29593
History | View | Annotate | Download (1023 Bytes)
1 |
package org.gvsig.andami.help; |
---|---|
2 |
|
3 |
import javax.help.HelpSet; |
4 |
|
5 |
import org.gvsig.andami.PluginServices; |
6 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
7 |
import org.gvsig.andami.ui.mdiManager.MDIManager; |
8 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
9 |
|
10 |
|
11 |
|
12 |
public class AndamiHelpPanel extends HelpPanel implements IWindow { |
13 |
|
14 |
private static final long serialVersionUID = 2683827167020046672L; |
15 |
|
16 |
private WindowInfo info = null ; |
17 |
|
18 |
public AndamiHelpPanel(HelpSet hs){
|
19 |
super(hs);
|
20 |
} |
21 |
|
22 |
public AndamiHelpPanel(HelpSet hs, String id){ |
23 |
super(hs,id);
|
24 |
} |
25 |
|
26 |
public void showWindow() { |
27 |
MDIManager mdim = PluginServices.getMDIManager(); |
28 |
mdim.addWindow((IWindow) this);
|
29 |
} |
30 |
|
31 |
public WindowInfo getWindowInfo() {
|
32 |
if( info == null ) { |
33 |
info = new WindowInfo( WindowInfo.RESIZABLE |
|
34 |
WindowInfo.MAXIMIZABLE | WindowInfo.MODELESSDIALOG); |
35 |
info.setHeight(HEIGHT); |
36 |
info.setWidth(WIDTH); |
37 |
info.setTitle(getTitle()); |
38 |
} |
39 |
return info;
|
40 |
} |
41 |
|
42 |
public Object getWindowProfile() { |
43 |
return WindowInfo.TOOL_PROFILE;
|
44 |
} |
45 |
|
46 |
} |