|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.usefullittlethings.saw.apps.shared.AbstractSearchController | +--com.usefullittlethings.saw.apps.file.FileSearchController
Controller class for locating and returning a list of File
or File[]
objects, with options for searchnig sub-folders.
Supports BLOCK
searching (files grouped by folder),
LINEAR
searching (files returned one-at-a-time), and
SINGLE_BLOCK
searching (all files at once).
Also support command-line interaction.
Field Summary | |
static int[] |
DEFAULT_SEARCH_PREFERENCES
|
static java.lang.String |
VERSION
|
Fields inherited from interface com.usefullittlethings.saw.controller.SearchControllerIfc |
CLASS_NAME |
Constructor Summary | |
FileSearchController()
Returns a new file search controller instance. |
Method Summary | |
void |
begin()
Invoked before the search operation begins. |
void |
configure(java.lang.String[] args)
Configures the state of the plug-in based on the command-line parameters passed in. |
java.lang.String |
getAppTitle()
Returns the application title for this search plug-in. |
java.lang.Class |
getResultClass()
Returns java.io.File . |
int[] |
getSearchPatternPreferences()
Returns SINGLE_BLOCK , BLOCK , and
LINEAR , respectively. |
java.lang.String |
getSearchPatternSummary()
Returns a comma-delimitted string representing the current search pattern preferences for this plug-in. |
SearchRootUIIfc |
getSearchRootUI()
Returns the user interface component for this plug-in. |
java.lang.String |
getUnixName()
Returns the unique name of the plug-in. |
boolean |
hasMoreResults()
Returns a boolean indicating if there are any more blocks to be retrieved in the search. |
java.lang.Object |
next()
Invoked to get the next block of items in the search. |
void |
search(int pattern)
Invoked when the search operation begins. |
void |
setSearchPatternPreferences(int[] preferences)
Attempts to set the search pattern preferences |
boolean |
supports(int pattern)
Returns a boolean indicating whether or not the specified search pattern is supported by the plug-in. |
java.lang.String |
toString()
Returns a string representation of the plug-in. |
java.lang.String |
toXMLString(int pad)
Returns an xml representation of the plug-in's state. |
void |
update(java.lang.String xml)
Sets the configuration of the plug-in based on the contents of the specified xml string. |
Methods inherited from class com.usefullittlethings.saw.apps.shared.AbstractSearchController |
getBase, setAppController |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.usefullittlethings.saw.controller.SearchControllerIfc |
getBase, setAppController |
Field Detail |
public static final java.lang.String VERSION
public static int[] DEFAULT_SEARCH_PREFERENCES
Constructor Detail |
public FileSearchController()
Method Detail |
public SearchRootUIIfc getSearchRootUI()
getSearchRootUI
in interface SearchControllerIfc
public java.lang.String getAppTitle()
getAppTitle
in interface SearchControllerIfc
public java.lang.Class getResultClass()
java.io.File
.
getResultClass
in interface SearchControllerIfc
public void begin()
begin
in interface SearchControllerIfc
public void search(int pattern) throws UnsupportedPatternException
search
in interface SearchControllerIfc
UnsupportedPatternException
public java.lang.Object next()
next
in interface SearchControllerIfc
public boolean hasMoreResults()
hasMoreResults
in interface SearchControllerIfc
public void update(java.lang.String xml) throws java.text.ParseException
update
in interface SearchControllerIfc
java.text.ParseException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXMLString(int pad)
toXMLString
in interface SearchControllerIfc
public java.lang.String getUnixName()
getUnixName
in interface SearchControllerIfc
public void configure(java.lang.String[] args) throws ArgumentException
configure
in interface SearchControllerIfc
ArgumentException
public java.lang.String getSearchPatternSummary()
getSearchPatternSummary
in interface SearchControllerIfc
public boolean supports(int pattern)
supports
in interface SearchControllerIfc
public int[] getSearchPatternPreferences()
SINGLE_BLOCK
, BLOCK
, and
LINEAR
, respectively.
getSearchPatternPreferences
in interface SearchControllerIfc
public void setSearchPatternPreferences(int[] preferences) throws java.lang.Exception
setSearchPatternPreferences
in interface SearchControllerIfc
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |