Package fr.soleil.comete.widget

Examples of fr.soleil.comete.widget.StringButton


    private static final long serialVersionUID = 6122889431855145895L;

    @Override
    public AbstractWidget<?, String> initWidget() {
        StringButton widget = new StringButton();
        widget.getComponent().setButtonLook(true);
        return widget;
    }
View Full Code Here


    return false;
  }

  @Override
  public AbstractWidget<?, String> initWidget() {
    StringButton widget = new StringButton();
    widget.getComponent().setButtonLook(false);
    widget.getComponent().setPreferredSize(100, 30);
    widget.setDisplayDataInButton(true);
    widget.setText("UNKNOWN");
    return widget;
  }
View Full Code Here

        initDeviceButton = generateStringButton();
        initDeviceButton.setText("Initialize DataRecorder device");
        initDeviceButton.setConfirmation(true);
        // delete command initialization
        deleteNexusFilesButton = new StringButton() {
            @Override
            public void actionPerformed(java.util.EventObject event) {
                // encryption hack
                long currentDate = (new Date().getTime() + new GregorianCalendar().getTimeZone()
                        .getOffset(new Date().getTime())) / 1000;
View Full Code Here

     * Creates a new {@link StringButton} and sets some default parameters in it
     *
     * @return a new {@link StringButton}
     */
    protected StringButton generateStringButton() {
        StringButton stringButton = new StringButton();
        stringButton.getComponent().setButtonLook(true);
        return stringButton;
    }
View Full Code Here

        authentificationLightBean.setDisplayMessageOnConnectionError(false);

        hiddenErrorLabel = new Label();
        hiddenStateLabel = new Label();
        hiddenTechnicalDataLabel = new Label();
        hiddenPostRecordingCommandButton = new StringButton();
        hiddenPostRecordingCommandButton.setDisplayDataInButton(true);
        hiddenDataModelsViewer = new StringMatrixComboBoxViewer();
        hiddenDataModelsViewer.setExecuteDaoOnInitialization(true);

        hiddenScriptListViewer = new StringMatrixComboBoxViewer();
View Full Code Here

     * Creates a new {@link StringButton} and sets some default parameters in it
     *
     * @return a new {@link StringButton}
     */
    protected StringButton generateStringButton() {
        StringButton stringButton = new StringButton();
        stringButton.getComponent().setButtonLook(true);
        return stringButton;
    }
View Full Code Here

        initDeviceButton = generateStringButton();
        initDeviceButton.setText("Initialize DataRecorder device");
        initDeviceButton.setConfirmation(true);
        // delete command initialization
        deleteNexusFilesButton = new StringButton() {
            public void actionPerformed(java.util.EventObject event) {
                // encryption hack
                long currentDate = (new Date().getTime() + new GregorianCalendar().getTimeZone()
                        .getOffset(new Date().getTime())) / 1000;
                String valueToInsert = "c:"
View Full Code Here

        authentificationLightBean.setDisplayMessageOnConnectionError(false);

        hiddenErrorLabel = new Label();
        hiddenStateLabel = new Label();
        hiddenTechnicalDataLabel = new Label();
        hiddenPostRecordingCommandButton = new StringButton();
        hiddenPostRecordingCommandButton.setDisplayDataInButton(true);
        hiddenDataModelsViewer = new StringMatrixComboBoxViewer();
        hiddenDataModelsViewer.setExecuteDaoOnInitialization(true);

        hiddenScriptListViewer = new StringMatrixComboBoxViewer();
View Full Code Here

    @Override
    protected void initAndAddOtherComponentsInMainPanel() {
        // hidden components
        hiddenNxEntryNameViewer = new Label();
        hiddenDefaultValueViewer = new StringButton();
        hiddenDefaultValueViewer.setDisplayDataInButton(true);

        // view part
        viewPanel = new JPanel(new BorderLayout());
        nxEntryNameTitle = new JLabel("Current Value:");
        nxEntryNameTitle.setBorder(new EmptyBorder(0, 0, 0, 5));
        nxEntryNameDisplayer = new JLabel();
        viewPanel.add(nxEntryNameTitle, BorderLayout.WEST);
        viewPanel.add(nxEntryNameDisplayer, BorderLayout.CENTER);

        // edit part
        editPanel = new JPanel(new GridBagLayout());
        nxEntryNameEditor = new JComboBox(MODEL_POSSIBLE_VALUES);
        nxEntryNameEditor.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                nxEntryNameDisplayer.setText((String) nxEntryNameEditor.getSelectedItem());
            }
        });
        setDefaultValueButton = new JButton("Default");
        setDefaultValueButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                hiddenDefaultValueViewer.execute();
                updateSelectedValue(true);
            }
        });
        GridBagConstraints comboConstraints = new GridBagConstraints();
        comboConstraints.fill = GridBagConstraints.BOTH;
        comboConstraints.gridx = 0;
        comboConstraints.gridy = 0;
        comboConstraints.weightx = 1;
        comboConstraints.weighty = 1;
        comboConstraints.insets = new Insets(0, 0, 0, 5);
        editPanel.add(nxEntryNameEditor, comboConstraints);
        GridBagConstraints defaultButtonConstraints = new GridBagConstraints();
        defaultButtonConstraints.fill = GridBagConstraints.VERTICAL;
        defaultButtonConstraints.gridx = 1;
        defaultButtonConstraints.gridy = 0;
        defaultButtonConstraints.weightx = 0;
        defaultButtonConstraints.weighty = 1;
        editPanel.add(setDefaultValueButton, defaultButtonConstraints);

        // buttons
        buttonPanel = new JPanel(new GridBagLayout());
        closeButton.setText("Cancel");
        okButton = new StringButton() {
            @Override
            public void actionPerformed(EventObject event) {
                setParameter((String) nxEntryNameEditor.getSelectedItem());
                super.actionPerformed(event);
                close();
View Full Code Here

            }
        });

        // Experiment Index
        experimentIndexPanel = new JPanel(new GridBagLayout());
        resetExperimentIndexButton = new StringButton();
        resetExperimentIndexButton.getComponent().setButtonLook(true);
        resetExperimentIndexButton.setDisplayDataInButton(false);
        resetExperimentIndexButton.setAllowOutputPopup(false);
        resetExperimentIndexButton.setText("Reset Experiment Index");
        resetExperimentIndexButton.setCometeFont(AwtFontTool.getCometeFont(closeButton.getFont()));
        incrementExperimentIndexButton = new StringButton();
        incrementExperimentIndexButton.getComponent().setButtonLook(true);
        incrementExperimentIndexButton.setDisplayDataInButton(false);
        incrementExperimentIndexButton.setAllowOutputPopup(false);
        incrementExperimentIndexButton.setText("Increment Experiment Index");
        incrementExperimentIndexButton.setCometeFont(AwtFontTool.getCometeFont(closeButton
View Full Code Here

TOP

Related Classes of fr.soleil.comete.widget.StringButton

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.