Package fr.soleil.comete.definition.widget

Examples of fr.soleil.comete.definition.widget.IComponent


    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (target instanceof IComponent) {
            IComponent comp = (IComponent) target;
            comp.setEnabled(enabled);
        }
    }
View Full Code Here


    public static void registerBadConnection(ITarget widget, IKey key,
            AbstractCometeBox<? extends ITarget> box, boolean withPlugins) {
        boolean enabled = true;
        if (widget instanceof IComponent) {
            IComponent iComponent = (IComponent) widget;
            enabled = iComponent.isEnabled();
        }
        ConnectionParameters params = new ConnectionParameters(box, widget, key, enabled,
                withPlugins);
        synchronized (badConnectionParameters) {
            badConnectionParameters.add(params);
View Full Code Here

    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (target instanceof IComponent) {
            IComponent comp = (IComponent) target;
            comp.setEnabled(enabled);
        }
        if (enabled) {
            TargetUtils.updateTargetAvailabilities(lastOrigin, target);
        }
    }
View Full Code Here

        boolean echo = needEchoSuppressor(source);

        if (confirmation) {
            if (!echo || (echo && !sema)) {
                int confResult = JOptionPane.YES_OPTION;
                IComponent parent = (source instanceof IComponent) ? (IComponent) source : null;
                confResult = executeConfirmation(parent, data, confirmationMessage,
                        confirmationTitle);
                result = (confResult == JOptionPane.YES_OPTION);
            }
        }
View Full Code Here

        boolean echo = needEchoSuppressor(source);

        if (confirmation) {
            if (!echo || (echo && !sema)) {
                int confResult = JOptionPane.YES_OPTION;
                IComponent parent = (source instanceof IComponent) ? (IComponent) source : null;
                confResult = executeConfirmation(parent, data, confirmationMessage);
                result = (confResult == JOptionPane.YES_OPTION);
            }
        }
        sema = false;
View Full Code Here

    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (target instanceof IComponent) {
            IComponent comp = (IComponent) target;
            comp.setEnabled(enabled);
        }
    }
View Full Code Here

    public static void registerBadConnection(ITarget widget, IKey key,
            AbstractCometeBox<? extends ITarget> box) {
        boolean enabled = true;
        if (widget instanceof IComponent) {
            IComponent iComponent = (IComponent) widget;
            enabled = iComponent.isEnabled();
        }
        ConnectionParameters params = new ConnectionParameters(box, widget, key, enabled);
        synchronized (badConnectionParameters) {
            badConnectionParameters.add(params);
        }
View Full Code Here

                        ITarget widget = params.getWidget();
                        IKey key = params.getKey();

                        if (box.connectWidget(widget, key, false)) {
                            if (widget instanceof IComponent) {
                                IComponent iComponent = (IComponent) widget;
                                iComponent.setEnabled(params.isEnabled());
                            }

                            iterator.remove();
                        }
                    }
View Full Code Here

        boolean echo = needEchoSuppressor(source);

        if (confirmation) {
            if (!echo || (echo && !sema)) {
                int confResult = JOptionPane.YES_OPTION;
                IComponent parent = (source instanceof IComponent) ? (IComponent) source : null;
                confResult = executeConfirmation(parent, data, confirmationMessage, confirmationTitle);
                result = (confResult == JOptionPane.YES_OPTION);
            }
        }
        sema = false;
View Full Code Here

    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (target instanceof IComponent) {
            IComponent comp = (IComponent) target;
            comp.setEnabled(enabled);
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.definition.widget.IComponent

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.