Examples of OpenFileEvent


Examples of br.com.jteam.jfcm.controller.event.OpenFileEvent

  {
    if (event.getClass().equals(OpenHistoryFileEvent.class)) {
      OpenHistoryFileEvent historyEvent = (OpenHistoryFileEvent) event;
      createScrollPane(historyEvent.getPresentationFile());
    } else if (event.getClass().equals(OpenFileEvent.class)) {
      OpenFileEvent openEvent = (OpenFileEvent) event;
      createScrollPane(openEvent.getPresentationFile());
    }
  }
View Full Code Here

Examples of br.com.jteam.jfcm.controller.event.OpenFileEvent

  private void openFile(File file)
  {
    try {
      PresentationFile<?> presentationFile = adapter.openZipContent(file.getAbsolutePath());
      EventDispatchService eventService = EventDispatchService.getInstance();
      eventService.fireEvent(new OpenFileEvent(presentationFile));
      eventService.fireEvent(new UpdateFileHistoryEvent());
    } catch (FileListContentAdapterException e) {
      JOptionPane.showMessageDialog(null, BaseBundle.getValue("error.openning.file"));
    }
  }
View Full Code Here

Examples of com.taobao.zeus.web.platform.client.module.filemanager.OpenFileEvent

  @Override
  public void handle(PlatformPlaceChangeEvent event) {
    open(event.getNewPlace().getCurrent().value, new PlatformAsyncCallback<FileModel>() {
      @Override
      public void callback(FileModel t) {
        context.getPlatformBus().fireEvent(new OpenFileEvent(t));
      }
    });
  }
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.