java.lang.Object
org.jpo.gui.CameraDownloadWizardData
This class was designed to hold the data that the
CameraDownloadWizard
needs. It is made accessible to all Wizard
steps.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Component to which the wizard should be "set relative" to.returns the Camera from which the pictures are to be read.boolean
Returns whether to copy or move the pictures in the Wizard.Returns the description for the new group.Returns the new pictures identified by the wizard.boolean
returns whether a new Group should be created.Returns the sort Code choiceReturns the target directory for the downloadSets the target node for the picture download.Returns the TreeModel of the collection for which the Wizard is running.void
setAnchorFrame
(Component newAnchorComponent) The Component to which the wizard should be "set relative" to.void
sets the Camera from which the pictures are to be read.void
setCopyMode
(boolean copyMode) Sets whether to copy or move the pictures from the camera to the computer.void
setNewGroupDescription
(String newGroupDescription) Sets the name for the new group, if a new group should be created.void
setNewPictures
(Collection<File> newPictures) Sets the Collection of new Pictures.void
setShouldCreateNewGroup
(boolean createNewGroup) Sets whether to create a new Group or not.void
setSortCode
(Settings.FieldCodes sortCode) Sets the sort Code choicevoid
setTargetDir
(File targetDir) Remembers the target directory for the downloadvoid
setTargetNode
(SortableDefaultMutableTreeNode targetNode) Returns the target node of the picture download.
-
Constructor Details
-
CameraDownloadWizardData
public CameraDownloadWizardData()
-
-
Method Details
-
setCamera
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
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
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
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
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
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
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 theshouldCreateNewGroup
flag has been set a new group is created, otherwise this String will not be used.- Parameters:
newGroupDescription
- name for the new Group
-
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
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
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
Returns the target node of the picture download.- Parameters:
targetNode
- The target node for the import operation- See Also:
-
setSortCode
Sets the sort Code choice- Parameters:
sortCode
- the new sort code
-
getSortCode
Returns the sort Code choice- Returns:
- the sort code
-
getTargetDir
Returns the target directory for the download- Returns:
- the target directory
-
setTargetDir
Remembers the target directory for the download- Parameters:
targetDir
- the target directory
-