Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.TextField


    }

    public void setData(final String value) {

        if (widget instanceof TextField && isEditable()) {
            final TextField widgetTemp = ((TextField) widget);

            // Mediator manage Confirmation message => if confirmation == true
            // then the mediator show the confirmation message. We don't want this so we disable
            // the confirmation
            // message and set the value
            final boolean conf = isAskConfirmation();
            if (conf) {
                setAskConfirmation(false);
            }

            // warn mediator which will change value on source
            // widgetTemp.setText(value);
            widgetTemp.warnMediators(new TextInformation(widget, value == null ? "" : value));

            if (conf) {
                // now we restore the user parameter
                setAskConfirmation(conf);
            }
View Full Code Here


        StringScalarBox stringBox = new StringScalarBox();

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "string_scalar");

        TextField textfield = new TextField();
        TextArea textArea = new TextArea();
        FileBrowser fileBrowser = new FileBrowser();

        stringBox.addTargetListener(this, textfield);
View Full Code Here

        //Tango key generator construction
        tangoKey = new TangoKeyGenerator();       

        //Targets construction
        final TextField advancedCaseTextField = new TextField();

        final TextField simpleCaseTextField = new TextField();

        final Chart advancedChart = new Chart();
        advancedChart.setFreezePanelVisible(true);
        advancedChart.setManagementPanelVisible(true);
        advancedChart.setAutoHighlightOnLegend(true);
View Full Code Here

  }

  @Override
  protected TextField initWidget() {
    return new TextField();
  }
View Full Code Here

  }

  public void setData(final String value) {

    if (widget instanceof TextField && isEditable()) {
      final TextField widgetTemp = ((TextField) widget);

      // Mediator manage Confirmation message => if confirmation == true
      // then the mediator
      // show the confirmation message. We don't want this so we disable
      // the confirmation
      // message and set the value
      final boolean conf = isConfirmation();
      if (conf) {
        setConfirmation(false);
      }

      // set text to new value and warn mediator which will change value
      // on source
      // widgetTemp.setText(value);
      widgetTemp.warnMediators(new TextInformation(widget,
          value == null ? "" : value));

      if (conf) {
        // now we restore the user parameter
        setConfirmation(conf);
View Full Code Here

    public static void main2() {
        DataSourceProducerProvider.pushNewProducer(TangoDataSourceFactory.class);
        JPanel panel = new JPanel();
        panel.setLayout(new BorderLayout());

        final TextField bean = new TextField();

        final StringScalarBox scalarBox = new StringScalarBox();
        panel.add(bean, BorderLayout.CENTER);
        final JLabel focusLabel = new JLabel("grab Focus");
        focusLabel.addMouseListener(new MouseAdapter() {
View Full Code Here

    public static void main2() {
        DataSourceProducerProvider.pushNewProducer(TangoDataSourceFactory.class);
        JPanel panel = new JPanel();
        panel.setLayout(new BorderLayout());

        final TextField bean = new TextField();

        final StringScalarBox scalarBox = new StringScalarBox();
        panel.add(bean, BorderLayout.CENTER);
        final JLabel focusLabel = new JLabel("grab Focus");
        focusLabel.addMouseListener(new MouseAdapter() {
View Full Code Here

        // technical data part
        initTechnicalComponents();
    }

    private void initInfosComponents() {
        projectDirectoryViewer = new TextField();
        subDirectoryViewer = new TextField();
        fileNameViewer = new TextField();
        nxEntryNameViewer = new TextField();
        globalPostRecordViewer = new TextField();
        nxentryPostRecordingCB = new CheckBox();
        selectedDataModelViewer = new TextField();

        stringBox.setErrorText(projectDirectoryViewer, "Unable to read attribute projectDirectory");
        stringBox.setErrorText(subDirectoryViewer, "Unable to read attribute subDirectory");

        // stringBox.setReadOnly(subDirectoryViewer, true);//bug dans ReadOnly
View Full Code Here

        // technical data part
        initTechnicalComponents();
    }

    private void initInfosComponents() {
        projectDirectoryViewer = new TextField();
        subDirectoryViewer = new TextField();
        fileNameViewer = new TextField();
        nxEntryNameViewer = new TextField();
        globalPostRecordViewer = new TextField();
        nxentryPostRecordingCB = new CheckBox();
        selectedDataModelViewer = new TextField();

        stringBox.setErrorText(projectDirectoryViewer, "Unable to read attribute projectDirectory");
        stringBox.setErrorText(subDirectoryViewer, "Unable to read attribute subDirectory");

        // stringBox.setReadOnly(subDirectoryViewer, true);//bug dans ReadOnly
View Full Code Here

    @Override
    protected void initPanelComponents() {
        dataModelSelectionComboBox = new ComboBox();
        dataModelSelectionTitle = new JLabel("Current datamodel:");
        setModelTarget = new TextField();

        dataModelDocumentListener = new DocumentListener() {
            @Override
            public void removeUpdate(DocumentEvent e) {
                updateCombo(true);
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swing.TextField

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.