@Test public void testInit() { verify(view).showDisplayer(displayer); verify(codeEditor, never()).init(any(), any(), any(), any()); }
public boolean showDisplayer() { if (sourceCodeEditor.hasErrors()) { sourceCodeEditor.focus(); return false; } view.showDisplayer(displayer); showingDisplayer = true; displayer.redraw(); return true; }
DisplayerHtmlEditor implements IsWidget { public boolean showDisplayer() { if (sourceCodeEditor.hasErrors()) { sourceCodeEditor.focus(); return false; } view.showDisplayer(displayer); showingDisplayer = true; displayer.redraw(); return true; } }
DisplayerHtmlEditor implements IsWidget { public boolean showDisplayer() { if (sourceCodeEditor.hasErrors()) { sourceCodeEditor.focus(); return false; } view.showDisplayer(displayer); showingDisplayer = true; displayer.redraw(); return true; } @Inject  DisplayerHtmlEditor(View view, SourceCodeEditor sourceCodeEditor); }
DisplayerHtmlEditor implements IsWidget { public boolean showDisplayer() { if (sourceCodeEditor.hasErrors()) { sourceCodeEditor.focus(); return false; } view.showDisplayer(displayer); showingDisplayer = true; displayer.redraw(); return true; } @Inject  DisplayerHtmlEditor(View view, SourceCodeEditor sourceCodeEditor); @Override Widget asWidget(); Displayer getDisplayer(); void setDisplayer(Displayer displayer); boolean showDisplayer(); void initSourceCodeItems(); SourceCodeItem getSourceCodeItem(String name); boolean onSourceCodeItemSelected(String name); void onSourceCodeChanged(); }
DisplayerHtmlEditor implements IsWidget { public boolean showDisplayer() { if (sourceCodeEditor.hasErrors()) { sourceCodeEditor.focus(); return false; } view.showDisplayer(displayer); showingDisplayer = true; displayer.redraw(); return true; } @Inject  DisplayerHtmlEditor(View view, SourceCodeEditor sourceCodeEditor); @Override Widget asWidget(); Displayer getDisplayer(); void setDisplayer(Displayer displayer); boolean showDisplayer(); void initSourceCodeItems(); SourceCodeItem getSourceCodeItem(String name); boolean onSourceCodeItemSelected(String name); void onSourceCodeChanged();  }