Examples of addListener()


Examples of com.vaadin.ui.NativeButton.addListener()

        final CustomComponent cc = new CustomComponent(nb);
        cc.setWidth("500px");
        cc.setHeight("500px");

        nb.addListener(new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                cc.setWidth((cc.getWidth() - 20) + "px");
                cc.setHeight((cc.getHeight() - 20) + "px");
View Full Code Here

Examples of com.vaadin.ui.NativeSelect.addListener()

        NativeSelect pageLength = new NativeSelect("PageLength", Arrays.asList(
                0, 1, 2, 4, 8, 10));
        pageLength.setImmediate(true);
        pageLength.setNullSelectionAllowed(false);
        pageLength.addListener(new Property.ValueChangeListener() {
            @Override
            public void valueChange(ValueChangeEvent event) {
                int pageLength = Integer.valueOf(event.getProperty().getValue()
                        .toString());
                tbl.setPageLength(pageLength);
View Full Code Here

Examples of com.vaadin.ui.OptionGroup.addListener()

                        s2.addItem("Separate by comma (,)");
                        s2.addItem("Separate by colon (:)");
                        s2.addItem("Separate by semicolon (;)");
                        s2.setEnabled(false);

                        s1.addListener(new ValueChangeListener() {

                            @Override
                            public void valueChange(ValueChangeEvent event) {
                                String v = (String) event.getProperty()
                                        .getValue();
View Full Code Here

Examples of com.vaadin.ui.Panel.addListener()

    @Override
    protected void setup() {
        VerticalLayout panelLayout = new VerticalLayout();
        panelLayout.setMargin(true);
        Panel panel = new Panel("Panel's caption", panelLayout);
        panel.addListener(new ClickListener() {

            @Override
            public void click(ClickEvent event) {
                getMainWindow()
                        .showNotification(
View Full Code Here

Examples of com.vaadin.ui.PasswordField.addListener()

        nameField.addListener(changeListener);
        nameField.setImmediate(true);
        nameField.setWidth("100%");

        final PasswordField passwordField = new PasswordField("Password", "");
        passwordField.addListener(changeListener);
        passwordField.setImmediate(true);
        passwordField.setWidth("100%");

        Button loginButton = new Button("Login");
        loginButton.setImmediate(true);
View Full Code Here

Examples of com.vaadin.ui.PopupDateField.addListener()

    @Override
    protected void setup() {
        final PopupDateField dateField = new PopupDateField();
        dateField.setValue(new java.util.Date());
        dateField.setResolution(PopupDateField.RESOLUTION_MONTH);
        dateField.addListener(new PopupDateField.ValueChangeListener() {
            @Override
            public void valueChange(ValueChangeEvent event) {
                getMainWindow().showNotification(
                        "Date now" + event.getProperty());
            }
View Full Code Here

Examples of com.vaadin.ui.PopupView.addListener()

        getLayout().addComponent(pv1);

        final ComboBox cb2 = new ComboBox();
        cb2.setWidth("260px");
        PopupView pv2 = new PopupView("<u>2. focused (click)</u>", cb2);
        pv2.addListener(new PopupVisibilityListener() {

            @Override
            public void popupVisibilityChange(PopupVisibilityEvent event) {
                cb2.focus();
            }
View Full Code Here

Examples of com.vaadin.ui.ProgressIndicator.addListener()

    /** Create new ProgressIndicator with given caption and listener. */
    public ProgressIndicator progressindicator(String caption,
            Property.ValueChangeListener changeListener) {
        ProgressIndicator c = progressindicator(caption);
        c.addListener(changeListener);
        return c;
    }

    /** Create new PopupDateField and add it to current component container. */
    public PopupDateField popupdatefield() {
View Full Code Here

Examples of com.vaadin.ui.RichTextArea.addListener()

    /** Create new RichTextArea with given caption and listener. */
    public RichTextArea richtextarea(String caption,
            Property.ValueChangeListener changeListener) {
        RichTextArea c = richtextarea(caption);
        c.addListener(changeListener);
        return c;
    }

    /** Create new HorizontalLayout and add it to current component container. */
    public HorizontalLayout horizontallayout() {
View Full Code Here

Examples of com.vaadin.ui.Select.addListener()

        theme.addItem("base");
        theme.addItem("liferay");
        theme.setValue("reindeer");
        theme.setNullSelectionAllowed(false);
        theme.setImmediate(true);
        theme.addListener(new ValueChangeListener() {
            @Override
            public void valueChange(ValueChangeEvent event) {
                setTheme(String.valueOf(event.getProperty().getValue()));
            }
        });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.