Search in sources :

Example 1 with ColumnTitleValidator

use of org.gephi.ui.utils.ColumnTitleValidator in project gephi by gephi.

the class AddColumnUI method createValidationPanel.

public static ValidationPanel createValidationPanel(AddColumnUI innerPanel) {
    ValidationPanel validationPanel = new ValidationPanel();
    if (innerPanel == null) {
        innerPanel = new AddColumnUI();
    }
    validationPanel.setInnerComponent(innerPanel);
    ValidationGroup group = validationPanel.getValidationGroup();
    group.add(innerPanel.titleTextField, new ColumnTitleValidator(innerPanel.table));
    return validationPanel;
}
Also used : ColumnTitleValidator(org.gephi.ui.utils.ColumnTitleValidator) ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Example 2 with ColumnTitleValidator

use of org.gephi.ui.utils.ColumnTitleValidator in project gephi-plugins-bootcamp by gephi.

the class EqualValuesMergeStrategyUI method getSettingsPanel.

@Override
public JPanel getSettingsPanel() {
    //Create a validation panel:
    ValidationPanel validationPanel = new ValidationPanel();
    validationPanel.setInnerComponent(this);
    ValidationGroup group = validationPanel.getValidationGroup();
    //ColumnTitleValidator is in UI utils module
    group.add(titleTextField, new ColumnTitleValidator(table));
    return validationPanel;
}
Also used : ColumnTitleValidator(org.gephi.ui.utils.ColumnTitleValidator) ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Example 3 with ColumnTitleValidator

use of org.gephi.ui.utils.ColumnTitleValidator in project gephi by gephi.

the class GeneralColumnTitleChooserUI method getSettingsPanel.

@Override
public JPanel getSettingsPanel() {
    ValidationPanel validationPanel = new ValidationPanel();
    validationPanel.setInnerComponent(this);
    ValidationGroup group = validationPanel.getValidationGroup();
    group.add(titleTextField, new ColumnTitleValidator(table));
    return validationPanel;
}
Also used : ColumnTitleValidator(org.gephi.ui.utils.ColumnTitleValidator) ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Example 4 with ColumnTitleValidator

use of org.gephi.ui.utils.ColumnTitleValidator in project gephi by gephi.

the class DuplicateColumnUI method getSettingsPanel.

@Override
public JPanel getSettingsPanel() {
    ValidationPanel validationPanel = new ValidationPanel();
    validationPanel.setInnerComponent(this);
    ValidationGroup group = validationPanel.getValidationGroup();
    group.add(titleTextField, new ColumnTitleValidator(table));
    return validationPanel;
}
Also used : ColumnTitleValidator(org.gephi.ui.utils.ColumnTitleValidator) ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Example 5 with ColumnTitleValidator

use of org.gephi.ui.utils.ColumnTitleValidator in project gephi by gephi.

the class GeneralCreateColumnFromRegexUI method getSettingsPanel.

@Override
public JPanel getSettingsPanel() {
    ValidationPanel validationPanel = new ValidationPanel();
    validationPanel.setInnerComponent(this);
    ValidationGroup group = validationPanel.getValidationGroup();
    group.add(titleTextField, new ColumnTitleValidator(table));
    return validationPanel;
}
Also used : ColumnTitleValidator(org.gephi.ui.utils.ColumnTitleValidator) ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Aggregations

ColumnTitleValidator (org.gephi.ui.utils.ColumnTitleValidator)9 ValidationGroup (org.netbeans.validation.api.ui.ValidationGroup)9 ValidationPanel (org.netbeans.validation.api.ui.ValidationPanel)9 ChangeEvent (javax.swing.event.ChangeEvent)2 ChangeListener (javax.swing.event.ChangeListener)2 IntervalBoundValidator (org.gephi.ui.utils.IntervalBoundValidator)2