本文整理汇总了Java中com.vaadin.ui.Field.setBuffered方法的典型用法代码示例。如果您正苦于以下问题:Java Field.setBuffered方法的具体用法?Java Field.setBuffered怎么用?Java Field.setBuffered使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.Field
的用法示例。
在下文中一共展示了Field.setBuffered方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configureField
import com.vaadin.ui.Field; //导入方法依赖的package包/类
/**
* Configure the field defaults, depending on the FieldBinder settings.
*
* <code>
* field.setBuffered(isBuffered());
* field.setEnabled(isEnabled());
* if (field.getPropertyDataSource().isReadOnly()) {
* field.setReadOnly(true)
* } else { field.setReadOnly(isReadOnly()); }
* </code>
*/
protected void configureField(Field<?> field) {
field.setBuffered(isBuffered());
field.setEnabled(isEnabled());
if (field.getPropertyDataSource() != null
&& field.getPropertyDataSource().isReadOnly()) {
field.setReadOnly(true);
} else {
field.setReadOnly(isReadOnly());
}
}
示例2: configureField
import com.vaadin.ui.Field; //导入方法依赖的package包/类
protected void configureField(Field<?> field) {
field.setParent(this);
field.setBuffered(isEditorBuffered());
field.setEnabled(isEnabled());
}
示例3: resetField
import com.vaadin.ui.Field; //导入方法依赖的package包/类
/**
* Clear field status:
*
* <code>
* field.setBuffered(false);
* field.setEnabled(true);
* field.setReadOnly(false);
* field.setValue(null);
* </code>
*/
protected void resetField(Field<?> field) {
field.setBuffered(false);
field.setEnabled(true);
field.setReadOnly(false);
field.setValue(null);
}
示例4: setBuffered
import com.vaadin.ui.Field; //导入方法依赖的package包/类
/**
* Sets the buffered mode for the bound fields.
* <p>
* When buffered mode is on the item will not be updated until
* {@link #commit()} is called. If buffered mode is off the item will be
* updated once the fields are updated.
* </p>
* <p>
* The default is to use buffered mode.
* </p>
*
* @see Field#setBuffered(boolean)
* @param buffered
* true to turn on buffered mode, false otherwise
*/
public void setBuffered(boolean buffered) {
getFieldGroup().setBuffered(true);
for (Field<?> field : getFields()) {
field.setBuffered(buffered);
}
}