本文整理了Java中com.vaadin.ui.TextArea.setValidationVisible()
方法的一些代码示例,展示了TextArea.setValidationVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextArea.setValidationVisible()
方法的具体详情如下:
包路径:com.vaadin.ui.TextArea
类名称:TextArea
方法名:setValidationVisible
暂无
代码示例来源:origin: org.aperteworkflow/base-widgets
@Override
public void setValidationVisible(boolean validateAutomatically) {
rawText.setValidationVisible(validateAutomatically);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
@Override
public void enter(ViewChangeEvent event)
{
this.saveRequiredMonitor.setSaveRequired(true);
this.nameField.setValidationVisible(false);
this.descriptionField.setValidationVisible(false);
}
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
try
{
NewBusinessStreamWindow.this.roleName.validate();
NewBusinessStreamWindow.this.roleDescription.validate();
}
catch (InvalidValueException e)
{
NewBusinessStreamWindow.this.roleName.setValidationVisible(true);
NewBusinessStreamWindow.this.roleDescription.setValidationVisible(true);
return;
}
NewBusinessStreamWindow.this.roleName.setValidationVisible(false);
NewBusinessStreamWindow.this.roleDescription.setValidationVisible(false);
UI.getCurrent().removeWindow(NewBusinessStreamWindow.this);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
try
{
NewRoleWindow.this.roleName.validate();
NewRoleWindow.this.roleDescription.validate();
}
catch (InvalidValueException e)
{
NewRoleWindow.this.roleName.setValidationVisible(true);
NewRoleWindow.this.roleDescription.setValidationVisible(true);
return;
}
NewRoleWindow.this.roleName.setValidationVisible(false);
NewRoleWindow.this.roleDescription.setValidationVisible(false);
securityService.saveRole(role);
Notification.show("Role successfully created!");
UI.getCurrent().removeWindow(NewRoleWindow.this);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
commentTextArea.setValidationVisible(true);
return;
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
comments.setValidationVisible(true);
comments.markAsDirty();
return;
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
comments.setValidationVisible(true);
comments.markAsDirty();
return;
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
comments.setValidationVisible(true);
targetServerComboBox.setValidationVisible(true);
comments.markAsDirty();
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
try
{
tf1.validate();
}
catch (InvalidValueException e)
{
tf1.setValidationVisible(true);
return;
}
final IkasanAuthentication authentication = (IkasanAuthentication)VaadinService.getCurrentRequest().getWrappedSession()
.getAttribute(DashboardSessionValueConstants.USER);
Collection<ErrorOccurrence> items = (Collection<ErrorOccurrence>)cont.getItemIds();
ArrayList<String> uris = new ArrayList<String>();
for(ErrorOccurrence eo: items)
{
uris.add(eo.getUri());
}
errorReportingManagementService.update(uris, tf1.getValue(), authentication.getName());
action = COMMENT;
close();
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
FilterWindow.this.description.setValidationVisible(true);
FilterWindow.this.description.setValidationVisible(false);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
tf1.setValidationVisible(true);
tf2.setValidationVisible(true);
return;
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
tf1.setValidationVisible(true);
tf2.setValidationVisible(true);
return;
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
try
{
ServerWindow.this.name.validate();
ServerWindow.this.description.validate();
ServerWindow.this.url.validate();
ServerWindow.this.port.validate();
}
catch (InvalidValueException e)
{
ServerWindow.this.name.setValidationVisible(true);
ServerWindow.this.description.setValidationVisible(true);
ServerWindow.this.url.setValidationVisible(true);
ServerWindow.this.port.setValidationVisible(true);
return;
}
ServerWindow.this.name.setValidationVisible(false);
ServerWindow.this.description.setValidationVisible(false);
ServerWindow.this.url.setValidationVisible(false);
ServerWindow.this.port.setValidationVisible(false);
topologyService.save(server);
Notification.show("New Server Created!");
UI.getCurrent().removeWindow(ServerWindow.this);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
commentTextArea.setValidationVisible(false);
commentTextArea.validate();
commentTextArea.setValidationVisible(true);
return;
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
errorMessageTextArea.setValidationVisible(true);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
@Override
public void buttonClick(ClickEvent event)
{
try
{
nameField.validate();
descriptionField.validate();
} catch (InvalidValueException e) {
nameField.setValidationVisible(true);
descriptionField.setValidationVisible(true);
return;
}
try
{
binder.commit();
UI.getCurrent().getNavigator().navigateTo("emptyPanel");
nameField.setValue("");
descriptionField.setValue("");
Notification.show("New Mapping Configuration Context Successfully Created!");
saveRequiredMonitor.setSaveRequired(false);
close();
} catch (CommitException e)
{
logger.error("An error occurred trying to save mapping configuration context!", e);
Notification.show("An error occurred saving a new context! " + e.getMessage(), Type.ERROR_MESSAGE);
}
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
comments.setValidationVisible(true);
comments.markAsDirty();
return;
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public boolean isValid()
{
try
{
this.clientComboBox.validate();
this.typeComboBox.validate();
this.sourceContextComboBox.validate();
this.targetContextComboBox.validate();
this.descriptionTextArea.validate();
}
catch (Validator.InvalidValueException e)
{
this.clientComboBox.setValidationVisible(true);
this.typeComboBox.setValidationVisible(true);
this.sourceContextComboBox.setValidationVisible(true);
this.targetContextComboBox.setValidationVisible(true);
this.descriptionTextArea.setValidationVisible(true);
return false;
}
this.mappingConfiguration.setConfigurationType((ConfigurationType)this.typeComboBox.getValue());
this.mappingConfiguration.setConfigurationServiceClient((ConfigurationServiceClient) this.clientComboBox.getValue());
this.mappingConfiguration.setSourceContext((ConfigurationContext) this.sourceContextComboBox.getValue());
this.mappingConfiguration.setTargetContext((ConfigurationContext) this.targetContextComboBox.getValue());
this.mappingConfiguration.setDescription(this.descriptionTextArea.getValue());
return true;
}
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
tf1.setReadOnly(false);
tf1.setWidth("100%");
tf1.setValidationVisible(false);
layout.removeAllComponents();
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
tf1.setReadOnly(false);
tf1.setWidth("100%");
tf1.setValidationVisible(false);
layout.removeAllComponents();
layout.addComponent(tf1);
内容来源于网络,如有侵权,请联系作者删除!