Package org.drools.guvnor.client.messages

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


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

        // Add months
        ConstantsCore constants = ((ConstantsCore) GWT.create(ConstantsCore.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


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

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

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

    public EventLogViewImpl() {

        PrettyFormLayout pf = new PrettyFormLayout();

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

        pf.addHeader(GuvnorImages.INSTANCE.EventLog(),
                header);
View Full Code Here

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

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

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

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

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

    public ValidationMessageWidget(String heading,
                                   String body) {

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

    public EventLogViewImpl() {

        PrettyFormLayout pf = new PrettyFormLayout();

        VerticalPanel header = new VerticalPanel();
        ConstantsCore constants = ((ConstantsCore) GWT.create(ConstantsCore.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

    public ValidationMessageWidget(String heading,
                                   String body) {

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

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

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

    }
View Full Code Here

TOP

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

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.