Examples of Constants


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

        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

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

        }
        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

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

    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

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("&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

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

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

    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

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

        });

        VerticalPanel vert = new VerticalPanel();

        Image lhsOptions = new ImageButton(images.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 = new ImageButton(images.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 VerticalPanel panel = new VerticalPanel();

        HorizontalPanel hp = new HorizontalPanel();

        Constants constants = GWT.create(Constants.class);
        hp.add(new SmallLabel(constants.FactTypes()));
        hp.add(new ClickableLabel(constants.hide(),
                new ClickHandler() {
                    public void onClick(com.google.gwt.event.dom.client.ClickEvent event) {
                        panel.setVisible(false);
                    }
                }));
View Full Code Here

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/view_source.gif", //NON-NLS
                                                       Format.format( constants.ViewingSourceFor0(),
                                                                      name ),
                                                       new Integer( 600 ),
                                                       Boolean.FALSE );

        String[] rows = content.split( "\n" );
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.