Package br.com.jteam.jfcm.controller.event

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


  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

TOP

Related Classes of br.com.jteam.jfcm.controller.event.OpenFileEvent

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.