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
package com.temp.client.foundation.widget;

import com.google.gwt.event.dom.client.ClickHandler;

public class NamedTextButton extends CompositeButton {
    private NamedTextButton() {
        throw new UnsupportedOperationException("Need Externalization Support");
    }

    public NamedTextButton(String name) {
        this();
        setName(name);
    }

    public NamedTextButton(String name, ClickHandler handler) {
        this(name);
        add(handler);
    }

    @Override
    public void setName(String name) {
        super.setName(name);
    }

    public NamedTextButton add(ClickHandler handler) {
        if (handler != null) {
            proxyTo.addClickHandler(handler);
        }
        return this;
    }
}

Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/NamedTextButton.java

Diff revisions: vs.
Revision Author Commited Message
626 GeorgeS picture GeorgeS Wed 11 Apr, 2012 19:39:41 +0000