Search in sources :

Example 21 with ValidationGroup

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

the class ConvertColumnToDynamicUI method getSettingsPanel.

@Override
public JPanel getSettingsPanel() {
    //Create a validation panel:
    ValidationPanel validationPanel = new ValidationPanel();
    validationPanel.setInnerComponent(this);
    ValidationGroup group = validationPanel.getValidationGroup();
    group.add(startText, new DoubleValidator());
    group.add(endText, new DoubleValidator());
    return validationPanel;
}
Also used : 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