本文整理了Java中com.vaadin.ui.Field.setValue()
方法的一些代码示例,展示了Field.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Field.setValue()
方法的具体详情如下:
包路径:com.vaadin.ui.Field
类名称:Field
方法名:setValue
暂无
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin
@Override
public void setValue(V value) {
field.setValue(value);
}
代码示例来源:origin: korpling/ANNIS
@Override
public void setValue(T newValue) throws ReadOnlyException
{
field.setValue(newValue);
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void setAttachmentName(String name) {
form.getField("name").setValue(name);
}
代码示例来源:origin: org.opennms.features/vaadin-jmxconfiggenerator
/**
* Toggles the visibility of user and password fields. The fields are shown
* if "authenticate" checkbox is presssed. Otherwise they are not shown.
*/
private void updateAuthenticationFields(boolean visible) throws Property.ReadOnlyException, Converter.ConversionException {
((Field<Boolean>) configFieldGroup.getField(MetaConfigModel.AUTHENTICATE)).setValue(visible);
configFieldGroup.getField(MetaConfigModel.USER).setVisible(visible);
configFieldGroup.getField(MetaConfigModel.PASSWORD).setVisible(visible);
if (!visible) {
configFieldGroup.getField(MetaConfigModel.USER).setValue(null);
configFieldGroup.getField(MetaConfigModel.PASSWORD).setValue(null);
}
}
代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui
/**
* Toggles the visibility of user and password fields. The fields are shown
* if "authenticate" checkbox is presssed. Otherwise they are not shown.
*/
private void updateAuthenticationFields(boolean visible) throws ReadOnlyException, ConversionException {
getField(MetaConfigModel.AUTHENTICATE).setValue(visible);
getField(MetaConfigModel.USER).setVisible(visible);
getField(MetaConfigModel.PASSWORD).setVisible(visible);
if (!visible) {
getField(MetaConfigModel.USER).setValue(null);
getField(MetaConfigModel.PASSWORD).setValue(null);
}
}
代码示例来源:origin: org.aperteworkflow/editor
public void refreshForm(boolean setCaption, Map<String,Object> valuesMap) {
refreshForm(setCaption);
List<Property<?>> properties = classInfo.getProperties();
for (Property<?> property : properties) {
final com.vaadin.ui.Field field = fieldFactory.createField(property, propertiesForm);
propertiesForm.addField(property, field);
Object value = valuesMap.get(property.getPropertyId());
//BACKCOMPATIBILITY: this block is necessary for back-compatibility from 2.0 RC1 to 2.0.
if (property.getPropertyId().equals("markProcessImportant") ){
if(isValueNullOrEmpty(value)){
value = false;
}
}
field.setValue(value);
}
}
private boolean isValueNullOrEmpty(Object value){
代码示例来源:origin: org.opennms.features/vaadin-jmxconfiggenerator
((Field<String>) eachField).setValue((String) property.getValue());
代码示例来源:origin: org.aperteworkflow/gui-commons
protected void attachField(Object propertyId, Field field) {
if (FIELDS_VISIBLE.contains(propertyId)) {
if (field.getValue() == null && field.getType() == String.class) {
field.setValue("");
内容来源于网络,如有侵权,请联系作者删除!