Examples of addListener()


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

        final VerticalSplitPanel vsplit = new VerticalSplitPanel();
        vsplit.setSizeFull();
        vsplit.setImmediate(true);
        vsplit.setSplitPosition(10, Sizeable.UNITS_PERCENTAGE, vsplitReversed);
        vsplit.addListener(new SplitterClickListener() {
            @Override
            public void splitterClick(SplitterClickEvent event) {
                getMainWindow().showNotification("Vertical Splitter Clicked");
            }
        });
View Full Code Here

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

                                event);
                    }
                });
        layout.setMargin(true);
        Window centered = new Window("A window with a click listener", layout);
        centered.addListener(new ClickListener() {

            @Override
            public void click(ClickEvent event) {
                WindowClickEvents.this.click("Sub window", event);
            }
View Full Code Here

Examples of com.volantis.cache.impl.notification.RemovalListenerList.addListener()

        // =====================================================================
        //   Test Expectations
        // =====================================================================
        RemovalListenerList list = new RemovalListenerList();
        list.addListener(listenerMock1);
        list.addListener(listenerMock2);

        list.dispatchRemovedEntryEvent(entryMock);
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.controls.ColorSelector.addListener()

        // Add the modify listener to this control.
        TextModifyListener listener =
                new TextModifyListener(controlDetails.attributesComposite,
                        controlDetails.attribute);

        colourSelector.addListener(SWT.Modify, listener);


        // Store the attribute name in the control's data map (test team request).
        colourSelector.setData(ATTRIBUTE_NAME_KEY, controlDetails.attribute);
View Full Code Here

Examples of com.volantis.mcs.interaction.BeanProxy.addListener()

                    setEmbeddedText("");
                    setURLText("");
                    setEnabled(false);
                } else {
                    BeanProxy selectedVariant = (BeanProxy) event.getSelection();
                    selectedVariant.addListener(readOnlyListener, false);
                    setDisplayContent(selectedVariant);
                    setEnabled(!selectedVariant.isReadOnly());
                }
            }
        });
View Full Code Here

Examples of com.volantis.mcs.interaction.ParentProxy.addListener()

            newInput.addDiagnosticListener(modelChangeListener);
                       
            final ParentProxy parent = newInput.getParentProxy();
            if (parent instanceof ListProxy && !removalListenerAdded) {
                // allows to refresh Style Rules window when a Variant is removed from list.               
                parent.addListener(variantRemovalListener, false);
                // Need to know if listener was added because only 1 instance of
                // given listener can be added to ListProxy
                removalListenerAdded  = true;
            }
           
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.addListener()

            final Proxy proxy = policyFileAccessor.wrapPolicy(policy,
                    getModelDescriptor(), getProject());

            // Revalidate the model on all changes
            proxy.validate();
            proxy.addListener(
                new InteractionEventListenerAdapter() {
                    protected void interactionEvent(InteractionEvent event) {
                        if (event.isOriginator ()) {
                            proxy.validate();
                        }
View Full Code Here

Examples of com.volantis.mcs.interaction.impl.BaseProxyImpl.addListener()

        // =====================================================================

        final BaseProxyImpl proxy = (BaseProxyImpl) createProxy(
                parentProxyMock);

        proxy.addListener(listenerMock, false);

        // =====================================================================
        //   Set Test Object Specific Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.mcs.interaction.impl.ListProxyImpl.addListener()

        // =====================================================================
        //   Create Test Objects
        // =====================================================================

        final ListProxyImpl listProxy = (ListProxyImpl) createProxy(parentProxyMock);
        listProxy.addListener(listenerMock, false);

        // =====================================================================
        //   Set Test Object Specific Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.mcs.interaction.impl.OpaqueProxyImpl.addListener()

        // =====================================================================

        final OpaqueProxyImpl simpleProxy = (OpaqueProxyImpl)
                createProxy(parentProxyMock);

        simpleProxy.addListener(listenerMock, false);

        // =====================================================================
        //   Set Test Object Specific Expectations
        // =====================================================================
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.