Package org.drools.guvnor.client.common

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.INSTANCE.clickToAddPatterns() + "</font>",
                                                 click,
                                                 !this.readOnly ) );
            r++;
        }
View Full Code Here


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

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

            }
            desc = anA( desc,
                        patternName );
        }

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

                                                     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

        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

        }

        widget.setWidget(
                0,
                0,
                new ClickableLabel(headerText,
                        createAddFieldButton(fact)));

        Map<FieldData, FieldDataConstraintEditor> enumEditorMap
                = new HashMap<FieldData, FieldDataConstraintEditor>();
        // Sets row name and delete button.
View Full Code Here

        final String resourceElement = "<drools:resource type=\"PKG\" source=\"{url}\" basicAuthentication='enabled' username='|' password=''/>";
       
        final TreeItem packageItem = new TreeItem(packageConfigData.getName());

        TreeItem leafItem = new TreeItem(new ClickableLabel("LATEST", new LeafClickHandler(packageConfigData.getName(), resourceElement.replace("{url}", PackageBuilderWidget.getDownloadLink(packageConfigData)))));
       
        packageItem.addItem(leafItem);

        ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
                            moduleService.listSnapshots(packageConfigData.getName(), new AsyncCallback<SnapshotInfo[]>() {

                                public void onFailure(Throwable caught) {
                                    ErrorPopup.showMessage("Error listing snapshots information!");
                                }

                                public void onSuccess(SnapshotInfo[] result) {
                                    for (int j = 0; j < result.length; j++) {
                                        final SnapshotInfo snapshotInfo = result[j];
                                        ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
                                        moduleService.loadModule(snapshotInfo.getUuid(), new AsyncCallback<Module>() {

                                            public void onFailure(Throwable caught) {
                                                ErrorPopup.showMessage("Error listing snapshots information!");
                                            }

                                            public void onSuccess(Module result) {
                                                TreeItem leafItem = new TreeItem(new ClickableLabel(snapshotInfo.getName(), new LeafClickHandler(packageConfigData.getName(), resourceElement.replace("{url}", PackageBuilderWidget.getDownloadLink(result)))));
                                                packageItem.addItem(leafItem);
                                            }
                                        });

                                    }
View Full Code Here

        final HorizontalPanel hpShow = new HorizontalPanel();

        Constants constants = GWT.create(Constants.class);

        hpShow.add(new ClickableLabel(constants.ShowFactTypes(),
                new ClickHandler() {
                    public void onClick(com.google.gwt.event.dom.client.ClickEvent event) {
                        hpShow.setVisible(false);
                        hpFactsAndHide.setVisible(true);
                        tree.setVisible(true);
                    }
                }));
        panel.add(hpShow);


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

        final String resourceElement = "<drools:resource type=\"PKG\" source=\"{url}\" basicAuthentication='enabled' username='|' password=''/>";
       
        final TreeItem packageItem = new TreeItem(packageConfigData.getName());

        TreeItem leafItem = new TreeItem(new ClickableLabel("LATEST", new LeafClickHandler(packageConfigData.getName(), resourceElement.replace("{url}", PackageBuilderWidget.getDownloadLink(packageConfigData)))));
       
        packageItem.addItem(leafItem);

        RepositoryServiceFactory.getPackageService().listSnapshots(packageConfigData.getName(), new AsyncCallback<SnapshotInfo[]>()    {

            public void onFailure(Throwable caught) {
                ErrorPopup.showMessage("Error listing snapshots information!");
            }

            public void onSuccess(SnapshotInfo[] result) {
                for (int j = 0; j < result.length; j++) {
                    final SnapshotInfo snapshotInfo = result[j];
                    RepositoryServiceFactory.getPackageService().loadPackageConfig( snapshotInfo.getUuid(), new AsyncCallback<PackageConfigData>()    {

                        public void onFailure(Throwable caught) {
                            ErrorPopup.showMessage("Error listing snapshots information!");
                        }

                        public void onSuccess(PackageConfigData result) {
                            TreeItem leafItem = new TreeItem(new ClickableLabel( snapshotInfo.getName(), new LeafClickHandler(packageConfigData.getName(), resourceElement.replace("{url}", PackageBuilderWidget.getDownloadLink(result)))));
                            packageItem.addItem(leafItem);
                        }
                    });

                }
View Full Code Here


        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();

            RuleModellerWidget sourcePatternWidget;
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.common.ClickableLabel

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.