Package fr.soleil.comete.bean.tangotree.datasource

Examples of fr.soleil.comete.bean.tangotree.datasource.ISourceDevice


    private static void fillRecordedDevicesTreeMap() {

        List<String> devicesList = new LinkedList<String>();
        if (tangoSourceList == null) {
            try {
                ISourceDevice tangoSource = new DatabaseTangoSourceDevice(true, true);
                if (tangoSource != null) {
                    tangoSourceList = tangoSource.getSourceList();
                }

            } catch (SourceDeviceException e) {
                TechnicalDataMessageManager.notifyNewErrorDetected(e);
            }
View Full Code Here


    private void fillMonitoredAttributesTreeMap() {
        List<String> attributesList = new LinkedList<String>();

        if ((archivingSourceList == null) && (archivingDevicePath != null) && !archivingDevicePath.isEmpty()) {
            try {
                ISourceDevice archivingSource = new GenericSourceDevice(archivingDevicePath + "/GetCurrentArchivedAtt");
                if (archivingSource != null) {
                    archivingSourceList = archivingSource.getSourceList();
                }
            } catch (SourceDeviceException e) {
                TechnicalDataMessageManager.notifyNewErrorDetected(e);
            }
        }
View Full Code Here

            gridPanel.setLayout(new GridLayout(1, 1));
            CometeWidgetFactory.setCurrentPackage(CometeWidgetFactory.CometePackage.SWING);

            Panel selectOk1pan = new Panel();
            selectOk1pan.setLayout(new BorderLayout());
            ISourceDevice archivingSource = new ArchivingSourceDevice();
            archivingSelector = new SwingDeviceSelector(archivingSource, true, img2, img, img1, false);
            archivingSelector.setLeafImage(img1);
            archivingSelector.setNodeImage(img);
            archivingSelector.setRootImage(img2);

            selectOk1pan.add(archivingSelector.getSelectorComponent(), BorderLayout.CENTER);
            JButton okButton1 = new JButton("ok");
            okButton1.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(final ActionEvent e) {
                    archivingSelector.setNodeImage(img2);
                    getSelectedDevices(archivingSelector);
            

                }
            });
            selectOk1pan.add(okButton1, BorderLayout.SOUTH);
            gridPanel.add(selectOk1pan);

            Panel selectOk2pan = new Panel();
            selectOk2pan.setLayout(new BorderLayout());
            ISourceDevice genericSource = new GenericSourceDevice("archiving/hdb-oracle/hdbextractor.1/GetAttNameAll");
            genericSelector = new SwingDeviceSelector(genericSource, true, img, img, null, true);
            selectOk2pan.add(genericSelector.getSelectorComponent(), BorderLayout.CENTER);
            JButton okButton2 = new JButton("ok");
            okButton2.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(final ActionEvent e) {
                    getSelectedDevices(genericSelector);

                }
            });
            selectOk2pan.add(okButton2, BorderLayout.SOUTH);
            gridPanel.add(selectOk2pan);

            Panel selectOk3pan = new Panel();
            selectOk3pan.setLayout(new BorderLayout());
            ISourceDevice tangoSource = new DatabaseTangoSourceDevice(true, true);
            tangoSelector = new SwingDeviceSelector(tangoSource, false, true);
            selectOk3pan.add(tangoSelector.getSelectorComponent(), BorderLayout.CENTER);
            JButton okButton3 = new JButton("ok");
            okButton3.addActionListener(new ActionListener() {
View Full Code Here

        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        URL file = frame.getClass().getResource("/com/famfamfam/silk/book.png");
        CometeImage img = new CometeImage(file.toString());

        ISourceDevice archivingSource = new ArchivingSourceDevice();
        final SwingDeviceSelector swingSelector = new SwingDeviceSelector(archivingSource, false, null, img, null,
                false);
        swingSelector.setMultiSelection(false);
        IComponent selectorComponent = swingSelector.getSelectorComponent();
View Full Code Here

        gridPanel.setLayout(new GridLayout(1, 1));
        CometeWidgetFactory.setCurrentPackage(CometeWidgetFactory.CometePackage.SWING);

        Panel selectOk1pan = new Panel();
        selectOk1pan.setLayout(new BorderLayout());
        ISourceDevice archivingSource = new ArchivingSourceDevice();
        archivingSelector = new SwingDeviceSelector(archivingSource, true, null, img, null, false);
        selectOk1pan.add(archivingSelector.getSelectorComponent(), BorderLayout.CENTER);
        JButton okButton1 = new JButton("ok");
        okButton1.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(final ActionEvent e) {
                getSelectedDevices(archivingSelector);

            }
        });
        selectOk1pan.add(okButton1, BorderLayout.SOUTH);
        gridPanel.add(selectOk1pan);

        Panel selectOk2pan = new Panel();
        selectOk2pan.setLayout(new BorderLayout());
        ISourceDevice genericSource = new GenericSourceDevice("archiving/hdb/hdbextractor.1/GetCurrentArchivedAtt");
        genericSelector = new SwingDeviceSelector(genericSource, true, null, img, null, true);
        selectOk2pan.add(genericSelector.getSelectorComponent(), BorderLayout.CENTER);
        JButton okButton2 = new JButton("ok");
        okButton2.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                getSelectedDevices(genericSelector);

            }
        });
        selectOk2pan.add(okButton2, BorderLayout.SOUTH);
        gridPanel.add(selectOk2pan);

        Panel selectOk3pan = new Panel();
        selectOk3pan.setLayout(new BorderLayout());
        ISourceDevice tangoSource = new DatabaseTangoSourceDevice(true, true);
        tangoSelector = new SwingDeviceSelector(tangoSource, false, true);
        selectOk3pan.add(tangoSelector.getSelectorComponent(), BorderLayout.CENTER);
        JButton okButton3 = new JButton("ok");
        okButton3.addActionListener(new ActionListener() {
View Full Code Here

        layout.marginWidth = 0;
        layout.spacing = 0;
        mainPanel.setLayout(layout);
        mainPanel.setSize(1000, 1000);

        ISourceDevice archivingSource = new ArchivingSourceDevice();
        new SwtDeviceSelector(mainPanel, archivingSource);

        // shell.pack();
        shell.open();
View Full Code Here

TOP

Related Classes of fr.soleil.comete.bean.tangotree.datasource.ISourceDevice

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.