Package org.drools.guvnor.client.messages

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


    /**
     * 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

    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

        });

        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

        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

    /**
     * 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

     * 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

    private DropDownValueChanged valueChanged;

    public EnumDropDown(final String currentValue,
                        final DropDownValueChanged valueChanged,
                        final DropDownData dropData) {
        final Constants cs = GWT.create( Constants.class );

        this.valueChanged = valueChanged;

        addChangeListener( new ChangeListener() {
            public void onChange(Widget w) {
                valueChanged.valueChanged( getItemText( getSelectedIndex() ),
                                           getValue( getSelectedIndex() ) );
            }
        } );

        //if we have to do it lazy, we will hit up the server when the widget gets focus
        if ( dropData.fixedList == null && dropData.queryExpression != null ) {
            DeferredCommand.addCommand( new Command() {
                public void execute() {
                    LoadingPopup.showMessage( cs.RefreshingList() );
                    RepositoryServiceFactory.getService().loadDropDownExpression( dropData.valuePairs,
                                                                                  dropData.queryExpression,
                                                                                  new GenericCallback() {
                                                                                      public void onSuccess(Object data) {
                                                                                          LoadingPopup.close();
                                                                                          String[] list = (String[]) data;

                                                                                          if ( list.length == 0 ) {
                                                                                              list = new String[]{cs.UnableToLoadList()};
                                                                                          }

                                                                                          fillDropDown( currentValue,
                                                                                                        list );
                                                                                      }

                                                                                      public void onFailure(Throwable t) {
                                                                                          LoadingPopup.close();
                                                                                          //just do an empty drop down...
                                                                                          fillDropDown( currentValue,
                                                                                                        new String[]{cs.UnableToLoadList()} );
                                                                                      }
                                                                                  } );
                }
            } );
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

    /**
     * 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

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.