Examples of addListener()


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

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

    /** Move the build 'focus' of this builder to window's content. */
    public void with(Window w) {
View Full Code Here

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

        table.setHeight("100%");

        final TabSheet tabsheet = new TabSheet();
        tabsheet.addComponent(tabButton);
        tabsheet.addComponent(table);
        tabsheet.addListener(new TabSheet.SelectedTabChangeListener() {
            @Override
            public void selectedTabChange(TabSheet.SelectedTabChangeEvent event) {
                if (tabsheet.getSelectedTab() == tabButton) {
                    tabsheet.setSizeUndefined();
                    layout.setSizeUndefined();
View Full Code Here

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

        layout.addComponent(menu);
       
        table.setSelectable(true);
        table.setImmediate(true);
        table.setVisibleColumns(VISIBLE_COLUMNS);
        table.addListener(new Property.ValueChangeListener() {
            public void valueChange(ValueChangeEvent event) {
                Object selectedId = table.getValue();
                @SuppressWarnings("unchecked")
                BeanItem<Task> item = (BeanItem<Task>) table.getItem(selectedId);
                form.setItemDataSource(item);
View Full Code Here

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

        to.setTextChangeEventMode(TextChangeEventMode.TIMEOUT);
        to.setTextChangeTimeout(3000);
        getLayout().addComponent(to);

        TextArea ta = new TextArea("Default text area");
        ta.addListener(inputEventListener);
        getLayout().addComponent(ta);

        VaadinDeveloperNameField vd = new VaadinDeveloperNameField();
        vd.addListener(inputEventListener);
        getLayout().addComponent(vd);
View Full Code Here

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

                new Double(42.0));

        // A text field that changes its caption
        final TextField tf1 = new TextField(
                "Changing this field modifies only the textfield", property1);
        tf1.addListener(new Property.ValueChangeListener() {

            @Override
            public void valueChange(ValueChangeEvent event) {
                // This value change event is called twice if the new
                // input value is an integer. The second time is during
View Full Code Here

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

        t.addItem("Foo");
        t.addItem("Bar");

        final VerticalLayout events = new VerticalLayout();

        t.addListener(new ItemClickEvent.ItemClickListener() {
            @Override
            public void itemClick(ItemClickEvent event) {
                events.addComponent(new Label(new Label("Click:"
                        + (event.isDoubleClick() ? "double" : "single")
                        + " button:" + event.getButtonName() + " propertyId:"
View Full Code Here

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

        }

        tt.setSelectable(true);
        tt.setImmediate(true);

        tt.addListener((ExpandListener) this);
        tt.addListener((CollapseListener) this);
        tt.addListener(new ValueChangeListener() {

            @Override
            public void valueChange(ValueChangeEvent event) {
View Full Code Here

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

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

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

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

        u.setButtonCaption(null);

        addComponent(u);

        u.addListener(new Upload.FinishedListener() {
            @Override
            public void uploadFinished(FinishedEvent event) {
                String filename = event.getFilename();
                long length = event.getLength();
                getMainWindow().showNotification(
View Full Code Here

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

    }

    @Override
    protected void setup() {
        VerticalLayout layout = new VerticalLayout();
        layout.addListener(new LayoutClickListener() {
            @Override
            public void layoutClick(LayoutClickEvent event) {
                WindowClickEvents.this.click("Sub window layout", 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.