Package org.drools.guvnor.client.rpc

Examples of org.drools.guvnor.client.rpc.CategoryServiceAsync


    private void renameSelected() {

        String name = Window.prompt( constants.CategoryNewNamePleaseEnter(),
                                     "" );
        if ( name != null ) {
            CategoryServiceAsync categoryService = GWT.create(CategoryService.class);
            categoryService.renameCategory( explorer.getSelectedPath(),
                                                                  name,
                                                                  new GenericCallback<java.lang.Void>() {
                                                                      public void onSuccess(Void v) {
                                                                          Window.alert( constants.CategoryRenamed() );
                                                                          explorer.refresh();
View Full Code Here


        }
    }

    private void deleteSelected() {
        if ( Window.confirm( constants.AreYouSureYouWantToDeleteCategory() + explorer.getSelectedPath() ) ) {
            CategoryServiceAsync categoryService = GWT.create(CategoryService.class);
            categoryService.removeCategory( explorer.getSelectedPath(),
                                                                  new GenericCallback<java.lang.Void>() {

                                                                      public void onSuccess(Void v) {
                                                                          explorer.refresh();
                                                                      }
View Full Code Here

        };

        if ( "".equals( this.name.getText() ) ) {
            ErrorPopup.showMessage( constants.CanNotHaveAnEmptyCategoryName() );
        } else {
            CategoryServiceAsync categoryService = GWT.create(CategoryService.class);
            categoryService.createCategory( path,
                                                                  name.getText(),
                                                                  description.getText(),
                                                                  cb );

        }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.rpc.CategoryServiceAsync

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.