Package com.volantis.mcs.interaction.event

Examples of com.volantis.mcs.interaction.event.InteractionEventListenerAdapter


                    FILTER);
            final LayoutODOMEditorContext odomEditorContext =
                (LayoutODOMEditorContext) context;
            final LayoutEditorContext layoutEditorContext =
                odomEditorContext.getLayoutEditorContext();
            readOnlyListener = new InteractionEventListenerAdapter() {
                public void readOnlyStateChanged(
                    final ReadOnlyStateChangedEvent event) {
                    readOnly = event.isReadOnly();
                }
            };
View Full Code Here


                    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

                    "The ODOM editor context parameter may not be null."); //$NON-NLS-1$
        }
        this.odomEditorContext = odomEditorContext;
        final LayoutEditorContext layoutEditorContext =
            ((LayoutODOMEditorContext) odomEditorContext).getLayoutEditorContext();
        final InteractionEventListenerAdapter readOnlyListener =
            new InteractionEventListenerAdapter() {
                public void readOnlyStateChanged(
                    final ReadOnlyStateChangedEvent event) {
                    if (event.isOriginator ()) {
                        mainTabDetails.updateEnablement();
                        rowTabDetails.updateEnablement();
View Full Code Here

        addReadWriteListener();

        readWriteStateChanged();
        context.getInteractionModel()
                .addListener(new InteractionEventListenerAdapter() {
                    public void readOnlyStateChanged(
                            ReadOnlyStateChangedEvent event) {
                        readWriteStateChanged();
                    }
                }, false);
View Full Code Here

                }, false);
    }

    private void addReadWriteListener() {
        InteractionEventListener listener =
                new InteractionEventListenerAdapter() {
                    public void readOnlyStateChanged(
                            final ReadOnlyStateChangedEvent event) {
                        boolean enabled = !event.isReadOnly();
                        Iterator it = enableableControls.iterator();
                        while (it.hasNext()) {
View Full Code Here

            SelectionPolicyType policyType =
                    (SelectionPolicyType) descriptor.getPolicyType();
            context.setCategoryValues(policyType.getKeywords());
        }

        categorisationScheme.addListener(new InteractionEventListenerAdapter() {
            protected void interactionEvent(InteractionEvent event) {
                String selectedPolicy =
                        (String) categorisationScheme.getModelObject();
                if (selectedPolicy != null) {
                    combo.setSelection(new StructuredSelection(selectedPolicy));
View Full Code Here

        // Refresh the viewer when the model changes - this is deep because the
        // labels for the assets can be changed by any change within the asset.
        // Also refreshes the viewer if the read-only state changes, as this
        // will require changing of the lock icon in collaborative mode.
        context.getInteractionModel().addListener(
                new InteractionEventListenerAdapter() {
                    protected void interactionEvent(InteractionEvent event) {
                        if (event.isOriginator ()) {
                            viewer.refresh();
                        }
                    }
View Full Code Here

            context.loadResource(file);
            setSite(iEditorSite);
            setInput(iEditorInput);
            setPartName(file.getName());

            InteractionEventListener listener = new InteractionEventListenerAdapter() {
                public void readOnlyStateChanged(ReadOnlyStateChangedEvent event) {
                }

                // Javadoc inherited
                protected void interactionEvent(InteractionEvent event) {
View Full Code Here

    private ListProxy listProxy;

    public InteractionSwingListModel(final ListProxy listProxy) {
        this.listProxy = listProxy;

        InteractionEventListener listener = new InteractionEventListenerAdapter() {

            protected void interactionEvent(InteractionEvent event) {
                fireContentsChanged(
                        InteractionSwingListModel.this, 0,
                        listProxy.size() - 1);
View Full Code Here

            expectedSources.add(lines.getItemProxy(i));
        }

        // Set up a listener that removes sources from the expected list as
        // events arrive.
        wilmaProxy.addListener(new InteractionEventListenerAdapter() {
            public void readOnlyStateChanged(ReadOnlyStateChangedEvent event) {
                assertFalse("New read-only value should be false",
                        event.isReadOnly());
                assertTrue("Source of state change should be in expected list",
                        expectedSources.contains(event.getProxy()));
View Full Code Here

TOP

Related Classes of com.volantis.mcs.interaction.event.InteractionEventListenerAdapter

Copyright © 2018 www.massapicom. 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.