@Test public void checkSetup() { verify(ruleNameSelector, times(1)).setEnabled(eq(false)); verify(ruleNameSelector, times(1)).removeStyleName(eq(Styles.FORM_CONTROL)); verifyRulesAddedToList(new Assertion(RuleSelector.NONE_SELECTED, "")); }
@Override public void setEnabled(final boolean enabled) { ruleNameSelector.setEnabled(enabled); }
RuleSelector extends Composite implements HasValueChangeHandlers<String>,
                   HasEnabled { @Override public void setEnabled(final boolean enabled) { ruleNameSelector.setEnabled(enabled); } }
RuleSelector extends Composite implements HasValueChangeHandlers<String>,
                   HasEnabled { @Override public void setEnabled(final boolean enabled) { ruleNameSelector.setEnabled(enabled); } RuleSelector(); }
RuleSelector extends Composite implements HasValueChangeHandlers<String>,
                   HasEnabled { @Override public void setEnabled(final boolean enabled) { ruleNameSelector.setEnabled(enabled); } RuleSelector(); void setRuleNames(final Collection<String> ruleNames,
                             final String exclude); void setRuleNames(final Collection<String> ruleNames); String getRuleName(); void setRuleName(final String ruleName); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); @Override boolean isEnabled(); @Override void setEnabled(final boolean enabled); }
RuleSelector extends Composite implements HasValueChangeHandlers<String>,
                   HasEnabled { @Override public void setEnabled(final boolean enabled) { ruleNameSelector.setEnabled(enabled); } RuleSelector(); void setRuleNames(final Collection<String> ruleNames,
                             final String exclude); void setRuleNames(final Collection<String> ruleNames); String getRuleName(); void setRuleName(final String ruleName); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); @Override boolean isEnabled(); @Override void setEnabled(final boolean enabled); final static String NONE_SELECTED; }