Package org.eobjects.datacleaner.util

Examples of org.eobjects.datacleaner.util.NumberDocument


    _analysisJobBuilder = analysisJobBuilder;
    _checkBox = new JCheckBox();
    _textField = WidgetFactory.createTextField();
    _textField.setEnabled(false);
    _textField.setColumns(4);
    _textField.setDocument(new NumberDocument());
    _textField.setText("1000");
    _prefixLabel = DCLabel.dark("Limit analysis to max ");
    _prefixLabel.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseClicked(MouseEvent e) {
View Full Code Here


  @Inject
  public SingleNumberPropertyWidget(ConfiguredPropertyDescriptor propertyDescriptor,
      AbstractBeanJobBuilder<?, ?, ?> beanJobBuilder) {
    super(beanJobBuilder, propertyDescriptor);
    _textField = new JTextField(5);
    _textField.setDocument(new NumberDocument());
    _primitive = propertyDescriptor.getType().isPrimitive();
    Number currentValue = (Number) beanJobBuilder.getConfiguredProperty(propertyDescriptor);
    if (currentValue != null) {
      _textField.setText(currentValue.toString());
    }
View Full Code Here

  private DCPanel getQuickAnalysisPanel() {
    final QuickAnalysisStrategy quickAnalysisStrategy = _userPreferences.getQuickAnalysisStrategy();
    final JXTextField columnsTextField = WidgetFactory.createTextField("Columns");
    columnsTextField.setColumns(2);
    columnsTextField.setDocument(new NumberDocument());
    columnsTextField.setText("" + quickAnalysisStrategy.getColumnsPerAnalyzer());

    final JCheckBox valueDistributionCheckBox = new JCheckBox("Include Value distribution in Quick analysis?");
    valueDistributionCheckBox.setOpaque(false);
    valueDistributionCheckBox.setSelected(quickAnalysisStrategy.isIncludeValueDistribution());
View Full Code Here

    });
    WidgetUtils.addToGridBag(new JLabel("Proxy host"), proxyPanel, 0, 0);
    WidgetUtils.addToGridBag(proxyHostField, proxyPanel, 1, 0);

    final JTextField proxyPortField = WidgetFactory.createTextField("Proxy port");
    proxyPortField.setDocument(new NumberDocument());
    proxyPortField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        int port;
        try {
View Full Code Here

  }

  private JXTextField addValueWidthTextField(int valueWidth) {
    JXTextField textField = WidgetFactory.createTextField();
    textField.setColumns(2);
    NumberDocument document = new NumberDocument();
    document.addDocumentListener(_updatePreviewTableDocumentListener);
    textField.setDocument(document);
    textField.setText(valueWidth + "");
    _valueWidthTextFields.add(textField);
    _valueWidthsPanel.add(textField);
    if (_valueWidthTextFields.size() > 1) {
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.util.NumberDocument

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.