@Test public void setRuleCheatSheetContent() { cheatSheetView.setRuleCheatSheetContent(); verify(ruleCheatSheetStyleMock, times(1)).setDisplay(Style.Display.BLOCK); verify(dmnCheatSheetStyleMock, times(1)).setDisplay(Style.Display.NONE); }
@Override public void setRuleCheatSheetContent() { ruleCheatSheet.getStyle().setDisplay(Style.Display.BLOCK); dmnCheatSheet.getStyle().setDisplay(Style.Display.NONE); ruleCheatSheetParagraph1.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet1()); ruleCheatSheetParagraph2.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet2() + "<b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.testEditor() + " " + "</b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet3() + " <b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet4() + " </b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet5()); ruleCheatSheetParagraphBackground.setInnerHTML(backgroundMessage()); ruleCheatSheetParagraph3.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet6()); ruleCheatSheetParagraph4.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet7()); ruleCheatSheetList1.setInnerHTML("<tt>=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet8()); ruleCheatSheetList2.setInnerHTML("<tt>!</tt>, <tt>!=</tt>, <tt>&lt;&gt;</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet9()); ruleCheatSheetList3.setInnerHTML("<tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, <tt>&gt;=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet10()); ruleCheatSheetList4.setInnerHTML("<tt>[" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet11() + "]</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet12() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet13() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet14()); ruleCheatSheetList5.setInnerHTML("<tt>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet15() + "</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet16() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet17() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet18()); ruleCheatSheetList6.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet19() + " " + "<tt>=</tt>, <tt>[]</tt>, " + ScenarioSimulationEditorConstants.INSTANCE.or() + " " + "<tt>;</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet20() + " " + "<tt>null</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet21()); ruleCheatSheetList7.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet23()); ruleCheatSheetParagraph5.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet22()); ruleCheatSheetExampleExpressions.setInnerHTML("<li><tt>&lt; 1</tt></li>" + "<li><tt>&lt; 1; ! [-1, 0]</tt></li>" + "<li><tt>[Jane, Doe]</tt></li>" + "<li><tt>&lt;&gt; [1, -1]; = 0</tt></li>"); }
CheatSheetViewImpl extends Composite implements CheatSheetView { @Override public void setRuleCheatSheetContent() { ruleCheatSheet.getStyle().setDisplay(Style.Display.BLOCK); dmnCheatSheet.getStyle().setDisplay(Style.Display.NONE); ruleCheatSheetParagraph1.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet1()); ruleCheatSheetParagraph2.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet2() + "<b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.testEditor() + " " + "</b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet3() + " <b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet4() + " </b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet5()); ruleCheatSheetParagraphBackground.setInnerHTML(backgroundMessage()); ruleCheatSheetParagraph3.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet6()); ruleCheatSheetParagraph4.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet7()); ruleCheatSheetList1.setInnerHTML("<tt>=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet8()); ruleCheatSheetList2.setInnerHTML("<tt>!</tt>, <tt>!=</tt>, <tt>&lt;&gt;</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet9()); ruleCheatSheetList3.setInnerHTML("<tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, <tt>&gt;=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet10()); ruleCheatSheetList4.setInnerHTML("<tt>[" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet11() + "]</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet12() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet13() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet14()); ruleCheatSheetList5.setInnerHTML("<tt>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet15() + "</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet16() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet17() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet18()); ruleCheatSheetList6.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet19() + " " + "<tt>=</tt>, <tt>[]</tt>, " + ScenarioSimulationEditorConstants.INSTANCE.or() + " " + "<tt>;</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet20() + " " + "<tt>null</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet21()); ruleCheatSheetList7.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet23()); ruleCheatSheetParagraph5.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet22()); ruleCheatSheetExampleExpressions.setInnerHTML("<li><tt>&lt; 1</tt></li>" + "<li><tt>&lt; 1; ! [-1, 0]</tt></li>" + "<li><tt>[Jane, Doe]</tt></li>" + "<li><tt>&lt;&gt; [1, -1]; = 0</tt></li>"); } }
CheatSheetViewImpl extends Composite implements CheatSheetView { @Override public void setRuleCheatSheetContent() { ruleCheatSheet.getStyle().setDisplay(Style.Display.BLOCK); dmnCheatSheet.getStyle().setDisplay(Style.Display.NONE); ruleCheatSheetParagraph1.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet1()); ruleCheatSheetParagraph2.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet2() + "<b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.testEditor() + " " + "</b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet3() + " <b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet4() + " </b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet5()); ruleCheatSheetParagraphBackground.setInnerHTML(backgroundMessage()); ruleCheatSheetParagraph3.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet6()); ruleCheatSheetParagraph4.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet7()); ruleCheatSheetList1.setInnerHTML("<tt>=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet8()); ruleCheatSheetList2.setInnerHTML("<tt>!</tt>, <tt>!=</tt>, <tt>&lt;&gt;</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet9()); ruleCheatSheetList3.setInnerHTML("<tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, <tt>&gt;=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet10()); ruleCheatSheetList4.setInnerHTML("<tt>[" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet11() + "]</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet12() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet13() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet14()); ruleCheatSheetList5.setInnerHTML("<tt>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet15() + "</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet16() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet17() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet18()); ruleCheatSheetList6.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet19() + " " + "<tt>=</tt>, <tt>[]</tt>, " + ScenarioSimulationEditorConstants.INSTANCE.or() + " " + "<tt>;</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet20() + " " + "<tt>null</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet21()); ruleCheatSheetList7.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet23()); ruleCheatSheetParagraph5.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet22()); ruleCheatSheetExampleExpressions.setInnerHTML("<li><tt>&lt; 1</tt></li>" + "<li><tt>&lt; 1; ! [-1, 0]</tt></li>" + "<li><tt>[Jane, Doe]</tt></li>" + "<li><tt>&lt;&gt; [1, -1]; = 0</tt></li>"); }  }
CheatSheetViewImpl extends Composite implements CheatSheetView { @Override public void setRuleCheatSheetContent() { ruleCheatSheet.getStyle().setDisplay(Style.Display.BLOCK); dmnCheatSheet.getStyle().setDisplay(Style.Display.NONE); ruleCheatSheetParagraph1.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet1()); ruleCheatSheetParagraph2.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet2() + "<b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.testEditor() + " " + "</b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet3() + " <b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet4() + " </b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet5()); ruleCheatSheetParagraphBackground.setInnerHTML(backgroundMessage()); ruleCheatSheetParagraph3.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet6()); ruleCheatSheetParagraph4.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet7()); ruleCheatSheetList1.setInnerHTML("<tt>=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet8()); ruleCheatSheetList2.setInnerHTML("<tt>!</tt>, <tt>!=</tt>, <tt>&lt;&gt;</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet9()); ruleCheatSheetList3.setInnerHTML("<tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, <tt>&gt;=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet10()); ruleCheatSheetList4.setInnerHTML("<tt>[" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet11() + "]</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet12() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet13() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet14()); ruleCheatSheetList5.setInnerHTML("<tt>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet15() + "</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet16() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet17() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet18()); ruleCheatSheetList6.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet19() + " " + "<tt>=</tt>, <tt>[]</tt>, " + ScenarioSimulationEditorConstants.INSTANCE.or() + " " + "<tt>;</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet20() + " " + "<tt>null</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet21()); ruleCheatSheetList7.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet23()); ruleCheatSheetParagraph5.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet22()); ruleCheatSheetExampleExpressions.setInnerHTML("<li><tt>&lt; 1</tt></li>" + "<li><tt>&lt; 1; ! [-1, 0]</tt></li>" + "<li><tt>[Jane, Doe]</tt></li>" + "<li><tt>&lt;&gt; [1, -1]; = 0</tt></li>"); }  @Override void init(Presenter presenter); @Override Presenter getPresenter(); @Override void setRuleCheatSheetContent(); @Override void setDMNCheatSheetContent(); @Override void reset(); }
CheatSheetViewImpl extends Composite implements CheatSheetView { @Override public void setRuleCheatSheetContent() { ruleCheatSheet.getStyle().setDisplay(Style.Display.BLOCK); dmnCheatSheet.getStyle().setDisplay(Style.Display.NONE); ruleCheatSheetParagraph1.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet1()); ruleCheatSheetParagraph2.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet2() + "<b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.testEditor() + " " + "</b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet3() + " <b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet4() + " </b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet5()); ruleCheatSheetParagraphBackground.setInnerHTML(backgroundMessage()); ruleCheatSheetParagraph3.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet6()); ruleCheatSheetParagraph4.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet7()); ruleCheatSheetList1.setInnerHTML("<tt>=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet8()); ruleCheatSheetList2.setInnerHTML("<tt>!</tt>, <tt>!=</tt>, <tt>&lt;&gt;</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet9()); ruleCheatSheetList3.setInnerHTML("<tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, <tt>&gt;=</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet10()); ruleCheatSheetList4.setInnerHTML("<tt>[" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet11() + "]</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet12() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet13() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet14()); ruleCheatSheetList5.setInnerHTML("<tt>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet15() + "</tt>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet16() + " " + "<b>" + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet17() + "</b>" + " " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet18()); ruleCheatSheetList6.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet19() + " " + "<tt>=</tt>, <tt>[]</tt>, " + ScenarioSimulationEditorConstants.INSTANCE.or() + " " + "<tt>;</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet20() + " " + "<tt>null</tt>. " + ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet21()); ruleCheatSheetList7.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet23()); ruleCheatSheetParagraph5.setInnerHTML(ScenarioSimulationEditorConstants.INSTANCE.ruleCheatSheet22()); ruleCheatSheetExampleExpressions.setInnerHTML("<li><tt>&lt; 1</tt></li>" + "<li><tt>&lt; 1; ! [-1, 0]</tt></li>" + "<li><tt>[Jane, Doe]</tt></li>" + "<li><tt>&lt;&gt; [1, -1]; = 0</tt></li>"); }  @Override void init(Presenter presenter); @Override Presenter getPresenter(); @Override void setRuleCheatSheetContent(); @Override void setDMNCheatSheetContent(); @Override void reset();  }