Package org.uberfire.client.common

Examples of org.uberfire.client.common.SmallLabel


                        g.setWidget(row,
                                0,
                                getEventImage(lg[0]));
                        g.setWidget(row,
                                1,
                                new SmallLabel(lg[1]));
                    } else {
                        g.setWidget(row,
                                1,
                                hz(getEventImage(lg[0]),
                                        new SmallLabel(lg[1])));
                    }
                    row++;
                } else if (id == 6) {
                    firing = true;
                    g.setWidget(row,
                            0,
                            getEventImage(lg[0]));
                    g.setWidget(row,
                            1,
                            new SmallLabel("<b>" + lg[1] + "</b>"));
                    row++;
                } else if (id == 7) {
                    firing = false;
                } else {
                    g.setWidget(row,
                            0,
                            getEventImage(lg[0]));
                    g.setWidget(row,
                            1,
                            new SmallLabel("<font color='grey'>" + lg[1] + "</font>"));
                    row++;
                }
            } else {
                g.setWidget(row,
                        0,
                        new Image(AuditEventsImages.INSTANCE.miscEvent()));
                g.setWidget(row,
                        1,
                        new SmallLabel("<font color='grey'>" + lg[1] + "</font>"));
                row++;
            }
        }
        vp.add(g);
        vp.add(new HTML("<hr/>"));
View Full Code Here


                widgets( lit,
                        new InfoPopup( TestScenarioConstants.INSTANCE.LiteralValue(),
                                TestScenarioConstants.INSTANCE.LiteralValTip() ) ) );

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

        // If we are here, then there must be a bound variable compatible with
        // me

        Button variable = new Button( TestScenarioConstants.INSTANCE.BoundVariable() );
View Full Code Here

                HasHorizontalAlignment.ALIGN_CENTER,
                HasVerticalAlignment.ALIGN_MIDDLE);
        outer.setStyleName("modeller-fact-pattern-Widget");
        outer.setWidget(0,
                0,
                new SmallLabel(TestScenarioConstants.INSTANCE.ActivateRuleFlowGroup()));
        outer.getFlexCellFormatter().setColSpan(0,
                0,
                2);

        int row = 1;
        for (Fixture fixture : retList) {
            final ActivateRuleFlowGroup acticateRuleFlowGroup = (ActivateRuleFlowGroup) fixture;
            outer.setWidget( row,
                             0,
                             new SmallLabel( acticateRuleFlowGroup.getName() ) );
            Image image = CommonAltedImages.INSTANCE.DeleteItemSmall();
            image.setAltText(TestScenarioConstants.INSTANCE.RemoveThisRuleFlowActivation());
            ImageButton del = new ImageButton(image,
                    TestScenarioConstants.INSTANCE.RemoveThisRuleFlowActivation(),
                    new ClickHandler() {
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

                    showAddFieldPopup( w );

                }
            } );

            horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + mCall.getVariable() + "]" ) ); // NON-NLS
            horiz.add( edit );
        } else {
            horiz.add( new SmallLabel( HumanReadable.getActionDisplayName( "call" ) + " [" + mCall.getVariable() + "." + mCall.getMethodName() + "]" ) ); // NON-NLS
        }

        return horiz;
    }
View Full Code Here

            }
        };
    }

    private Widget fieldSelector(final CallFieldValue val) {
        return new SmallLabel( val.type );
    }
View Full Code Here

                previousEx,
                scenario,
                executionTrace,
                scenarioWidget,
                dmo));
        add(new SmallLabel(TestScenarioConstants.INSTANCE.CALL()));

    }
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

        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

TOP

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