Package org.kie.workbench.common.widgets.client.ruleselector

Examples of org.kie.workbench.common.widgets.client.ruleselector.RuleSelector


        layout.setWidget( currentLayoutRow,
                0,
                new SmallLabel( "<b>" + Constants.INSTANCE.EXTENDS() + "</b>" ) );


        RuleSelector ruleSelector = new RuleSelector(dataModel);
        ruleSelector.setRuleName(model.parentName);
        ruleSelector.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
                model.parentName = event.getValue();
            }
        });
View Full Code Here


                                            List<String> ruleNames ) {

        HorizontalPanel result = new HorizontalPanel();
        result.add( new Label( GuidedDecisionTableConstants.INSTANCE.AllTheRulesInherit() ) );

        RuleSelector ruleSelector = new RuleSelector( ruleNames );
        ruleSelector.setRuleName( model.getParentName() );
        ruleSelector.addValueChangeHandler( new ValueChangeHandler<String>() {
            @Override
            public void onValueChange( ValueChangeEvent<String> event ) {
                model.setParentName( event.getValue() );
            }
        } );
View Full Code Here

        layout.setWidget( currentLayoutRow,
                0,
                new SmallLabel( "<b>" + Constants.INSTANCE.EXTENDS() + "</b>" ) );


        RuleSelector ruleSelector = new RuleSelector(dataModel);
        ruleSelector.setRuleName(model.parentName);
        ruleSelector.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
                model.parentName = event.getValue();
            }
        });
View Full Code Here

    private Widget getRuleInheritancePanel(final GuidedDecisionTable52 model, List<String> ruleNames) {

        HorizontalPanel result = new HorizontalPanel();
        result.add( new Label( GuidedDecisionTableConstants.INSTANCE.AllTheRulesInherit() ) );

        RuleSelector ruleSelector = new RuleSelector(ruleNames);
        ruleSelector.setRuleName( model.getParentName() );
        ruleSelector.addValueChangeHandler( new ValueChangeHandler<String>() {
            @Override
            public void onValueChange( ValueChangeEvent<String> event ) {
                model.setParentName( event.getValue() );
            }
        } );
View Full Code Here

                                            final GuidedDecisionTable52 model ) {

        HorizontalPanel result = new HorizontalPanel();
        result.add( new Label( GuidedDecisionTableConstants.INSTANCE.AllTheRulesInherit() ) );

        RuleSelector ruleSelector = new RuleSelector( oracle );
        ruleSelector.setRuleName( model.getParentName() );
        ruleSelector.addValueChangeHandler( new ValueChangeHandler<String>() {
            @Override
            public void onValueChange( ValueChangeEvent<String> event ) {
                model.setParentName( event.getValue() );
            }
        } );
View Full Code Here

    private void addExtendedRuleDropdown( Collection<String> ruleNames ) {
        layout.setWidget( currentLayoutRow,
                          0,
                          new SmallLabel( "<b>" + Constants.INSTANCE.EXTENDS() + "</b>" ) );

        RuleSelector ruleSelector = new RuleSelector( ruleNames, model.name );
        ruleSelector.setRuleName( model.parentName );
        ruleSelector.addValueChangeHandler( new ValueChangeHandler<String>() {
            @Override
            public void onValueChange( ValueChangeEvent<String> event ) {
                model.parentName = event.getValue();
            }
        } );
View Full Code Here

    private void addExtendedRuleDropdown( Collection<String> ruleNames ) {
        layout.setWidget( currentLayoutRow,
                          0,
                          new SmallLabel( "<b>" + Constants.INSTANCE.EXTENDS() + "</b>" ) );

        RuleSelector ruleSelector = new RuleSelector( ruleNames, model.name );
        ruleSelector.setRuleName( model.parentName );
        ruleSelector.addValueChangeHandler( new ValueChangeHandler<String>() {
            @Override
            public void onValueChange( ValueChangeEvent<String> event ) {
                model.parentName = event.getValue();
            }
        } );
View Full Code Here

    private void addExtendedRuleDropdown(Collection<String> ruleNames) {
        layout.setWidget( currentLayoutRow,
                0,
                new SmallLabel( "<b>" + Constants.INSTANCE.EXTENDS() + "</b>" ) );

        RuleSelector ruleSelector = new RuleSelector(ruleNames, model.name);
        ruleSelector.setRuleName(model.parentName);
        ruleSelector.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
                model.parentName = event.getValue();
            }
        });
View Full Code Here

TOP

Related Classes of org.kie.workbench.common.widgets.client.ruleselector.RuleSelector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.