|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.usefullittlethings.saw.ui.CommandLineSearchUI
Basic implementation of the SearchUIIfc
and
StartupUIIfcM
interfaces for use on a command-line.
many features are not fully implemented such as show
and dispose
.
SearchUIIfc
,
StartupUIIfc
Constructor Summary | |
CommandLineSearchUI()
|
Method Summary | |
void |
addActionUI(int index,
java.awt.Component c,
java.lang.String title)
Adds the action's ui to the user interface. |
void |
addFilterUI(int index,
java.awt.Component c,
java.lang.String title)
Adds the filter's ui to the user interface. |
void |
disableForSearch()
Tells the user interface to stop accepting user input for the duration of a search operation. |
void |
dispose()
Disposes of this ui component, only to be used when application is exiting. |
void |
done(java.lang.String msg)
Disposes of this ui component, only to be used when application is completely loaded and splash screen will no longer be used. |
void |
enableAfterSearch()
Tells the user interface to start accepting user input at the completion of a search operation. |
void |
fatal(java.lang.String msg)
Displays a fatal error for the user. |
java.io.File |
getOpenFromLocation()
Displays an open dialog and returns the selection. |
java.io.File |
getSaveToLocation()
Displays a save dialog and returns the selection. |
StartupUIIfc |
getStartupUI()
|
void |
message(java.lang.String msg)
Displays the specified message in the startup window/splash screen. |
void |
removeActionUI(java.awt.Component c)
Removes the ui of the filter specified by the index from the user interface. |
void |
removeFilterUI(java.awt.Component c)
Removes the ui of the filter specified by the index from the user interface. |
void |
setActionsModel(PluginCollection model)
Used to set a reference to the actions model within the ui. |
void |
setActionSummary(java.lang.String summary)
Sets a summary of the actions' configuration in the ui. |
void |
setAppTitle(java.lang.String title)
Sets the application title to the specified value. |
void |
setController(AppControllerIfc controller)
Registers the application-level controller with the user interface to receive application-level events, such as exit requests, etc. |
void |
setFiltersModel(PluginCollection model)
Used to set a reference to the filters model within the ui. |
void |
setFilterSummary(java.lang.String summary)
Sets a summary of the filters' configuration in the ui. |
void |
setSearchRootUI(SearchRootUIIfc root)
Installs the "panel" responsible for handling selection of the root location for the search to be performed. |
void |
show()
Displays the ui. |
boolean |
showConfirmInterrupt()
Shows the user a confirmation prompt to determine if the currently executing search should be stopped. |
void |
showLoadError()
Display an error for the user indicating that the load process failed. |
void |
showNoCommonSupportError()
Displays the an error indicating that there is no single search pattern supported by both the search plug-in and the selected filter/action plug-ins. |
void |
showStatusMessage(java.lang.String message)
Displays feedback to the user, such as in the status bar of a window. |
void |
updateUI()
Updates the user interface to reflect any changes that may have occurred in the model. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommandLineSearchUI()
Method Detail |
public StartupUIIfc getStartupUI()
getStartupUI
in interface SearchUIIfc
public void setController(AppControllerIfc controller)
SearchUIIfc
setController
in interface SearchUIIfc
public void showNoCommonSupportError()
SearchUIIfc
showNoCommonSupportError
in interface SearchUIIfc
public void showStatusMessage(java.lang.String message)
SearchUIIfc
showStatusMessage
in interface SearchUIIfc
public java.io.File getSaveToLocation()
SearchUIIfc
getSaveToLocation
in interface SearchUIIfc
public java.io.File getOpenFromLocation()
SearchUIIfc
getOpenFromLocation
in interface SearchUIIfc
public void showLoadError()
SearchUIIfc
showLoadError
in interface SearchUIIfc
public void message(java.lang.String msg)
StartupUIIfc
message
in interface StartupUIIfc
msg
- A text message to display for the userpublic void fatal(java.lang.String msg)
StartupUIIfc
fatal
in interface StartupUIIfc
msg
- A text message describing the error condition that aborted the
application's load processpublic void done(java.lang.String msg)
StartupUIIfc
done
in interface StartupUIIfc
public void show()
SearchUIIfc
show
in interface SearchUIIfc
public void dispose()
SearchUIIfc
dispose
in interface SearchUIIfc
public void updateUI()
SearchUIIfc
updateUI
in interface SearchUIIfc
public void setAppTitle(java.lang.String title)
SearchUIIfc
setAppTitle
in interface SearchUIIfc
public void setSearchRootUI(SearchRootUIIfc root)
SearchUIIfc
setSearchRootUI
in interface SearchUIIfc
public void disableForSearch()
SearchUIIfc
disableForSearch
in interface SearchUIIfc
public void enableAfterSearch()
SearchUIIfc
enableAfterSearch
in interface SearchUIIfc
public void setFiltersModel(PluginCollection model)
SearchUIIfc
setFiltersModel
in interface SearchUIIfc
public void setActionsModel(PluginCollection model)
SearchUIIfc
setActionsModel
in interface SearchUIIfc
public void setFilterSummary(java.lang.String summary)
SearchUIIfc
setFilterSummary
in interface SearchUIIfc
public void setActionSummary(java.lang.String summary)
SearchUIIfc
setActionSummary
in interface SearchUIIfc
public void addFilterUI(int index, java.awt.Component c, java.lang.String title)
SearchUIIfc
addFilterUI
in interface SearchUIIfc
public void addActionUI(int index, java.awt.Component c, java.lang.String title)
SearchUIIfc
addActionUI
in interface SearchUIIfc
public void removeFilterUI(java.awt.Component c)
SearchUIIfc
removeFilterUI
in interface SearchUIIfc
public void removeActionUI(java.awt.Component c)
SearchUIIfc
removeActionUI
in interface SearchUIIfc
public boolean showConfirmInterrupt()
SearchUIIfc
showConfirmInterrupt
in interface SearchUIIfc
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |