Package com.zerog.ia.auto.project.panels
Class FindFileOrFolderPanel
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.panels.InstallPanelAction
-
- com.zerog.ia.auto.project.panels.FindFileOrFolderPanel
-
- All Implemented Interfaces:
Referenceable
public final class FindFileOrFolderPanel extends InstallPanelAction
This panel implements a search process that, depending on specifications made by the setup author, searches portions of the file system for a specific named file or for a file that matches a certain pattern. The end user can also choose a matching file.
-
-
Constructor Summary
Constructors Constructor Description FindFileOrFolderPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAllowRemoteDisk()
gets the status of the search procedure's ability to search on mounted, remote volumesboolean
getAllowsUserOverride()
MMA - 2001.09.25 Get whether or not the user is allowed to pre-empt searching and choose an item manually.java.lang.String
getAskPrompt()
gets the prompt for the file dialog used when multiple results are returned from a search.java.lang.String
getFilenamePattern()
gets the filename pattern for search.FileFileOrFolderFindType
getFindType()
gets the current type of disk entities to search for.boolean
getIsMatchTypeRegExpression()
gets the status on whether the action is matching the search pattern with regular expression.DestinationFolder
getMagicFolder()
gets the magic folderint
getMagicFolderId()
an id for the magic folderFileFileOrFolderOnMultiResults
getOnMultiResult()
gets FindFileOrFolder's instructions on how to react to a multiple result search.FileFileOrFolderOnZeroResults
getOnZeroResult()
gets the action's instructions on how to react to an unsuccessful search.java.lang.String
getPathTail()
gets the path tailFileFileOrFolderReturnType
getReturnType()
gets return type of the searchboolean
getUseRecursion()
Get the status of the use of recursion in the disk searching procedure.java.lang.String
getVariableName()
gets the name of the Variable Manager variable which will hold the single path of the search resultsvoid
setAllowRemoteDisk(boolean status)
sets to allow the search procedure to search on mounted, remote volumesvoid
setAllowsUserOverride(boolean override)
MMA - 2001.09.25 Allow the user to pre-empt searching and choose an item manually (or not).void
setAskPrompt(java.lang.String prompt)
sets the prompt for the file dialog used when multiple results are returned from a search.void
setFilenamePattern(java.lang.String pattern)
set the filename pattern for search.void
setFindType(FileFileOrFolderFindType type)
sets the type of disk entities to search for.void
setIsMatchTypeRegExpression(boolean whether)
sets the action by matching the search pattern with regular expression.void
setMagicFolder(DestinationFolder folder)
sets the magic foldervoid
setMagicFolderId(int MagicFolderId)
an id for the magic foldervoid
setOnMultiResult(FileFileOrFolderOnMultiResults reaction)
sets this action on how to react to a multiple result search.void
setOnZeroResult(FileFileOrFolderOnZeroResults reaction)
Sets this action how to react to an unsuccessful search.void
setPathTail(java.lang.String path)
sets the path tail to start searching from.void
setReturnType(FileFileOrFolderReturnType type)
sets return type of the searchvoid
setUseRecursion(boolean status)
sets the disk searching procedure to use recursion (or not).void
setVariableName(java.lang.String name)
sets the name of the Variable Manager variable which will hold the single path of the search results-
Methods inherited from class com.zerog.ia.auto.project.panels.InstallPanelAction
getArchivesSigned, getDependencies, getHelp, getImage, getImageOption, getInstallPanelClassName, getLabelIndex, getLabelOption, getResource, setArchivesSigned, setDependencies, setHelp, setImage, setImageOption, setInstallPanelClassName, setLabelIndex, setLabelOption, setResource
-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
setOnZeroResult
public void setOnZeroResult(FileFileOrFolderOnZeroResults reaction)
Sets this action how to react to an unsuccessful search.- Parameters:
reaction
- can be set toASK_WITH_DIALOG
orRETURN_EMPTY
.
-
getOnZeroResult
public FileFileOrFolderOnZeroResults getOnZeroResult()
gets the action's instructions on how to react to an unsuccessful search.- Returns:
- the integers
ASK_WITH_DIALOG
orRETURN_EMPTY
.
-
setOnMultiResult
public void setOnMultiResult(FileFileOrFolderOnMultiResults reaction)
sets this action on how to react to a multiple result search.- Parameters:
reaction
- can be set toRETURN_FIRST
,RETURN_LIST
orASK_WITH_DIALOG
.
-
getOnMultiResult
public FileFileOrFolderOnMultiResults getOnMultiResult()
gets FindFileOrFolder's instructions on how to react to a multiple result search.- Returns:
- the integers
RETURN_FIRST
,RETURN_LIST
orASK_WITH_DIALOG
.
-
setFilenamePattern
public void setFilenamePattern(java.lang.String pattern)
set the filename pattern for search.- Parameters:
String
- the filename or regular expression to use in searching
-
getFilenamePattern
public java.lang.String getFilenamePattern()
gets the filename pattern for search.- Returns:
- the filename or regular expression to search for.
-
getMagicFolder
public DestinationFolder getMagicFolder()
gets the magic folder- Returns:
- the magic folder
-
setMagicFolder
public void setMagicFolder(DestinationFolder folder)
sets the magic folder- Parameters:
folder
- a disk path
-
setPathTail
public void setPathTail(java.lang.String path)
sets the path tail to start searching from. This is what would go on the right of the magic folder.- Parameters:
path
- a partial path
-
getPathTail
public java.lang.String getPathTail()
gets the path tail- Returns:
- the path tail
-
setUseRecursion
public void setUseRecursion(boolean status)
sets the disk searching procedure to use recursion (or not).- Parameters:
status
- can betrue
orfalse
-
getAllowsUserOverride
public boolean getAllowsUserOverride()
MMA - 2001.09.25 Get whether or not the user is allowed to pre-empt searching and choose an item manually.- Returns:
- boolean
true
orfalse
-
setAllowsUserOverride
public void setAllowsUserOverride(boolean override)
MMA - 2001.09.25 Allow the user to pre-empt searching and choose an item manually (or not).- Parameters:
status
- can betrue
orfalse
-
getUseRecursion
public boolean getUseRecursion()
Get the status of the use of recursion in the disk searching procedure.- Returns:
- boolean
true
orfalse
-
setAllowRemoteDisk
public void setAllowRemoteDisk(boolean status)
sets to allow the search procedure to search on mounted, remote volumes- Parameters:
status
- can betrue
orfalse
-
getAllowRemoteDisk
public boolean getAllowRemoteDisk()
gets the status of the search procedure's ability to search on mounted, remote volumes- Returns:
- boolean
true
orfalse
-
setFindType
public void setFindType(FileFileOrFolderFindType type)
sets the type of disk entities to search for.- Parameters:
type
- can beFIND_TYPE_ALL
,FIND_TYPE_FILE
,FIND_TYPE_FOLDER
orFIND_TYPE_APPLICATION
.
-
getFindType
public FileFileOrFolderFindType getFindType()
gets the current type of disk entities to search for.- Returns:
FIND_TYPE_ALL
,FIND_TYPE_FILE
,FIND_TYPE_FOLDER
orFIND_TYPE_APPLICATION
.
-
setReturnType
public void setReturnType(FileFileOrFolderReturnType type)
sets return type of the search
-
getReturnType
public FileFileOrFolderReturnType getReturnType()
gets return type of the search
-
setAskPrompt
public void setAskPrompt(java.lang.String prompt)
sets the prompt for the file dialog used when multiple results are returned from a search.- Parameters:
prompt
- a promptString
.
-
getAskPrompt
public java.lang.String getAskPrompt()
gets the prompt for the file dialog used when multiple results are returned from a search.- Returns:
- the prompt
String
.
-
setVariableName
public void setVariableName(java.lang.String name)
sets the name of the Variable Manager variable which will hold the single path of the search results- Parameters:
variableName
- aString
which holds the name of the variable.
-
getVariableName
public java.lang.String getVariableName()
gets the name of the Variable Manager variable which will hold the single path of the search results- Returns:
- a
String
of name of the Variable Manager variable.
-
getIsMatchTypeRegExpression
public boolean getIsMatchTypeRegExpression()
gets the status on whether the action is matching the search pattern with regular expression.
-
setIsMatchTypeRegExpression
public void setIsMatchTypeRegExpression(boolean whether)
sets the action by matching the search pattern with regular expression.
-
getMagicFolderId
public int getMagicFolderId()
an id for the magic folder
-
setMagicFolderId
public void setMagicFolderId(int MagicFolderId)
an id for the magic folder
-
-