Package fr.soleil.comete.definition.widget

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


    /**
     * 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 tmpCommandName = null;
        if (args != null && args.length > 1) {
            tmpDeviceName = args[0];
            tmpCommandName = args[1];
        }
        else {
            tmpDeviceName = "tango/tangotest/titan";
            tmpCommandName = "DevShort";
        }

        CommandButton f = new CommandButton();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpCommandName);
        f.setUserEnabled(false);
        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


    /**
     * 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 = "string_scalar";
        }

        StringScalarFileBrowserButton f = new StringScalarFileBrowserButton();
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        f.setToolTipText(tmpDeviceName + "/" + tmpAttributeName);
        f.setEntityName(tmpAttributeName);
        f.setEnabled(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

    /**
     * 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;
        if (args != null && args.length > 0) {
            tmpDeviceName = args[0];
        }
        else {
            tmpDeviceName = "tango/tangotest/titan";
        }

        CommandDeviceCombo f = new CommandDeviceCombo();
        f.setDeviceName(tmpDeviceName);
        f.setEnabled(true);
        f.setConfirmation(false);
        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

    /**
     * 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 = "string_image_ro";
        }

        StringImageTable f = new StringImageTable();
        IStringTableListener listener = new IStringTableListener() {

            @Override
            public void selectedColumnChanged(int col) {
                System.out.println("selectedColumnChanged=" + col);
            }

            @Override
            public void selectedRowChanged(int col) {
                System.out.println("selectedRowChanged=" + col);

            }

            @Override
            public void selectedPointChanged(double[] point) {
                System.out.println("selectedPointChanged=" + point);

            }

            @Override
            public void valueChanged(AbstractMatrix<String> matrix) {
                System.out.println("valueChanged=" + matrix);
            }

            @Override
            public void selectedValueChanged(String value) {
                // TODO Auto-generated method stub

            }
        };

        f.addStringTableListener(listener);
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        f.setToolTipText(tmpDeviceName + "/" + tmpAttributeName);
        f.setEntityName(tmpAttributeName);
        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

    /**
     * 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 = "tango/tangotest/spjz_01.02";
            // tmpAttributeName = "string_scalar_ro";
            //tmpAttributeName = "string_scalar";
            // tmpAttributeName = "State";
           
            tmpDeviceName = "test/gs/1";
            tmpAttributeName = "string_scalar_rw";
        }

        final StringScalarTextField f = new StringScalarTextField();
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        /*f.setUserEnabled(true);
        f.setConfirmation(false);
        f.setStateEnabled(true);*/
        // f.setEditable(true);
        f.initDAO();

        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);
            }
        });

        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 tmpCommandName = null;
        if (args != null && args.length > 1) {
            tmpDeviceName = args[0];
            tmpCommandName = args[1];
        }
        else {
            tmpDeviceName = "tango/tangotest/titan";
            tmpCommandName = "DevShort";
        }

        StringScalarInput f = new StringScalarInput();
        f.setDeviceName(tmpDeviceName);
        f.setToolTipText(tmpDeviceName + "/" + tmpCommandName);
        f.setEntityName(tmpCommandName);
        f.setEnabled(true);
        f.setEditable(true);
        f.setConfirmation(true);
        f.initDAO();

        System.out.println(f.source);

        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

    /**
     * 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;

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

        StateButton f = new StateButton();
        f.setDeviceName(tmpDeviceName);
        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

    /**
     * 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 = "string_scalar";
        }

        StringScalarPeriodicTable f = new StringScalarPeriodicTable();
        f.setSize(1300, 1000);
        f.setPreferredSize(f.getSize());
        f.setMode(PeriodicTable.SYMBOL_MODE);
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setEnabled(true);
        f.initDAO();

        frame.setContentPane(f);
        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 = "tango/tangotest/titan";
            tmpAttributeName = "double_image_ro";

        }

        final NumberImageViewerCometeV2 f = new NumberImageViewerCometeV2();
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setUserEnabled(true);
        f.setAskConfirmation(true);
        f.setRefreshingPeriod(5000);

        f.setCleanOnDataSetting(false); // to keep roi when data change
        f.addRoi("MyRoi1,RecTANGLE, 10, 10, 10, 80, 50,BLACK");
        f.addRoi("MyRoi2,RECTANGLE, 10, 100, 100, 90, 60,GREEN");

        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 = "double_scalar_w";
        }

        NumberScalarCombo f = new NumberScalarCombo();
        f.setNumberValueList(new Number[] { 1.1, 2.2, 3.3, 4.4, 5.5 });
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setEnabled(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

TOP

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

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.