本文整理汇总了Java中com.google.gwt.editor.client.EditorDelegate类的典型用法代码示例。如果您正苦于以下问题:Java EditorDelegate类的具体用法?Java EditorDelegate怎么用?Java EditorDelegate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EditorDelegate类属于com.google.gwt.editor.client包,在下文中一共展示了EditorDelegate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testCreateEditorForTraversal
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Test
public void testCreateEditorForTraversal() {
presenter.createEditorForTraversal();
verify(listEditor, times(1)).createEditorForTraversal();
verify(listEditor, times(0)).getPathElement(any(DataColumnDefEditor.class));
verify(listEditor, times(0)).setEditorChain(any(CompositeEditor.EditorChain.class));
verify(listEditor, times(0)).setDelegate(any(EditorDelegate.class));
verify(listEditor, times(0)).flush();
verify(listEditor, times(0)).onPropertyChange(anyString());
verify(listEditor, times(0)).setValue(any(List.class));
}
示例2: testGetPathElement
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Test
public void testGetPathElement() {
presenter.getPathElement(dataColumnDefEditor);
verify(listEditor, times(1)).getPathElement(dataColumnDefEditor);
verify(listEditor, times(0)).createEditorForTraversal();
verify(listEditor, times(0)).setEditorChain(any(CompositeEditor.EditorChain.class));
verify(listEditor, times(0)).setDelegate(any(EditorDelegate.class));
verify(listEditor, times(0)).flush();
verify(listEditor, times(0)).onPropertyChange(anyString());
verify(listEditor, times(0)).setValue(any(List.class));
}
示例3: testSetEditorChain
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Test
public void testSetEditorChain() {
final CompositeEditor.EditorChain<DataColumnDef, org.dashbuilder.dataset.client.editor.DataColumnDefEditor> chain = mock(CompositeEditor.EditorChain.class);
presenter.setEditorChain(chain);
verify(listEditor, times(1)).setEditorChain(chain);
verify(listEditor, times(0)).createEditorForTraversal();
verify(listEditor, times(0)).getPathElement(any(DataColumnDefEditor.class));
verify(listEditor, times(0)).setDelegate(any(EditorDelegate.class));
verify(listEditor, times(0)).flush();
verify(listEditor, times(0)).onPropertyChange(anyString());
verify(listEditor, times(0)).setValue(any(List.class));
}
示例4: testSetDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Test
public void testSetDelegate() {
final EditorDelegate<List<DataColumnDef>> delegate = mock(EditorDelegate.class);
presenter.setDelegate(delegate);
verify(listEditor, times(1)).setDelegate(delegate);
verify(listEditor, times(0)).createEditorForTraversal();
verify(listEditor, times(0)).getPathElement(any(DataColumnDefEditor.class));
verify(listEditor, times(0)).setEditorChain(any(CompositeEditor.EditorChain.class));
verify(listEditor, times(0)).flush();
verify(listEditor, times(0)).onPropertyChange(anyString());
verify(listEditor, times(0)).setValue(any(List.class));
}
示例5: testFlush
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Test
public void testFlush() {
presenter.flush();
verify(listEditor, times(1)).flush();
verify(listEditor, times(0)).createEditorForTraversal();
verify(listEditor, times(0)).getPathElement(any(DataColumnDefEditor.class));
verify(listEditor, times(0)).setEditorChain(any(CompositeEditor.EditorChain.class));
verify(listEditor, times(0)).setDelegate(any(EditorDelegate.class));
verify(listEditor, times(0)).onPropertyChange(anyString());
verify(listEditor, times(0)).setValue(any(List.class));
}
示例6: testOnPropertyChange
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Test
public void testOnPropertyChange() {
final String s = "prop1";
presenter.onPropertyChange(s);
verify(listEditor, times(1)).onPropertyChange(s);
verify(listEditor, times(0)).createEditorForTraversal();
verify(listEditor, times(0)).getPathElement(any(DataColumnDefEditor.class));
verify(listEditor, times(0)).setEditorChain(any(CompositeEditor.EditorChain.class));
verify(listEditor, times(0)).setDelegate(any(EditorDelegate.class));
verify(listEditor, times(0)).flush();
verify(listEditor, times(0)).setValue(any(List.class));
}
示例7: testSetValue
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Test
public void testSetValue() {
final List<DataColumnDef> value = mock(List.class);
presenter.setValue(value);
verify(listEditor, times(1)).setValue(value);
verify(listEditor, times(0)).createEditorForTraversal();
verify(listEditor, times(0)).getPathElement(any(DataColumnDefEditor.class));
verify(listEditor, times(0)).setEditorChain(any(CompositeEditor.EditorChain.class));
verify(listEditor, times(0)).setDelegate(any(EditorDelegate.class));
verify(listEditor, times(0)).flush();
verify(listEditor, times(0)).onPropertyChange(anyString());
}
示例8: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(EditorDelegate<ProjectAccess> delegate) {}
示例9: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(EditorDelegate<Permission> delegate) {}
示例10: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(EditorDelegate<AccessSection> delegate) {}
示例11: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(EditorDelegate<PermissionRule> delegate) {}
示例12: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(final EditorDelegate<DataSetFilter> delegate) {
// No delegation required.
}
示例13: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(final EditorDelegate<List<DataColumnDef>> delegate) {
listEditor.setDelegate(delegate);
}
示例14: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(final EditorDelegate<T> delegate) {
// No delegation required.
}
示例15: setDelegate
import com.google.gwt.editor.client.EditorDelegate; //导入依赖的package包/类
@Override
public void setDelegate(final EditorDelegate<SQLDataSetDef> delegate) {
// No delegation required.
}