Package org.drools.guvnor.client.common

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


        return new DSLDateSelector( value,
                                    parts[1] );
    }

    public Widget getLabel(String labelDef) {
        Label label = new SmallLabel();
        label.setText( labelDef.trim() );

        return label;
    }
View Full Code Here


                                             } ) );


            grid.setWidget( 0,
                            0,
                            new SmallLabel( constants.Workspaces() ) );
            grid.setWidget( 0,
                            2,
                            new SmallLabel( "Workspace: Available Modules" ) );
            grid.setWidget( 0,
                            3,
                            new SmallLabel( "" ) );
            grid.setWidget( 0,
                            4,
                            new SmallLabel( "Workspace: Selected Modules" ) );
            grid.setWidget( 1,
                            0,
                            availableWorkspacesListBox );
            grid.setWidget( 1,
                            2,
View Full Code Here

                }
            } );
        }

        HorizontalPanel created = new HorizontalPanel();
        created.add( new SmallLabel( constants.AfterColon() ) );
        final DatePickerTextBox createdAfter = new DatePickerTextBox( "" );
        created.add( createdAfter );

        created.add( new SmallLabel( " " ) ); // NON-NLS

        created.add( new SmallLabel( constants.BeforeColon() ) );
        final DatePickerTextBox createdBefore = new DatePickerTextBox( "" );
        created.add( createdBefore );

        fm.addAttribute( constants.DateCreated1(),
                created );

        HorizontalPanel lastMod = new HorizontalPanel();
        lastMod.add( new SmallLabel( constants.AfterColon() ) );
        final DatePickerTextBox lastModAfter = new DatePickerTextBox( "" );
        lastMod.add( lastModAfter );

        lastMod.add( new SmallLabel( " " ) ); // NON-NLS

        lastMod.add( new SmallLabel( constants.BeforeColon() ) );
        final DatePickerTextBox lastModBefore = new DatePickerTextBox( "" );
        lastMod.add( lastModBefore );

        fm.addAttribute( constants.LastModified1(),
                lastMod );
View Full Code Here

                                                           }
                                                       } );

                    g.setWidget( i + 1,
                                 1,
                                 new SmallLabel( p ) );
                    g.setWidget( i + 1,
                                 2,
                                 del );
                }
View Full Code Here

        for ( int i = 0; i < data.getCategories().length; i++ ) {
            final int idx = i;

            list.setWidget( i,
                            0,
                            new SmallLabel( data.getCategories()[i] ) );
            if ( !readOnly ) {

                Image del = new ImageButton( images.trash() );
                del.setTitle( constants.RemoveThisCategory() );
                del.addClickHandler( new ClickHandler() {
View Full Code Here

        }
        lastCount = ls.size();
    }

    private Widget appendComment(DiscussionRecord r) {
        SmallLabel hrd = new SmallLabel( constants.smallCommentBy0On1Small(r.author,
                                                        new Date( r.timestamp )) );
        hrd.addStyleName( "discussion-header" );
        commentList.add( hrd );

        String[] parts = r.note.split( "\n" );

        if ( parts.length > 0 ) {
View Full Code Here

                                             } ) );


            grid.setWidget( 0,
                            0,
                            new SmallLabel( constants.Workspaces() ) );
            grid.setWidget( 0,
                            2,
                            new SmallLabel( "Workspace: Available Modules" ) );
            grid.setWidget( 0,
                            3,
                            new SmallLabel( "" ) );
            grid.setWidget( 0,
                            4,
                            new SmallLabel( "Workspace: Selected Modules" ) );
            grid.setWidget( 1,
                            0,
                            availableWorkspacesListBox );
            grid.setWidget( 1,
                            2,
View Full Code Here

                aboutPop.setTitle( constants.About() );
                String hhurl = GWT.getModuleBaseURL()
                               + "webdav";
                aboutPop.addAttribute( constants.WebDAVURL()
                                               + ":",
                                       new SmallLabel( "<b>"
                                                       + hhurl
                                                       + "</b>" ) );
                aboutPop.addAttribute( constants.Version()
                                               + ":",
                                       aboutInfoFrame );
View Full Code Here

        if (this.readOnly) {
            layout.addStyleName("editor-disabled-widget");
        }

        String desc = modeller.getModel().getLHSBindingType(model.variableName) + " [" + model.variableName + "]";
        layout.add(new SmallLabel(HumanReadable.getActionDisplayName("retract") + "&nbsp;<b>" + desc + "</b>"));

        //This widget couldn't be modified.
        this.setModified(false);

        initWidget(layout);
View Full Code Here

        ActionGlobalCollectionAdd gca = (ActionGlobalCollectionAdd) action;
        SimplePanel sp = new SimplePanel();
        sp.setStyleName("model-builderInner-Background"); //NON-NLS
        Constants constants = ((Constants) GWT.create(Constants.class));
        sp.add(new SmallLabel("&nbsp;" + constants.AddXToListY(gca.factName, gca.globalName)));

        if (this.readOnly) {
            this.layout.addStyleName("editor-disabled-widget");
            sp.addStyleName("editor-disabled-widget");
        }
View Full Code Here

TOP

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

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.