litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
package com.gwtmobile.ui.kitchensink.client.widget;
import com.google.gwt.event.dom.client.*;
import com.gwtmobile.phonegap.client.plugins.*;
import com.gwtmobile.ui.client.widgets.*;
public class PhoneGapHeaderPanel extends HeaderPanel
{
private String _doc;
private String _doc2;
public PhoneGapHeaderPanel() {
this.setLeftButton("Back");
this.setRightButton("Doc");
this.setRightButtonClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
String url = "http://docs.phonegap.com/";
String caption = PhoneGapHeaderPanel.this.getCaption();
url = url + "phonegap_" + getDocument() + "_" + getDocument2() +
".md.html#" + caption;
ChildBrowser.showWebPage( url, true );
}
});
}
public void setDocument(String doc) {
_doc = doc;
}
public String getDocument() {
if (_doc == null) {
return getCaption().toLowerCase();
}
else {
return _doc;
}
}
public void setDocument2(String doc2) {
_doc2 = doc2;
}
public String getDocument2() {
if (_doc2 == null) {
return getDocument();
}
else {
return _doc2;
}
}
}
|
Revision |
Author |
Commited |
Message |
658
|
GeorgeS
|
Tue 01 May, 2012 04:06:58 +0000 |
|