Sha256: 505ddc049317ddcc6654aef30a0c493f90af070e484fbca249dd799c817e950e

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 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.CreateFileModelEvent.CreateFileModelHandler;
import com.dldinternet.aws.cfn.stacker.desktopapp.client.persistence.FileModel;
import com.dldinternet.aws.cfn.stacker.desktopapp.client.persistence.FileModel.FileType;

public class CreateFileModelEvent extends GwtEvent<CreateFileModelHandler> {

  public interface CreateFileModelHandler extends EventHandler {
    void onCreateFileModel(CreateFileModelEvent event);
  }

  public static Type<CreateFileModelHandler> TYPE = new Type<CreateFileModelHandler>();
  private FileModel parentFileModel;
  private FileType fileType;

  public CreateFileModelEvent(FileModel parentFileModel, FileType fileType) {
    this.parentFileModel = parentFileModel;
    this.fileType = fileType;
  }

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

  public FileType getFileType() {
    return fileType;
  }

  public FileModel getParentFileModel() {
    return parentFileModel;
  }

  @Override
  protected void dispatch(CreateFileModelHandler handler) {
    handler.onCreateFileModel(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/CreateFileModelEvent.java