Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.Frame


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


    public void onTargetOutput(String data) {
        System.out.println("text field changed : " + data);
    }

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

        final JPanel f = sourceTest.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(String[] args) {

        IFrame frame = new Frame();
        String[] attributeNameList = null;
        if (args != null && args.length > 1) {
            attributeNameList = args;
        }
        else {
            attributeNameList = new String[] { "tango/tangotest/titan/boolean_scalar",
                    "tango/tangotest/titan/double_scalar", "tango/tangotest/titan/long_scalar" };
        }

        NumberScalarTrendViewer f = new NumberScalarTrendViewer();
        f.setAttributeNameList(attributeNameList);
        f.setSize(600, 600);
        f.setPreferredSize(f.getSize());
        f.initDAO();

        frame.setContentPane(f);
        frame.setSize(640, 600);
        frame.setTitle(f.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();

        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(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";
    }

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

        NumberSpectrumViewer f = new NumberSpectrumViewer();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        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

        } catch (Exception e) {
            e.printStackTrace();
        }

        IFrame frame = new Frame();

        final JTabbedPane tabbedPane = new JTabbedPane();
        tabbedPane.setSize(600, 400);
        tabbedPane.setPreferredSize(tabbedPane.getSize());
        tabbedPane.setEnabled(true);

        tabbedPane.addTab("TABLE", table);
        tabbedPane.addTab("CHART", viewer);

        frame.setTitle("Tree With Archiving CDMA plugin");
        frame.setContentPane(tabbedPane);
        frame.setSize(500, 500);
        frame.setTitle(tabbedPane.getClass().getName());
        ((Frame) frame).addWindowStateListener(new WindowStateListener() {
            @Override
            public void windowStateChanged(WindowEvent event) {
                if (event.getNewState() == WindowEvent.WINDOW_CLOSED) {
                    tablePanelOpen = false;
                }
            }
        });
        frame.setVisible(true);
    }
View Full Code Here

        frame.setVisible(true);
    }

    public static void main(String[] args) {

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

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

        frame.setTitle("Tree With Archiving CDMA plugin");
        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 VIEWER;
    }

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

        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

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

        BooleanScalarComboBox f = new BooleanScalarComboBox();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        f.setToolTipText(tmpDeviceName + "/" + tmpAttributeName);
        f.setEntityName(tmpAttributeName);
        f.setEnabled(true);
        f.setStateEnabled(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

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.