class RuleSelector extends Composite implements HasValueChangeHandlers<String>,
                   HasEnabled {

    public void setRuleName(final String ruleName) {
        if (ruleName != null && !ruleName.isEmpty()) {
            if (ruleNamesLoaded) {
                ruleNameSelector.setValue(ruleName);
            } else {
                onRulesLoadedCommand = Optional.of(() -> setRuleName(ruleName));
            }
        }
    }

    public  RuleSelector();

}