本文整理汇总了Java中com.google.gwt.editor.client.adapters.TakesValueEditor类的典型用法代码示例。如果您正苦于以下问题:Java TakesValueEditor类的具体用法?Java TakesValueEditor怎么用?Java TakesValueEditor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TakesValueEditor类属于com.google.gwt.editor.client.adapters包,在下文中一共展示了TakesValueEditor类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FormItemEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
public FormItemEditor(FormItem formItem) {
item = formItem;
item.setValidators(validator);
editor = TakesValueEditor.of(new TakesValue<T>() {
@Override
public void setValue(T value) {
item.setValue(value);
}
@Override
public T getValue() {
return (T) item.getValue();
}
});
}
示例2: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public LeafValueEditor<Boolean> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例3: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public LeafValueEditor<Integer> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例4: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public LeafValueEditor<Boolean> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例5: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public LeafValueEditor<T> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例6: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
/**
* Returns a {@link TakesValueEditor} backed by the ValueListBox.
*/
public TakesValueEditor<List<T>> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例7: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
/**
* Returns a {@link TakesValueEditor} backed by the ValueListBox.
*/
@Override
public TakesValueEditor<Collection<T>> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例8: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public LeafValueEditor<Boolean> asEditor() {
if ( editor == null ) {
editor = TakesValueEditor.of( this );
}
return editor;
}
示例9: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public LeafValueEditor<T> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例10: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public LeafValueEditor<Integer> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}
示例11: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
@Override
public TakesValueEditor<Integer> asEditor() {
return list.asEditor();
}
示例12: asEditor
import com.google.gwt.editor.client.adapters.TakesValueEditor; //导入依赖的package包/类
public LeafValueEditor<Date> asEditor() {
if (editor == null) {
editor = TakesValueEditor.of(this);
}
return editor;
}