Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.Frame


//        return viewer;
//    }

    public static void main(String[] args) {

        IFrame frame = new Frame();
        DataSourceProducerProvider.pushNewProducer(TangoRefreshingManager.class);

        IImageViewer image = createImageViewer();

        final JPanel f = initPanel(image);
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("NumberField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
View Full Code Here


    /**
     * Main class, so you can have an example. You can put your own attribute names in parameter
     */
    public static void main(String[] args) {

        IFrame frame = new Frame();
        String tmpDeviceName = null;
        String tmpAttributeName = null;
        if (args != null && args.length > 1) {
            tmpDeviceName = args[0];
            tmpAttributeName = args[1];
        }
        else {
            tmpDeviceName = "tango/tangotest/titan";
            tmpAttributeName = "ampli";
        }

        NumberScalarWheelSwitch f = new NumberScalarWheelSwitch();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setEnabled(true);
        f.setEditable(true);
        f.setConfirmation(true);
        f.initDAO();

        frame.setContentPane(f);
        frame.setSize(640, 480);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
View Full Code Here

        return panel;
    }

    public static void main(String[] args) {

        IFrame frame = new Frame();
        DataSourceProducerProvider.pushNewProducer(TangoRefreshingManager.class);

        final JPanel f = initPanel();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("TextField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
View Full Code Here

    /**
     * Main class, so you can have an example. You can put your own attribute names in parameter
     */
    public static void main(final String[] args) {

        final IFrame frame = new Frame();// CometeWidgetFactory.createFrame();
        String tmpDeviceName = null;
        String tmpAttributeName = null;
        if (args != null && args.length > 1) {
            tmpDeviceName = args[0];
            tmpAttributeName = args[1];
        }
        else {
            tmpDeviceName = "test/gs/1";
            tmpAttributeName = "double_scalar_rw";
        }

        final NumberScalarInput f = new NumberScalarInput();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());

        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setConfirmation(false);
        // f.setStateEnabled(false);
        // f.setTextButton("Mon Texte");
        // f.setBackgroundButton(Color.BLUE);
        // f.setBackgroundTextField(Color.RED);

        f.addWidgetListener(new IWidgetListener() {

            @Override
            public void booleanDataChanged(final boolean value) {
                System.out.println("booleanDataChanged " + value);
            }

            @Override
            public void booleanValueChanged(final boolean value) {
                System.out.println("booleanValueChanged " + value);
            }

            @Override
            public void doubleDataChanged(final double value) {
                System.out.println("doubleDataChanged " + value);
            }

            @Override
            public void doubleValueChanged(final double value) {
                System.out.println("doubleValueChanged " + value);
            }

            @Override
            public void stringDataChanged(final String value) {
                System.out.println("stringDataChanged " + value);
            }

            @Override
            public void stringValueChanged(final String value) {
                System.out.println("stringValueChanged " + value);
            }
        });
        f.initDAO();

        frame.setContentPane(f);
        frame.setSize(640, 480);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
        //
        // new Thread() {
        // @Override
        // public void run() {
        // try {
View Full Code Here

    /**
     * Main class, so you can have an example. You can put your own attribute names in parameter
     */
    public static void main(String[] args) {

        IFrame frame = new Frame();

        String tmpDeviceName = null;
        String tmpAttributeName = null;
        if (args != null && args.length > 1) {
            tmpDeviceName = args[0];
            tmpAttributeName = args[1];
        }
        else {
            tmpDeviceName = "tango/tangotest/titan";
            tmpAttributeName = "boolean_scalar";
        }

        BooleanLed widget = new BooleanLed();
        widget.setSize(300, 300);
        widget.setDeviceName(tmpDeviceName);
        widget.setEntityName(tmpAttributeName);
        widget.setEnabled(true);
        widget.setStateEnabled(false);
        widget.setConfirmation(true);
        widget.initDAO();

        frame.setContentPane(widget);
        frame.setSize(640, 480);
        frame.setTitle(widget.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
View Full Code Here

    // return viewer;
    // }

    public static void main(String[] args) {

        IFrame frame = new Frame();
        DataSourceProducerProvider.pushNewProducer(TangoRefreshingManager.class);

        IChartViewer chart = createChartViewer();

        final JPanel f = initPanel(chart);
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("NumberField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
View Full Code Here

        return panel;
    }

    public static void main(String[] args) {

        IFrame frame = new Frame();
        DataSourceProducerProvider.pushNewProducer(TangoRefreshingManager.class);

        final JPanel f = initPanel();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("NumberField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
View Full Code Here

import fr.soleil.comete.tango.data.service.TangoKeyTool;

public class CommandTest {

    private static JPanel initPanel() {
        IFrame frame = new Frame();

        // ajout de frame gênantes pour tester que les popups se rattachent bien au bon parent
        frame.setSize(300, 300);
        frame.setPreferredSize(300, 300);
        frame.setEnabled(true);
        frame.setVisible(true);

        final JPanel panel = new JPanel(new BorderLayout());
        StringScalarBox stringBox = new StringScalarBox();

        TangoKey key = new TangoKey();
View Full Code Here

        return panel;
    }

    public static void main(String[] args) {
        IFrame ndFrame = new Frame();

        // ajout de frame gênantes pour tester que les popups se rattachent bien au bon parent
        ndFrame.setSize(300, 300);
        ndFrame.setPreferredSize(300, 300);
        ndFrame.setEnabled(true);
        ndFrame.setVisible(true);

        IFrame frame = new Frame();

        final JPanel f = initPanel();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("Command Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
        f.grabFocus();

    }
View Full Code Here

        return panel;
    }

    public static void main(String[] args) {
        IFrame frame = new Frame();

        final JPanel f = initPanel();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("TextField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swing.Frame

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.