private static AbstractField < ? > createField ( final String property ) { if ( StringUtils . containsIgnoreCase ( property , HIDDEN_FIELD_NAME ) ) { return new PasswordField ( ) ; } else { return new TextField ( ) ; } }
Creates the field .