コード例 #1
0
  @Override
  public void setup(
      AttributeColumnsManipulator m,
      GraphModel graphModel,
      Table table,
      Column column,
      DialogControls dialogControls) {
    this.table = table;
    this.dialogControls = dialogControls;
    this.manipulator = (ConvertColumnToDynamic) m;

    buildValidationPanel();

    descriptionLabel.setText(
        NbBundle.getMessage(
            ConvertColumnToDynamicTimestampsUI.class,
            "ConvertColumnToDynamicUI.descriptionLabel.text",
            column.getTitle()));
    titleTextField.setText(
        NbBundle.getMessage(
            ConvertColumnToDynamicTimestampsUI.class,
            "ConvertColumnToDynamicUI.new.title",
            column.getTitle()));

    refreshTitleEnabledState();
  }
コード例 #2
0
    public ColumnEstimator(Column column) {
      this.column = column;
      this.comboBox = new JComboBox();
      this.label = new JLabel(column.getTitle());

      initAvailableEstimators();
      Estimator currentEstimator = column.getEstimator();
      comboBox.setSelectedItem(new EstimatorWrapper(currentEstimator));
    }