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

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


    } else if (event.getClass().equals(ShowImageEvent.class)) {
      ShowImageEvent ev = (ShowImageEvent) event;
      imageViewerPanel.setImage(ev.getImage());
      setContent(imageViewerPanel);
    } else if (event.getClass().equals(ShowTextEvent.class)) {
      ShowTextEvent ev = (ShowTextEvent) event;
      textAreaViewerPanel.setText(ev.getContent());
      setContent(textAreaViewerPanel);
    }
  }
View Full Code Here


      if (preparedFile.isImageFile()) {
        Image image = (Image) preparedFile.getContent();
        dispatchService.fireEvent(new ShowImageEvent(image));
      } else if (preparedFile.isTextFile()) {
        String text = (String) preparedFile.getContent();
        dispatchService.fireEvent(new ShowTextEvent(text));
      }
    } catch (ShowFileContentAdapterException e) {
      JOptionPane.showMessageDialog(null, BaseBundle.getValue("error.unknow.file.type"));
    }
  }
View Full Code Here

TOP

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

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.