Module org.jpo
Package org.jpo.gui

Class PictureFileChooser

java.lang.Object
org.jpo.gui.PictureFileChooser
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class PictureFileChooser extends Object implements PropertyChangeListener
This controller class brings up a Filechooser which allows the user to select pictures and directories. If the user clicks OK the pictures and subdirectories are added to the previously indicated group node.
  • Constructor Details

    • PictureFileChooser

      public PictureFileChooser(ChooseAndAddPicturesToGroupRequest request)
      Construct the PictureFileChooser and show it.
      Parameters:
      request - The ChooseAndAddPicturesToGroupRequest which has a link to the node that should be added to. It must be a GroupInfo Node.
  • Method Details

    • propertyChange

      public void propertyChange(PropertyChangeEvent changeEvent)
      This method is invoked from the FileChooser and creates the thumbnail as a preview in the chooser window
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      changeEvent - The event from the FileChooser that changed