Package org.springframework.richclient.application.event

Examples of org.springframework.richclient.application.event.LifecycleApplicationEvent


  public void publishCreated( @NotNull Object object ) {
    publishEvent( new LifecycleApplicationEvent( LifecycleApplicationEvent.CREATED, object ) );
  }

  public void publishDeleted( @NotNull Object object ) {
    publishEvent( new LifecycleApplicationEvent( LifecycleApplicationEvent.DELETED, object ) );
  }
View Full Code Here


  public void publishDeleted( @NotNull Object object ) {
    publishEvent( new LifecycleApplicationEvent( LifecycleApplicationEvent.DELETED, object ) );
  }

  public void publishModified( @NotNull Object object ) {
    publishEvent( new LifecycleApplicationEvent( LifecycleApplicationEvent.MODIFIED, object ) );
  }
View Full Code Here

  public void onApplicationEvent( ApplicationEvent event ) {
    if ( !( event instanceof LifecycleApplicationEvent ) ) {
      return;
    }

    LifecycleApplicationEvent lifecycleEvent = ( LifecycleApplicationEvent ) event;
    if ( !type.isAssignableFrom( lifecycleEvent.getObject().getClass() ) ) {
      return;
    }

    @NonNls
    String eventType = ( ( LifecycleApplicationEvent ) event ).getEventType();
    if ( LifecycleApplicationEvent.CREATED.equals( eventType ) || LifecycleApplicationEvent.DELETED.equals( eventType ) || LifecycleApplicationEvent.MODIFIED.equals( eventType ) ) {
      handle( this.type.cast( lifecycleEvent.getObject() ), lifecycleEvent );
    }
  }
View Full Code Here

    if ( !( event instanceof LifecycleApplicationEvent ) ) {
      return;
    }

    LifecycleApplicationEvent lifecycleEvent = ( LifecycleApplicationEvent ) event;

    Object object = lifecycleEvent.getObject();
    if ( lifecycleEvent.getEventType().equals( LifecycleApplicationEvent.MODIFIED ) ) {
      handleModified( object );
    } else if ( lifecycleEvent.getEventType().equals( LifecycleApplicationEvent.DELETED ) ) {
      handleDeleted( object );
    } else if ( lifecycleEvent.getEventType().equals( LifecycleApplicationEvent.CREATED ) ) {
      handleCreated( object );
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.application.event.LifecycleApplicationEvent

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.