Package fr.esrf.tangoatk.core

Examples of fr.esrf.tangoatk.core.CommandList


    public void stopBean() {
        try
        {
            m_KOCommand.clear();
            CommandList tmpCommandList = getModel();
            ICommand tmpCommand = null;
            if(tmpCommandList != null)
            {
                Enumeration<?> enumCommand = tmpCommandList.elements();
                while (enumCommand.hasMoreElements()) {
                    tmpCommand = (ICommand) enumCommand.nextElement();
                    tmpCommand.removeErrorListener(this);
                }
                tmpCommandList.clear();
                tmpCommandList = null;
            }
            repaint();
        }
        catch (Exception e){}
View Full Code Here


    public void commandListIsConnected(Vector<ICommand> acommandList) {

        //Check if it s the good attribute list
        Enumeration<ICommand> tmpEnumeration = acommandList.elements();
        CommandList tmpCommandList = new CommandList();
        ICommand tmpICommand = null;
        while (tmpEnumeration.hasMoreElements())
        {
            tmpICommand = tmpEnumeration.nextElement();
            for (String element : commandNameList) {
                if(tmpICommand.getName().equalsIgnoreCase(element.trim()))
                {
                    tmpCommandList.add(tmpICommand);
                    BindingTango.addCommandListener(tmpICommand.getName(), this);
                    tmpICommand.addErrorListener(this);
                    break;
                }
            }
        }


        //System.out.println("tmpCommandList.size() = "+ tmpCommandList.size());
        //System.out.println("commandNameList.length = "+ commandNameList.length);
        //System.out.println("m_KOCommand.size = "+ m_KOCommand.size());

        if(tmpCommandList.size() + m_KOCommand.size() == commandNameList.length)
        {
            BindingTango.removeConnectionListener(this);
            super.setModel(tmpCommandList);
            repaint();
        }
View Full Code Here

    @Override
    public void stopBean() {
        try {
            m_KOCommand.clear();

            CommandList tmpCommandList = getCmdListModel();
            ICommand tmpCommand = null;
            if (tmpCommandList != null) {
                final Enumeration<?> enumCommand = tmpCommandList.elements();
                while (enumCommand.hasMoreElements()) {
                    tmpCommand = (ICommand) enumCommand.nextElement();
                    tmpCommand.removeErrorListener(this);
                }
                tmpCommandList.clear();
                tmpCommandList = null;
            }
            repaint();
        } catch (final Exception e) {
        }
View Full Code Here

    public void commandListIsConnected(final Vector<ICommand> acommandList) {

        // System.out.println("commandIsConnected="+ command.getName());
        // Check if it s the good attribute list
        final Enumeration<ICommand> tmpEnumeration = acommandList.elements();
        final CommandList tmpCommandList = new CommandList();
        ICommand tmpICommand = null;
        while (tmpEnumeration.hasMoreElements()) {
            tmpICommand = tmpEnumeration.nextElement();
            for (final String element : commandNameList) {
                if (tmpICommand.getName().equalsIgnoreCase(element.trim())) {
                    tmpCommandList.add(tmpICommand);
                    BindingTango.addCommandListener(tmpICommand.getName(), this);
                    tmpICommand.addErrorListener(this);
                    break;
                }
            }
        }

        // System.out.println("tmpCommandList.size() = "+
        // tmpCommandList.size());
        // System.out.println("commandNameList.length = "+
        // commandNameList.length);
        // System.out.println("m_KOCommand.size = "+ m_KOCommand.size());

        if (tmpCommandList.size() + m_KOCommand.size() == commandNameList.length) {
            BindingTango.removeConnectionListener(this);
            super.setModel(tmpCommandList);
            repaint();
        }
    }
View Full Code Here

TOP

Related Classes of fr.esrf.tangoatk.core.CommandList

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.