Subversion Repository Public Repository

litesoft

Diff Revisions 658 vs 948 for /trunk/GWT_Sandbox/gwtUITrimmed/src/com/gwtmobile/ui/kitchensink/client/widget/PhoneGapHeaderPanel.java

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