Examples of ClickableLabel


Examples of org.drools.guvnor.client.common.ClickableLabel

        if ( pattern.getPatterns() == null || pattern.getPatterns().length == 0 ) {
            lbl += " <font color='red'>" + constants.clickToAddPatterns() + "</font>";
        }

        return new ClickableLabel( lbl + ":",
                                   click,
                                   !this.readOnly );
    }
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

        clear();

        setWidget( 0,
                   0,
                   new ClickableLabel( headerText,
                                       addFieldClickHandler() ) );

        if ( definitionList.size() == 0 ) {
            parent.renderEditor();
        }
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel


        int r = 0;

        if (pattern.getFactPattern() == null) {
            panel.setWidget(r++, 0, new ClickableLabel("<br> <font color='red'>" + constants.clickToAddPattern() + "</font>", leftPatternclick, !this.readOnly));
        }


        panel.setWidget(r++, 0, new HTML(lbl));

        if (this.getFromAccumulatePattern().getSourcePattern() == null) {
            panel.setWidget(r++, 0, new ClickableLabel("<br> <font color='red'>" + constants.clickToAddPattern() + "</font>", sourcePatternClick, !this.readOnly));
        } else {
            IPattern rPattern = this.getFromAccumulatePattern()
                    .getSourcePattern();

            if (rPattern instanceof FactPattern) {
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

        final VerticalPanel panel = new VerticalPanel();

        HorizontalPanel hp = new HorizontalPanel();

        hp.add( new SmallLabel( constants.FactTypes() ) );
        hp.add( new ClickableLabel( constants.hide(),
                                    new ClickHandler() {
                                        public void onClick(com.google.gwt.event.dom.client.ClickEvent event) {
                                            panel.setVisible( false );
                                        }
                                    } ) );
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

            final int tmp1 = currentLayoutRow;
            final int tmp2 = currentLayoutRow + 1;

            final RuleModeller self = this;
            if ( !this.showingOptions ) {
                ClickableLabel showMoreOptions = new ClickableLabel( "(show options...)",
                                                                     new ClickHandler() {

                                                                         public void onClick(ClickEvent event) {
                                                                             showingOptions = true;
                                                                             layout.setWidget( tmp1,
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

        DirtyableFlexTable panel = new DirtyableFlexTable();

        int r = 0;

        if (pattern.getFactPattern() == null) {
            panel.setWidget(r++, 0, new ClickableLabel("<br> <font color='red'>" + constants.clickToAddPatterns() + "</font>", leftPatternclick, !this.readOnly));
        }


        panel.setWidget(r++, 0, new HTML(lbl));

        if (this.getFromCollectPattern().getRightPattern() == null) {
            panel.setWidget(r++, 0, new ClickableLabel("<br> <font color='red'>" + constants.clickToAddPatterns() + "</font>", rightPatternclick, !this.readOnly));
        } else {
            IPattern rPattern = this.getFromCollectPattern().getRightPattern();

            RuleModellerWidget patternWidget = null;
            if (rPattern instanceof FactPattern) {
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

        DirtyableFlexTable panel = new DirtyableFlexTable();

        int r = 0;

        if ( pattern.getFactPattern() == null ) {
            panel.setWidget( r, 0, new ClickableLabel( "<br> <font color='red'>" + constants.clickToAddPatterns() + "</font>", click, !this.readOnly ) );
            r++;
        }

        panel.setWidget( r, 0, new HTML( lbl ) );
        this.expressionBuilder = new ExpressionBuilder( this.getModeller(), this.pattern.getExpression(), this.readOnly );
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

            desc = constants.AnyOf() + ":";
        }

        t.setWidget( 0,
                     0,
                     new ClickableLabel( desc,
                                         click,
                                         !this.readOnly ) );
        t.getFlexCellFormatter().setColSpan( 0,
                                             0,
                                             2 );
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

            }
            desc = anA( desc,
                        patternName );
        }

        return new ClickableLabel( desc,
                                   click,
                                   !this.readOnly );
    }
View Full Code Here

Examples of org.drools.guvnor.client.common.ClickableLabel

                                                         con,
                                                         fields,
                                                         popupCreator );
                    }
                };
                ClickableLabel cl = new ClickableLabel( con.getFieldName(),
                                                        click,
                                                        !this.readOnly );
                DOM.setStyleAttribute( cl.getElement(),
                                       "marginLeft",
                                       "" + padding + "pt" ); //NON-NLS
                ab.add( cl );
            } else {
                ab.add( new SmallLabel( con.getFieldName() ) );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.