@Override public void removeAllValidators() { this.textField.removeAllValidators(); }
/** * @see com.vaadin.data.Validatable#removeAllValidators() */ public void removeAllValidators() { m_principalName.removeAllValidators(); }
@Override public void removeAllValidators() { this.textField.removeAllValidators(); }
public void enter(int numSourceParameters) { if(numSourceParameters != this.numSourceParameters) { this.numSourceParameters = numSourceParameters; this.sourceParameterNamesTextField = new ArrayList<TextField>(); namesLayout.removeAllComponents(); for (int i = 0; i < this.numSourceParameters; i++) { TextField nameField = new TextField(); nameField.setCaption("Source Parameter Name " + (i + 1)); nameField.setWidth(150, Unit.PIXELS); nameField.removeAllValidators(); nameField.addValidator(new StringLengthValidator("You must provide a parameter name!",1 , null, false)); nameField.setValidationVisible(false); this.sourceParameterNamesTextField.add(nameField); namesLayout.addComponent(nameField); } } }
public void enter(int numSourceParameters) { if(numSourceParameters != this.numSourceParameters) { this.numSourceParameters = numSourceParameters; this.sourceParameterNamesTextField = new ArrayList<TextField>(); namesLayout.removeAllComponents(); for (int i = 0; i < this.numSourceParameters; i++) { TextField nameField = new TextField(); nameField.setCaption("Source Parameter Name " + (i+1)); nameField.setWidth(150, Unit.PIXELS); nameField.removeAllValidators(); nameField.addValidator(new StringLengthValidator("You must provide a parameter name!",1 , null, false)); nameField.setValidationVisible(false); this.sourceParameterNamesTextField.add(nameField); namesLayout.addComponent(nameField); } } }
public void enter(int numSourceParameters) { if(numSourceParameters != this.numTargetParameters) { this.numTargetParameters = numSourceParameters; this.targetParameterNamesTextField = new ArrayList<TextField>(); namesLayout.removeAllComponents(); for (int i = 0; i < this.numTargetParameters; i++) { TextField nameField = new TextField(); nameField.setCaption("Target Parameter Name " + (i + 1)); nameField.setWidth(150, Unit.PIXELS); nameField.removeAllValidators(); nameField.addValidator(new StringLengthValidator("You must provide a parameter name!",1 , null, false)); nameField.setValidationVisible(false); this.targetParameterNamesTextField.add(nameField); namesLayout.addComponent(nameField); } } }
private void listenerOnErrorThresoldOptionChange(final ValueChangeEvent event) { errorThreshold.clear(); errorThreshold.removeAllValidators(); if (event.getProperty().getValue().equals(ERROR_THRESHOLD_OPTIONS.COUNT.getValue(i18n))) { errorThreshold.addValidator(new ErrorThresholdOptionValidator()); } else { errorThreshold.addValidator(new ThresholdFieldValidator()); } errorThreshold.getValidators(); }
private void listenerOnErrorThresoldOptionChange(final ValueChangeEvent event) { errorThreshold.clear(); errorThreshold.removeAllValidators(); if (event.getProperty().getValue().equals(ERROR_THRESHOLD_OPTIONS.COUNT.getValue())) { errorThreshold.addValidator(new ErrorThresholdOptionValidator()); } else { errorThreshold.addValidator(new ThresholdFieldValidator()); } errorThreshold.getValidators(); }
private void init() { GridLayout layout = new GridLayout(5, 6); layout.setSpacing(true); layout.setMargin(true); layout.setWidth("100%"); this.addStyleName(ValoTheme.PANEL_BORDERLESS); Label mappingConfigurationLabel = new Label("Number of parameters"); mappingConfigurationLabel.setStyleName(ValoTheme.LABEL_HUGE); layout.addComponent(mappingConfigurationLabel, 0, 0, 1, 0); numSourceParamsLabel = new Label("Number of source parameters:"); numSourceParamsLabel.setWidth(175, Unit.PIXELS); numSourceParamsLabel.setVisible(true); layout.addComponent(numSourceParamsLabel, 2, 2); this.numberOfSourceParametersTextField = new TextField(); this.numberOfSourceParametersTextField.setWidth(75, Unit.PIXELS); this.numberOfSourceParametersTextField.removeAllValidators(); this.numberOfSourceParametersTextField.addValidator(new LongStringValidator("Number of source parameters " + "must be defined.")); this.numberOfSourceParametersTextField.setValidationVisible(false); this.numberOfSourceParametersTextField.setVisible(true); layout.addComponent(this.numberOfSourceParametersTextField, 3, 2); this.setContent(layout); this.setSizeFull(); }
this.numberOfSourceParametersTextField = new TextField(); this.numberOfSourceParametersTextField.setWidth(75, Unit.PIXELS); this.numberOfSourceParametersTextField.removeAllValidators(); this.numberOfSourceParametersTextField.addValidator(new LongStringValidator("Number of source parameters " + "must be defined.")); this.numberOfTargetParametersTextField = new TextField(); this.numberOfTargetParametersTextField.setWidth(75, Unit.PIXELS); this.numberOfTargetParametersTextField.removeAllValidators(); this.numberOfTargetParametersTextField.addValidator(new IntegerStringValidator("Number of target parameters " + "must be defined."));
this.numberOfSourceParametersTextField = new TextField(); this.numberOfSourceParametersTextField.setWidth(75, Unit.PIXELS); this.numberOfSourceParametersTextField.removeAllValidators(); this.numberOfSourceParametersTextField.addValidator(new LongValidator("Number of source parameters " + "must be defined.")); this.numberOfTargetParametersTextField = new TextField(); this.numberOfTargetParametersTextField.setWidth(75, Unit.PIXELS); this.numberOfTargetParametersTextField.removeAllValidators(); this.numberOfTargetParametersTextField.addValidator(new IntegerValidator("Number of target parameters " + "must be defined."));