本文整理汇总了Java中com.google.gwt.editor.client.adapters.EditorSource类的典型用法代码示例。如果您正苦于以下问题:Java EditorSource类的具体用法?Java EditorSource怎么用?Java EditorSource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EditorSource类属于com.google.gwt.editor.client.adapters包,在下文中一共展示了EditorSource类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ListValidationEditorWrapper
import com.google.gwt.editor.client.adapters.EditorSource; //导入依赖的package包/类
/**
* constructor.
*
* @param backing list of data entries.
* @param chain editor deligator
* @param editorSource editor source
* @param pparentDriver parent driver
*/
public ListValidationEditorWrapper(final List<T> backing,
final CompositeEditor.EditorChain<T, E> chain, final EditorSource<E> editorSource,
final BeanValidationEditorDriver<?, ?> pparentDriver) {
super();
this.backing = backing;
this.chain = chain;
this.editorSource = editorSource;
if (this.chain instanceof HasParentDriverSetter) {
((HasParentDriverSetter) this.chain).setParentDriver(pparentDriver);
}
this.editors = new ArrayList<>(backing.size());
this.workingCopy = new ArrayList<>(backing);
}
示例2: of
import com.google.gwt.editor.client.adapters.EditorSource; //导入依赖的package包/类
/**
* Create a ListEditor backed by an EditorSource.
*
* @param <T> The type of data being managed
* @param <E> The type of Editor
* @param source the EditorSource which will create sub-Editors
* @return a new instance of ListEditor
*/
public static <T, E extends Editor<? super T>> ListValidationEditor<T, E> of( // NOPMD
final EditorSource<E> source) {
return new ListValidationEditor<>(source);
}
示例3: ListValidationEditor
import com.google.gwt.editor.client.adapters.EditorSource; //导入依赖的package包/类
/**
* Create a ListEditor backed by an EditorSource.
*
* @param source the EditorSource which will create sub-Editors
*/
protected ListValidationEditor(final EditorSource<E> source) {
this.editorSource = source;
}