Sha256: 2e814c09fb746f99abb3c99f237d875806c4722be11256eebf4a41eebcf7c36b

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

/**
 * Sencha GXT 3.1.1 - Sencha for GWT
 * Copyright(c) 2007-2014, Sencha, Inc.
 * licensing@sencha.com
 *
 * http://www.sencha.com/products/gxt/license/
 */
package com.dldinternet.aws.cfn.stacker.desktopapp.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.dldinternet.aws.cfn.stacker.desktopapp.client.event.LoginEvent.LoginHandler;

public class LoginEvent extends GwtEvent<LoginHandler> {

  public interface LoginHandler extends EventHandler {
    void onLogin(LoginEvent event);
  }

  public static Type<LoginHandler> TYPE = new Type<LoginHandler>();
  private String userName;
  private boolean isNewUser;

  public LoginEvent(String userName, boolean isNew) {
    this.userName = userName;
    this.isNewUser = isNew;
  }

  @Override
  public Type<LoginHandler> getAssociatedType() {
    return TYPE;
  }

  public String getUserName() {
    return userName;
  }

  public boolean isNewUser() {
    return isNewUser;
  }

  @Override
  protected void dispatch(LoginHandler handler) {
    handler.onLogin(this);
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-cfn-stacker-0.0.6 ui/src/com/dldinternet/aws/cfn/stacker/desktopapp/client/event/LoginEvent.java