Examples of addListener()


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

            }
        });

        tf.addListener(focusListener);
        tf.addListener(blurListener);
        df.addListener(focusListener);
        df.addListener(blurListener);
        cb.addListener(focusListener);
        cb.addListener(blurListener);
        btn.addListener(focusListener);
        btn.addListener(blurListener);
View Full Code Here

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

    @Override
    protected void setup() {
        Embedded e = new Embedded("Embedded caption", new ThemeResource(
                "../runo/icons/64/ok.png"));
        e.addListener(new ClickListener() {

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

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

        form.setItemDataSource(item);

        form.setCaption("Edit Task");
        form.setVisibleItemProperties(VISIBLE_COLUMNS);
        form.setImmediate(true);
        form.addListener(new Property.ValueChangeListener() {
            public void valueChange(ValueChangeEvent event) {
                @SuppressWarnings("unchecked")
                BeanItem<Task> item = (BeanItem<Task>) form.getItemDataSource();
                taskService.updateTask(item.getBean());
            }
View Full Code Here

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

        nestedLayout.addComponent(nestedLayout2);

        layout.addComponent(nestedLayout);

        // Listen for layout click events
        layout.addListener(new LayoutClickListener() {
            @Override
            public void layoutClick(LayoutClickEvent event) {

                // Get the deepest nested component which was clicked
                Component clickedComponent = event.getClickedComponent();
View Full Code Here

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

        final HorizontalSplitPanel hsplit = new HorizontalSplitPanel();
        hsplit.setSizeFull();
        hsplit.setImmediate(true);
        hsplit.setSplitPosition(100, Sizeable.UNITS_PIXELS, hsplitReversed);
        hsplit.addListener(new HorizontalSplitPanel.SplitterClickListener() {
            @Override
            public void splitterClick(SplitterClickEvent event) {
                getMainWindow().showNotification("Horizontal Splitter Clicked");
            }
        });
View Full Code Here

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

        getLayout().addComponent(dateField3);

        final InlineDateField dateField2 = new InlineDateField();
        dateField2.setValue(new java.util.Date());
        dateField2.setResolution(PopupDateField.RESOLUTION_MONTH);
        dateField2.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.Label.addListener()

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

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

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

        lazyCheckBox.setValue(Boolean.FALSE);
        lazyCheckBox.setImmediate(true);
        addComponent(lazyCheckBox);

        addComponent(log);
        mainWindow.addListener(new Page.BrowserWindowResizeListener() {
            @Override
            public void browserWindowResized(BrowserWindowResizeEvent event) {
                log.log("Resize event: " + event.getWidth() + " x "
                        + event.getHeight());
            }
View Full Code Here

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

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

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

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

            super();

            LoginForm loginForm = new LoginForm();
            loginForm.setSizeUndefined();

            loginForm.addListener(new LoginListener() {

                private static final long serialVersionUID = 1L;

                @Override
                public void onLogin(LoginEvent event) {
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.