src/main/java/suwu/daopuerp/presentation/helpui/validator/RegexValidator.java
/**
     * will evaluate the validation condition once calling validate method
     */
will evaluate the validation condition once calling validate method
will evaluate the validation condition once calling validate method
@Override
    protected void eval() {
        if (srcControl.get() instanceof TextInputControl) {
            TextInputControl control = (TextInputControl) srcControl.get();
            String text = control.getText();
            hasErrors.set(!text.matches(regex));
        }
    }
@ Override protected void eval ( ) { if ( srcControl . get ( ) instanceof TextInputControl ) { TextInputControl control = ( TextInputControl ) srcControl . get ( ) ; String text = control . getText ( ) ; hasErrors . set ( ! text . matches ( regex ) ) ; } }
will evaluate the validation condition once calling validate method
will evaluate the validation condition once calling validate method