Module org.jpo
Package org.jpo.gui

Class CameraDownloadWizardData

java.lang.Object
org.jpo.gui.CameraDownloadWizardData

public class CameraDownloadWizardData extends Object
This class was designed to hold the data that the CameraDownloadWizard needs. It is made accessible to all Wizard steps.
See Also:
  • Constructor Details

    • CameraDownloadWizardData

      public CameraDownloadWizardData()
  • Method Details

    • setCamera

      public void setCamera(Camera camera)
      sets the Camera from which the pictures are to be read. This is required.
      Parameters:
      camera - The camera from which the pictures are to be read.
      See Also:
    • getCamera

      public Camera getCamera()
      returns the Camera from which the pictures are to be read.
      Returns:
      the camera from which the pictures are to be read.
      See Also:
    • setAnchorFrame

      public void setAnchorFrame(Component newAnchorComponent)
      The Component to which the wizard should be "set relative" to. Is not required but visually more appealing in set correctly. If it is not set it will be null and the JVM will probably set the Wizard to the coordinates 0/0.
      Parameters:
      newAnchorComponent - The component that the Wizard should be set relative to.
    • getAnchorFrame

      public Component getAnchorFrame()
      Returns the Component to which the wizard should be "set relative" to. If it is not set it will return null and the JVM will probably set the Wizard to the coordinates 0/0.
      Returns:
      The component that the Wizard should be set relative to.
    • setNewPictures

      public void setNewPictures(Collection<File> newPictures)
      Sets the Collection of new Pictures. This is set by the Wizard when it identifies the new pictures on the camera.
      Parameters:
      newPictures - A Collection of picture files
    • getNewPictures

      public Collection<File> getNewPictures()
      Returns the new pictures identified by the wizard.
      Returns:
      The collection of new picture files.
    • setCopyMode

      public void setCopyMode(boolean copyMode)
      Sets whether to copy or move the pictures from the camera to the computer. This does not have to be set before calling the wizard. By default, the operation is set to copy.
      Parameters:
      copyMode - Set to true if the wizard should copy the pictures, false if it should move them.
    • getCopyMode

      public boolean getCopyMode()
      Returns whether to copy or move the pictures in the Wizard.
      Returns:
      true if the pictures should be copied, false if they should be moved.
    • setNewGroupDescription

      public void setNewGroupDescription(String newGroupDescription)
      Sets the name for the new group, if a new group should be created. If this is not set a default of "Download date" is proposed. Calling this method can change that name. If the shouldCreateNewGroup flag has been set a new group is created, otherwise this String will not be used.
      Parameters:
      newGroupDescription - name for the new Group
    • getNewGroupDescription

      public String getNewGroupDescription()
      Returns the description for the new group.
      Returns:
      the description of the new group.
    • setShouldCreateNewGroup

      public void setShouldCreateNewGroup(boolean createNewGroup)
      Sets whether to create a new Group or not.
      Parameters:
      createNewGroup - set to true to create a new group node or false if not desired
    • getShouldCreateNewGroup

      public boolean getShouldCreateNewGroup()
      returns whether a new Group should be created.
      Returns:
      true if a new group should be created, false if not.
      See Also:
    • getTreeModel

      public TreeModel getTreeModel()
      Returns the TreeModel of the collection for which the Wizard is running.
      Returns:
      the treemodel for the collection which is used by the wizard
    • getTargetNode

      public SortableDefaultMutableTreeNode getTargetNode()
      Sets the target node for the picture download. Will be set by the wizard
      Returns:
      the target node for the picture being added
      See Also:
    • setTargetNode

      public void setTargetNode(SortableDefaultMutableTreeNode targetNode)
      Returns the target node of the picture download.
      Parameters:
      targetNode - The target node for the import operation
      See Also:
    • setSortCode

      public void setSortCode(Settings.FieldCodes sortCode)
      Sets the sort Code choice
      Parameters:
      sortCode - the new sort code
    • getSortCode

      public Settings.FieldCodes getSortCode()
      Returns the sort Code choice
      Returns:
      the sort code
    • getTargetDir

      public File getTargetDir()
      Returns the target directory for the download
      Returns:
      the target directory
    • setTargetDir

      public void setTargetDir(File targetDir)
      Remembers the target directory for the download
      Parameters:
      targetDir - the target directory