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 booleangetAllowRemoteDisk()gets the status of the search procedure's ability to search on mounted, remote volumesbooleangetAllowsUserOverride()MMA - 2001.09.25 Get whether or not the user is allowed to pre-empt searching and choose an item manually.java.lang.StringgetAskPrompt()gets the prompt for the file dialog used when multiple results are returned from a search.java.lang.StringgetFilenamePattern()gets the filename pattern for search.FileFileOrFolderFindTypegetFindType()gets the current type of disk entities to search for.booleangetIsMatchTypeRegExpression()gets the status on whether the action is matching the search pattern with regular expression.DestinationFoldergetMagicFolder()gets the magic folderintgetMagicFolderId()an id for the magic folderFileFileOrFolderOnMultiResultsgetOnMultiResult()gets FindFileOrFolder's instructions on how to react to a multiple result search.FileFileOrFolderOnZeroResultsgetOnZeroResult()gets the action's instructions on how to react to an unsuccessful search.java.lang.StringgetPathTail()gets the path tailFileFileOrFolderReturnTypegetReturnType()gets return type of the searchbooleangetUseRecursion()Get the status of the use of recursion in the disk searching procedure.java.lang.StringgetVariableName()gets the name of the Variable Manager variable which will hold the single path of the search resultsvoidsetAllowRemoteDisk(boolean status)sets to allow the search procedure to search on mounted, remote volumesvoidsetAllowsUserOverride(boolean override)MMA - 2001.09.25 Allow the user to pre-empt searching and choose an item manually (or not).voidsetAskPrompt(java.lang.String prompt)sets the prompt for the file dialog used when multiple results are returned from a search.voidsetFilenamePattern(java.lang.String pattern)set the filename pattern for search.voidsetFindType(FileFileOrFolderFindType type)sets the type of disk entities to search for.voidsetIsMatchTypeRegExpression(boolean whether)sets the action by matching the search pattern with regular expression.voidsetMagicFolder(DestinationFolder folder)sets the magic foldervoidsetMagicFolderId(int MagicFolderId)an id for the magic foldervoidsetOnMultiResult(FileFileOrFolderOnMultiResults reaction)sets this action on how to react to a multiple result search.voidsetOnZeroResult(FileFileOrFolderOnZeroResults reaction)Sets this action how to react to an unsuccessful search.voidsetPathTail(java.lang.String path)sets the path tail to start searching from.voidsetReturnType(FileFileOrFolderReturnType type)sets return type of the searchvoidsetUseRecursion(boolean status)sets the disk searching procedure to use recursion (or not).voidsetVariableName(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_DIALOGorRETURN_EMPTY.
-
getOnZeroResult
public FileFileOrFolderOnZeroResults getOnZeroResult()
gets the action's instructions on how to react to an unsuccessful search.- Returns:
- the integers
ASK_WITH_DIALOGorRETURN_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_LISTorASK_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_LISTorASK_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 betrueorfalse
-
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
trueorfalse
-
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 betrueorfalse
-
getUseRecursion
public boolean getUseRecursion()
Get the status of the use of recursion in the disk searching procedure.- Returns:
- boolean
trueorfalse
-
setAllowRemoteDisk
public void setAllowRemoteDisk(boolean status)
sets to allow the search procedure to search on mounted, remote volumes- Parameters:
status- can betrueorfalse
-
getAllowRemoteDisk
public boolean getAllowRemoteDisk()
gets the status of the search procedure's ability to search on mounted, remote volumes- Returns:
- boolean
trueorfalse
-
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_FOLDERorFIND_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_FOLDERorFIND_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- aStringwhich 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
Stringof 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
-
-