Examples of IFrame


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

    //
    // return table;
    // }

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

        AbstractTable<?> table = createNumberMatrix();

        final JPanel f = initMatrixPanel(table);
        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

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

        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(MultiFieldTest.class.getSimpleName());
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
View Full Code Here

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

        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("Label Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
View Full Code Here

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

        NumberScalarInput f = new NumberScalarInput();
        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

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

        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

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

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

        final JLabel label = new JLabel("click here to loose focus");
        label.addMouseListener(new MouseAdapter() {
            @Override
            public void mousePressed(MouseEvent e) {
                label.grabFocus();
            }
        });

        JPanel panel = new JPanel(new BorderLayout());
        panel.add(f, BorderLayout.CENTER);
        panel.add(label, BorderLayout.SOUTH);

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

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(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.01";
            // tmpAttributeName = "double_image_ro";
            tmpDeviceName = "test/scanserver/titan";
            tmpAttributeName = "data_01";

        }

        final NumberImageViewerCometeV2 f = new NumberImageViewerCometeV2();
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setUserEnabled(false);
        // f.setRefreshingPeriod(500);

        // f.setAxisRangeX(50, 200);
        // f.setAxisRangeY(100, 200);

        f.setShowRoiInformationTable(true);
        // f.addRoi("MyRoi1,RecTANGLE, 3, 10, 10, 80, 50,BLACK");
        // f.addRoi("MyRoi2,RECTANGLE, 4, 100, 100, 90, 60,GREEN");
        //
        // //f.addRoi("MyRoi4,point, 2, 90, 90, 90, 60,red");
        // f.addRoi("MyRoi2,RECTANGLE, 4, 120, 130, 90, 60,GREEN");
        //
        // f.setRoiList(new String[] { "MyRoiList,80,80,105,110" });
        f.setShowImageTransformationActions(true);

        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

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

        StringScalarCombo f = new StringScalarCombo();
        f.setValueList(new String[] { "toto", "tutu", "tata" });
        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

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

        StringScalarCombo f = new StringScalarCombo();
        f.setValueList(new String[] { "0", "1", "2" });
        f.setOptionList(new String[] { "Value0", "Value1", "Value2" });
        f.setDeviceName(tmpDeviceName);
        f.setToolTipText(tmpDeviceName + "/" + tmpAttributeName);
        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

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

        StringScalarTextInput f = new StringScalarTextInput();
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setUserEnabled(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
TOP
Copyright © 2018 www.massapi.com. 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.