Subversion Repository Public Repository

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
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;
        }
    }
}

Commits for litesoft/trunk/GWT_Sandbox/gwtUITrimmed/src/com/gwtmobile/ui/kitchensink/client/widget/PhoneGapHeaderPanel.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

658 GeorgeS picture GeorgeS Tue 01 May, 2012 04:06:58 +0000