Examples of ClickableLabel


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

                                                     con,
                                                     fields,
                                                     popupCreator );
                }
            };
            ClickableLabel cl = new ClickableLabel( bindingLabel.toString(),
                                                    click,
                                                    !this.readOnly );
            DOM.setStyleAttribute( cl.getElement(),
                                   "marginLeft",
                                   "" + padding + "pt" );
            ab.add( cl );
        } else {
            ab.add( new SmallLabel( bindingLabel.toString() ) );
View Full Code Here

Examples of org.kie.uberfire.client.common.ClickableLabel

        outer.setStyleName( "modeller-fact-pattern-Widget" ); //NON-NLS
        this.oracle = oracle;
        this.scenario = sc;
        this.executionTrace = executionTrace;
        HorizontalPanel ab = new HorizontalPanel();
        ClickableLabel label = null;

        final ClickHandler handler = new ClickHandler() {
            public void onClick( ClickEvent w ) {

                final ListBox b = new ListBox();
                VerifyFactWidget.this.oracle.getFieldCompletions( type,
                                                                  new Callback<ModelField[]>() {
                                                                      @Override
                                                                      public void callback( final ModelField[] fields ) {
                                                                          for ( int i = 0; i < fields.length; i++ ) {
                                                                              b.addItem( fields[ i ].getName() );
                                                                          }
                                                                      }
                                                                  } );

                final FormStylePopup pop = new FormStylePopup( TestScenarioAltedImages.INSTANCE.RuleAsset(),
                                                               TestScenarioConstants.INSTANCE.ChooseAFieldToAdd() );
                pop.addRow( b );
                pop.add( new ModalFooterOKCancelButtons( new Command() {
                    @Override
                    public void execute() {
                        String f = b.getItemText( b.getSelectedIndex() );
                        vf.getFieldValues().add( new VerifyField( f,
                                                                  "",
                                                                  "==" ) );
                        FlexTable data = render( vf );
                        outer.setWidget( 1,
                                         0,
                                         data );
                        pop.hide();
                    }
                }, new Command() {
                    @Override
                    public void execute() {
                        pop.hide();
                    }
                }
                ) );

                pop.show();

            }
        };

        if ( !vf.anonymous ) {
            type = (String) sc.getVariableTypes().get( vf.getName() );
            label = new ClickableLabel( TestScenarioConstants.INSTANCE.scenarioFactTypeHasValues( type,
                                                                                                  vf.getName() ),
                                        handler );
        } else {
            type = vf.getName();
            label = new ClickableLabel( TestScenarioConstants.INSTANCE.AFactOfType0HasValues( vf.getName() ),
                                        handler );
        }
        ab.add( label );
        this.showResults = showResults;
View Full Code Here

Examples of org.uberfire.client.common.ClickableLabel

        int r = 0;

        if ( pattern.getFactPattern() == null ) {
            panel.setWidget( r++,
                             0,
                             new ClickableLabel( "<br> <font color='red'>" + Constants.INSTANCE.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.INSTANCE.clickToAddPattern() + "</font>",
                                                 sourcePatternClick,
                                                 !this.readOnly ) );
        } else {
            IPattern rPattern = this.getFromAccumulatePattern().getSourcePattern();
View Full Code Here

Examples of org.uberfire.client.common.ClickableLabel

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

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

Examples of org.uberfire.client.common.ClickableLabel

            desc = Constants.INSTANCE.AnyOf() + ":";
        }

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

Examples of org.uberfire.client.common.ClickableLabel

            }
            desc = anA( desc,
                        patternName );
        }

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

Examples of org.uberfire.client.common.ClickableLabel

                                                     con,
                                                     fields,
                                                     popupCreator );
                }
            };
            ClickableLabel cl = new ClickableLabel( bindingLabel.toString(),
                                                    click,
                                                    !this.readOnly );
            DOM.setStyleAttribute( cl.getElement(),
                                   "marginLeft",
                                   "" + padding + "pt" );
            ab.add( cl );
        } else {
            ab.add( new SmallLabel( bindingLabel.toString() ) );
View Full Code Here

Examples of org.uberfire.client.common.ClickableLabel

        int r = 0;

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

Examples of org.uberfire.client.common.ClickableLabel

            showBindingPopUp();
        }
    }

    private ClickableLabel createWidgetForExpression( String text ) {
        ClickableLabel label = new ClickableLabel( text,
                                                   slch,
                                                   !this.readOnly );
        return label;
    }
View Full Code Here

Examples of org.uberfire.client.common.ClickableLabel

        int r = 0;

        if ( pattern.getFactPattern() == null ) {
            panel.setWidget( r++,
                             0,
                             new ClickableLabel( "<br> <font color='red'>" + Constants.INSTANCE.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.INSTANCE.clickToAddPatterns() + "</font>",
                                                 rightPatternclick,
                                                 !this.readOnly ) );
        } else {
            IPattern rPattern = this.getFromCollectPattern().getRightPattern();
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.