Package org.pentaho.mantle.client.events

Examples of org.pentaho.mantle.client.events.GenericEvent


        // if mantle_isBrowseRepoDirty=true: do getChildren call
        // if mantle_isBrowseRepoDirty=false: use stored fileBrowserModel in myself.get("cachedData")
        setBrowseRepoDirty( Boolean.TRUE );

        // BISERVER-9319 Refresh browse perspective after import
        final GenericEvent event = new GenericEvent();
        event.setEventSubType( "ImportDialogEvent" );
        EventBusUtil.EVENT_BUS.fireEvent( event );
      }
    } );

    VerticalPanel rootPanel = new VerticalPanel();
View Full Code Here


            if ( arg1.getStatusCode() == Response.SC_OK ) {
              dirty = false;
              // Refresh current folder or parent folder
              PerspectiveManager.getInstance().setPerspective( PerspectiveManager.BROWSER_PERSPECTIVE );

              GenericEvent ge = new GenericEvent();
              if ( fileName == null ) { // Filename is null, then it is a folder
                ge.setEventSubType( "RefreshFolderEvent" );
                ge.setStringParam( parentPath );
              } else {
                ge.setEventSubType( "RefreshFileEvent" );

                JSONObject strParam = new JSONObject();
                strParam.put( "path", new JSONString( parentPath ) );
                strParam.put( "fileName", new JSONString( fileName ) );

                ge.setStringParam( strParam.toString() );
              }

              EventBusUtil.EVENT_BUS.fireEvent( ge );

            } else {
View Full Code Here

        }
      } );
    } catch ( RequestException e ) {
      //IGNORE
    }
    GenericEvent event = new GenericEvent();
    event.setEventSubType( "RefreshFolderEvent" );
    event.setStringParam( outputLocation );
    EventBusUtil.EVENT_BUS.fireEvent( event );
  }
View Full Code Here

TOP

Related Classes of org.pentaho.mantle.client.events.GenericEvent

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.