Package org.drools.guvnor.client.messages

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


    /**
     * Popup the view source dialog, showing the given content.
     */
    public static void showSource(final String content,
                                  String name) {
        Constants constants = GWT.create( Constants.class );
        final FormStylePopup pop = new FormStylePopup( images.viewSource(),
                                                        constants.ViewingSourceFor0( name ),
                                                       new Integer( 600 ) );

        String[] rows = content.split( "\n" );

        FlexTable table = new FlexTable();
View Full Code Here


     * 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

        form.endSection();
        initWidget( form );
    }

    public static ListBox getDatabaseList() {
        Constants cons = ((Constants) GWT.create( Constants.class ));
        ListBox list = new ListBox();
        list.addItem( cons.Choose() );

        list.addItem( "Microsoft SQL Server",
                      "mssql" );
        list.addItem( "MySQL",
                      "mysql" );
View Full Code Here

    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

    public EventLogViewImpl() {

        PrettyFormLayout pf = new PrettyFormLayout();

        VerticalPanel header = new VerticalPanel();
        Constants constants = ((Constants) GWT.create(Constants.class));
        Label caption = new Label(constants.ShowRecentLogTip());
        caption.getElement().getStyle().setFontWeight(FontWeight.BOLD);
        header.add(caption);

        pf.addHeader(images.eventLogLarge(),
                header);
View Full Code Here

                                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

        form.endSection();
        initWidget( form );
    }

    public static ListBox getDatabaseList() {
        Constants cons = ((Constants) GWT.create( Constants.class ));
        ListBox list = new ListBox();
        list.addItem( cons.Choose() );

        list.addItem( "Microsoft SQL Server",
                      "mssql" );
        list.addItem( "MySQL",
                      "mysql" );
View Full Code Here

        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

        }
        years.setSelectedIndex(50);
        horizontalPanel.add(years);

        // Add months
        Constants constants = ((Constants) GWT.create(Constants.class));
        months.addItem(constants.January());
        months.addItem(constants.February());
        months.addItem(constants.March());
        months.addItem(constants.April());
        months.addItem(constants.May());
        months.addItem(constants.June());
        months.addItem(constants.July());
        months.addItem(constants.August());
        months.addItem(constants.September());
        months.addItem(constants.October());
        months.addItem(constants.November());
        months.addItem(constants.December());

        months.addChangeHandler(new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                fillDates();
            }
        });

        horizontalPanel.add(months);

        // Add dates
        fillDates();
        horizontalPanel.add(dates);

        showTime = hasTime(formatter);
        if (showTime) {
            // Hours
            for (int i = 0; i < 24; i++) {
                hours.addItem(Integer.toString(i));
            }
            horizontalPanel.add(timeHyphenLabel);
            horizontalPanel.add(hours);

            // Minutes
            for (int i = 0; i < 60; i++) {
                minutes.addItem(Integer.toString(i));
            }
            horizontalPanel.add(timeColonLabel);
            horizontalPanel.add(minutes);
        }

        Button okButton = new Button(constants.OK());
        okButton.addClickHandler(okClickHandler);
        horizontalPanel.add(okButton);

        add(horizontalPanel);
    }
View Full Code Here

    public void testCache() throws Exception {


        //need to proxy out the constants.
        Constants cs = (Constants) Proxy.newProxyInstance(this.getClass().getClassLoader(), new Class[] {Constants.class}, new ConstantsProxy());

        final SuggestionCompletionCache cache = new SuggestionCompletionCache(cs) {

            public void loadPackage(String packageName,
                             Command command) {
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.messages.Constants

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.