Package org.kie.uberfire.client.common

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


        add( new NewDataButton( previousEx,
                                scenario,
                                executionTrace,
                                scenarioWidget,
                                oracle ) );
        add( new SmallLabel( TestScenarioConstants.INSTANCE.GIVEN() ) );

    }
View Full Code Here


                                               HasVerticalAlignment.ALIGN_MIDDLE );
        outer.setStyleName( "modeller-fact-pattern-Widget" ); //NON-NLS

        outer.setWidget( 0,
                         0,
                         new SmallLabel( TestScenarioConstants.INSTANCE.ExpectRules() ) );
        initWidget( outer );

        FlexTable data = render( rfl,
                                 scenario );
        outer.setWidget( 1,
View Full Code Here

                }

            }
            data.setWidget( i,
                            1,
                            new SmallLabel( v.getRuleName() + ":" ) );
            data.getFlexCellFormatter().setAlignment( i,
                                                      1,
                                                      HasHorizontalAlignment.ALIGN_RIGHT,
                                                      HasVerticalAlignment.ALIGN_MIDDLE );
View Full Code Here

    }

    protected HorizontalPanel createHorizontalPanel() {
        HorizontalPanel h = new HorizontalPanel();
        h.add( new GlobalButton( getScenario(), this.scenarioWidget, oracle ) );
        h.add( new SmallLabel( TestScenarioConstants.INSTANCE.globals() ) );
        return h;
    }
View Full Code Here

        h.add( new SmallLabel( TestScenarioConstants.INSTANCE.globals() ) );
        return h;
    }

    protected SmallLabel createSmallLabel() {
        return new SmallLabel( TestScenarioConstants.INSTANCE.configuration() );
    }
View Full Code Here

            showList.addClickHandler( new ClickHandler() {

                public void onClick( ClickEvent event ) {
                    horizontalPanel.remove( showList );
                    final Image busy = new Image( ImageResources.INSTANCE.searching() );
                    final Label loading = new SmallLabel( TestScenarioConstants.INSTANCE.loadingList1() );
                    horizontalPanel.add( busy );
                    horizontalPanel.add( loading );

                    final ListBox availableRulesBox = createAvailableRulesBox();
View Full Code Here

               TestScenarioConstants.INSTANCE.FieldValue() );

        addLiteralValueSelection();

        addRow( new HTML( "<hr/>" ) );
        addRow( new SmallLabel( TestScenarioConstants.INSTANCE.AdvancedOptions() ) );

        // If we are here, then there must be a bound variable compatible with
        // me
        if ( helper.isThereABoundVariableToSet() ) {
            addBoundVariableSelection();
View Full Code Here

        if ( executionTrace.getScenarioSimulatedDate() == null ) {
            textBox.setText( "<" + format + ">" );
        } else {
            textBox.setText( DateTimeFormat.getFormat( DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT ).format( executionTrace.getScenarioSimulatedDate() ) );
        }
        final SmallLabel dateHint = new SmallLabel();
        textBox.addKeyUpHandler( new KeyUpHandler() {

            public void onKeyUp( KeyUpEvent event ) {
                try {
                    String exampleDate = DateTimeFormat.getFormat( DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT ).format( new Date() );
                    String suggestedDate = textBox.getText() + exampleDate.substring( textBox.getText().length() );
                    Date d = DateTimeFormat.getFormat( DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT ).parse( suggestedDate );
                    dateHint.setText( DateTimeFormat.getFormat( DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT ).format( d ) );
                } catch ( Exception e ) {
                    dateHint.setText( "..." );
                }
            }
        } );

        textBox.addChangeHandler( new ChangeHandler() {

            public void onChange( ChangeEvent event ) {
                if ( textBox.getText().trim().equals( "" ) ) {
                    textBox.setText( TestScenarioConstants.INSTANCE.currentDateAndTime() );
                } else {
                    try {
                        //Date d1 = new Date();
                        Date d = DateTimeFormat.getFormat( DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT ).parse( textBox.getText() );
                        executionTrace.setScenarioSimulatedDate( d );
                        textBox.setText( DateTimeFormat.getFormat( DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT ).format( d ) );
                        dateHint.setText( "" );
                    } catch ( Exception e ) {
                        ErrorPopup.showMessage( TestScenarioConstants.INSTANCE.BadDateFormatPleaseTryAgainTryTheFormatOf0( format ) );
                    }
                }
            }
View Full Code Here

        if ( fact instanceof FactData ) {
            FactData factData = (FactData) fact;
            widget.setWidget( 0,
                              ++col,
                              new SmallLabel( "[" + factData.getName() + "]" ) );
        } else {
            col++;
        }

        widget.setWidget(
View Full Code Here

        this.scenario = sc;
        this.executionTrace = executionTrace;
        HorizontalPanel ab = new HorizontalPanel();
        if ( !vf.anonymous ) {
            type = (String) sc.getVariableTypes().get( vf.getName() );
            ab.add( new SmallLabel( TestScenarioConstants.INSTANCE.scenarioFactTypeHasValues( type, vf.getName() ) ) );
        } else {
            type = vf.getName();
            ab.add( new SmallLabel( TestScenarioConstants.INSTANCE.AFactOfType0HasValues( vf.getName() ) ) );
        }
        this.showResults = showResults;

        Image add = TestScenarioAltedImages.INSTANCE.AddFieldToFact();
        add.setTitle( TestScenarioConstants.INSTANCE.AddAFieldToThisExpectation() );
View Full Code Here

TOP

Related Classes of org.kie.uberfire.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.