Examples of IFrame


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

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

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

        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

Examples of fr.soleil.comete.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 = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;
    if (args != null && args.length > 0) {
      tmpDeviceName = args[0];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
    }

    StatusTextArea f = new StatusTextArea();
    f.setSize(300, 300);
    f.setPreferredSize(f.getSize());
    f.setDeviceName(tmpDeviceName);

    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

Examples of fr.soleil.comete.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 = CometeWidgetFactory.createFrame();
    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

Examples of fr.soleil.comete.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 = 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 = "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.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 = 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 = "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.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 = CometeWidgetFactory.createFrame();
        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(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.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 = 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 = "string_scalar";
        }

        StringScalarTextInput f = new StringScalarTextInput();
        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.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 = 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 = "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
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.