Examples of GenericEvent


Examples of org.apache.slide.event.GenericEvent

    protected void executeRequest() throws WebdavException {
        try {
            // FIXME: Generate multi status output to give detailed information about every fired event
            if ( GenericEvent.EVENT_FIRED.isEnabled() ) {
                for ( Iterator i = eventsToFire.iterator(); i.hasNext(); ) {
                    GenericEvent event = (GenericEvent)i.next();
                    EventDispatcher.getInstance().fireEvent(GenericEvent.EVENT_FIRED, event);
                }
            }
            if ( GenericEvent.VETOABLE_EVENT_FIRED.isEnabled() ) {
                for ( Iterator i = vetoableEventsToFire.iterator(); i.hasNext(); ) {
                    GenericEvent event = (GenericEvent)i.next();
                    try {
                        EventDispatcher.getInstance().fireVetoableEvent(GenericEvent.VETOABLE_EVENT_FIRED, event);
                    } catch ( VetoException exception ) {
                        // add to multiresponse
                    }
View Full Code Here

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

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

            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

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

        }
      } );
    } catch ( RequestException e ) {
      //IGNORE
    }
    GenericEvent event = new GenericEvent();
    event.setEventSubType( "RefreshFolderEvent" );
    event.setStringParam( outputLocation );
    EventBusUtil.EVENT_BUS.fireEvent( event );
  }
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.