summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/NativeButton.java
blob: 369b40b93ad89e5a97cab6026c51236e63d2e686 (plain)
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
/*
@VaadinApache2LicenseForJavaFiles@
 */
package com.vaadin.ui;

import com.vaadin.data.Property;
import com.vaadin.terminal.gwt.client.ui.VNativeButton;

@SuppressWarnings("serial")
@ClientWidget(VNativeButton.class)
public class NativeButton extends Button {

    public NativeButton() {
        super();
    }

    public NativeButton(String caption) {
        super(caption);
    }

    public NativeButton(String caption, ClickListener listener) {
        super(caption, listener);
    }

    public NativeButton(String caption, Object target, String methodName) {
        super(caption, target, methodName);
    }

    /**
     * Creates a new switch button with initial value.
     * 
     * @param state
     *            the Initial state of the switch-button.
     * @param initialState
     * @deprecated use the {@link CheckBox} component instead
     */
    @Deprecated
    public NativeButton(String caption, boolean initialState) {
        super(caption, initialState);
    }

    /**
     * Creates a new switch button that is connected to a boolean property.
     * 
     * @param state
     *            the Initial state of the switch-button.
     * @param dataSource
     * @deprecated use the {@link CheckBox} component instead
     */
    @Deprecated
    public NativeButton(String caption, Property dataSource) {
        super(caption, dataSource);
    }

}