use of org.gephi.ui.utils.IntervalBoundValidator in project gephi by gephi.
the class ConvertColumnToDynamicTimestampsUI method buildValidationPanel.
private void buildValidationPanel() {
validationPanel = new ValidationPanel();
validationPanel.setInnerComponent(this);
ValidationGroup group = validationPanel.getValidationGroup();
group.add(titleTextField, new ColumnTitleValidator(table));
group.add(timestampText, new IntervalBoundValidator());
validationPanel.addChangeListener(new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {
dialogControls.setOkButtonEnabled(!validationPanel.isProblem());
}
});
}
use of org.gephi.ui.utils.IntervalBoundValidator in project gephi by gephi.
the class ConvertColumnToDynamicUI method buildValidationPanel.
private void buildValidationPanel() {
validationPanel = new ValidationPanel();
validationPanel.setInnerComponent(this);
ValidationGroup group = validationPanel.getValidationGroup();
group.add(titleTextField, new ColumnTitleValidator(table));
group.add(intervalStartText, new IntervalBoundValidator());
group.add(intervalEndText, new IntervalBoundValidator(intervalStartText));
validationPanel.addChangeListener(new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {
dialogControls.setOkButtonEnabled(!validationPanel.isProblem());
}
});
}
Aggregations