Examples of Constants


Examples of org.drools.guvnor.client.messages.Constants

    public ValidationMessageWidget(String heading,
                                   String body) {

        super(images.attentionNeeded(),
                heading);
        Constants constants = ((Constants) GWT.create(Constants.class));
        addAttribute(constants.Detail(),
                details(body));
    }
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

        });

        VerticalPanel vert = new VerticalPanel();

        Image lhsOptions = GuvnorImages.INSTANCE.NewDSLPattern();
        Constants constants = GWT.create(Constants.class);
        final String msg = constants.AddANewCondition();
        lhsOptions.setTitle(msg);
        lhsOptions.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showSuggestions(conditions);
            }
        });

        Image rhsOptions = GuvnorImages.INSTANCE.NewDSLAction();
        final String msg2 = constants.AddAnAction();
        rhsOptions.setTitle(msg2);
        rhsOptions.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showSuggestions(actions);
            }
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

        });

        final FlexTable table = new FlexTable();

        VerticalPanel vp = new VerticalPanel();
        Constants constants = GWT.create(Constants.class);
        vp.add(new SmallLabel(constants.FactTypes()));
        vp.add(factsCombo);
        table.setWidget(0,
                0,
                vp);

        vp = new VerticalPanel();
        vp.add(new SmallLabel(constants.Field()));
        vp.add(fieldsCombo);
        table.setWidget(1,
                0,
                vp);

        vp = new VerticalPanel();
        vp.add(new SmallLabel("Custom Form URL:")); //TODO i18n

        Button btnUpdateURL = new Button(constants.OK(),
                new ClickHandler() {
                    public void onClick(ClickEvent event) {

                        int w;
                        int h;
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

        }

        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( " " + constants.AddXToListY( gca.factName,
                                                                  gca.globalName ) ) );

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

Examples of org.drools.guvnor.client.messages.Constants

                                EventBus eventBus) {
        super(asset,
                viewer,
                clientFactory,
                eventBus);
        Constants constants = GWT.create(Constants.class);
        super.addDescription(new HTML("<small><i>" + constants.RuleFlowUploadTip() + "</i></small>")); //NON-NLS
    }
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

        setGlassEnabled(true);
        this.sentences = sen;
        filter = new TextBox();
        filter.setWidth("100%");
        Constants constants = ((Constants) GWT.create(Constants.class));
        final String defaultMessage = constants.enterTextToFilterList();
        filter.setText(defaultMessage);
        filter.addFocusHandler(new FocusHandler() {
            public void onFocus(FocusEvent event) {
                filter.setText("");
            }
        });

        filter.addBlurHandler(new BlurHandler() {
            public void onBlur(BlurEvent event) {
                filter.setText(defaultMessage);
            }
        });

        filter.addKeyUpHandler(new KeyUpHandler() {
            public void onKeyUp(KeyUpEvent event) {
                if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
                    applyChoice(self);
                } else {
                    populateList(ListUtil.filter(sentences,
                            filter.getText()));
                }
            }

        });
        filter.setFocus(true);

        VerticalPanel panel = new VerticalPanel();
        panel.add(filter);

        list = new ListBox();
        list.setVisibleItemCount(5);

        populateList(ListUtil.filter(this.sentences,
                ""));

        panel.add(list);

        Button ok = new Button(constants.OK());
        ok.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                applyChoice(self);
            }
        });

        Button cancel = new Button(constants.Cancel());
        cancel.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                hide();
            }
        });
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

        bottomPanel.add( createCloseAllButton() );
        return bottomPanel;
    }

    private Button createCloseAllButton() {
        Constants constants = GWT.create( Constants.class );
        Button button = new Button( constants.CloseAllItems() );
        button.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent event) {
                eventBus.fireEvent( new CloseAllPlacesEvent() );
            }
        } );
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

    public CheckinPopup(String message) {
        setTitle(message);
        comment = new TextArea();
        comment.setWidth("100%");
        Constants constants = ((Constants) GWT.create(Constants.class));
        comment.setTitle(constants.AddAnOptionalCheckInComment());

        save = new Button(constants.CheckIn());
        addRow(comment);
        addRow(save);

    }
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

     * Return a listbox of choices for rule attributes.
     *
     * @return
     */
    public static ListBox getAttributeList() {
        Constants cons = ((Constants) GWT.create( Constants.class ));
        ListBox list = new ListBox();
        list.addItem( cons.Choose() );

        list.addItem( SALIENCE_ATTR );
        list.addItem( ENABLED_ATTR );
        list.addItem( DATE_EFFECTIVE_ATTR );
        list.addItem( DATE_EXPIRES_ATTR );
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

        add(new NewDataButton(previousEx,
                scenario,
                executionTrace,
                scenarioWidget));
        Constants constants = ((Constants) GWT.create(Constants.class));
        add(new SmallLabel(constants.GIVEN()));

    }
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.