Search in sources :

Example 11 with ValidationGroup

use of org.netbeans.validation.api.ui.ValidationGroup in project gephi by gephi.

the class MergeColumnsUI method createValidationPanel.

public static ValidationPanel createValidationPanel(MergeColumnsUI innerPanel) {
    ValidationPanel validationPanel = new ValidationPanel();
    if (innerPanel == null) {
        innerPanel = new MergeColumnsUI();
    }
    validationPanel.setInnerComponent(innerPanel);
    ValidationGroup group = validationPanel.getValidationGroup();
    group.add(innerPanel.availableStrategiesComboBox, new MergeStrategyValidator(innerPanel));
    return validationPanel;
}
Also used : ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Example 12 with ValidationGroup

use of org.netbeans.validation.api.ui.ValidationGroup in project gephi by gephi.

the class UIExporterPDFPanel method createValidationPanel.

public static ValidationPanel createValidationPanel(UIExporterPDFPanel innerPanel) {
    ValidationPanel validationPanel = new ValidationPanel();
    validationPanel.setInnerComponent(innerPanel);
    ValidationGroup group = validationPanel.getValidationGroup();
    innerPanel.validate(group);
    return validationPanel;
}
Also used : ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Example 13 with ValidationGroup

use of org.netbeans.validation.api.ui.ValidationGroup in project gephi by gephi.

the class UIExporterPNGPanel method createValidationPanel.

// End of variables declaration//GEN-END:variables
public static ValidationPanel createValidationPanel(UIExporterPNGPanel innerPanel) {
    ValidationPanel validationPanel = new ValidationPanel();
    validationPanel.setInnerComponent(innerPanel);
    ValidationGroup group = validationPanel.getValidationGroup();
    innerPanel.validate(group);
    return validationPanel;
}
Also used : ValidationGroup(org.netbeans.validation.api.ui.ValidationGroup) ValidationPanel(org.netbeans.validation.api.ui.ValidationPanel)

Example 14 with ValidationGroup

use of org.netbeans.validation.api.ui.ValidationGroup in project gephi by gephi.

the class BooleanLogicOperationsUI 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 15 with ValidationGroup

use of org.netbeans.validation.api.ui.ValidationGroup in project gephi by gephi.

the class JoinWithSeparatorUI 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

ValidationGroup (org.netbeans.validation.api.ui.ValidationGroup)21 ValidationPanel (org.netbeans.validation.api.ui.ValidationPanel)21 ColumnTitleValidator (org.gephi.ui.utils.ColumnTitleValidator)9 ChangeEvent (javax.swing.event.ChangeEvent)4 ChangeListener (javax.swing.event.ChangeListener)4 IntervalBoundValidator (org.gephi.ui.utils.IntervalBoundValidator)2 JPanel (javax.swing.JPanel)1 BetweenZeroAndOneValidator (org.gephi.lib.validation.BetweenZeroAndOneValidator)1 Multiple4NumberValidator (org.gephi.lib.validation.Multiple4NumberValidator)1 PositiveNumberValidator (org.gephi.lib.validation.PositiveNumberValidator)1 Problems (org.netbeans.validation.api.Problems)1 Validator (org.netbeans.validation.api.Validator)1