|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface UIAdapter connects the Session with the user interface of JSwat. It builds out the major interface components, connects them to the Session and managers, and handles most user input.
Method Summary | |
void |
buildInterface()
Construct the appropriate user interface and connect all the pieces together. |
boolean |
canFindString()
Indicate if this interface adapter has the ability to find a string in the currently selected source view. |
boolean |
canShowFile()
Indicate if this interface adapter has the ability to show source files in a manner appropriate for the user to read. |
boolean |
canShowStatus()
Indicate if this interface adapter has the ability to show the status in a manner appropriate for the user to view. |
void |
destroyInterface()
Deconstruct the user interface such that all components are made invisible and prepared for non-use. |
void |
exit()
This is called when there are no more open Sessions. |
boolean |
findString(java.lang.String query,
boolean ignoreCase)
Search for the given string in the currently selected source view. |
java.lang.Object |
getProperty(java.lang.String key)
Searches for the property with the specified key in the property list. |
JSwatView |
getSelectedView()
Retrieves the currently active view in JSwat. |
void |
initComplete()
Called when the Session initialization has completed. |
void |
refreshDisplay()
Refresh the display to reflect changes in the program. |
void |
saveSettings()
Save any settings to the appropriate places, the program is about the terminate. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.Object value)
Stores the given value in the properties list with the given key as a reference. |
boolean |
showFile(java.io.File file,
int line)
Show the given file in the appropriate view and make the given line visible in that view. |
void |
showStatus(java.lang.String status)
Show a status message in a reasonable location. |
Method Detail |
public void buildInterface()
public boolean canFindString()
public boolean canShowFile()
public boolean canShowStatus()
public void destroyInterface()
public void exit()
public boolean findString(java.lang.String query, boolean ignoreCase) throws NoOpenViewException
query
- string to look for.ignoreCase
- true to ignore case.NoOpenViewException
- Thrown if there is no view to be searched.public java.lang.Object getProperty(java.lang.String key)
key
- the property key.public JSwatView getSelectedView()
public void initComplete()
public void refreshDisplay()
public void saveSettings()
public java.lang.Object setProperty(java.lang.String key, java.lang.Object value)
key
- the key to be placed into this property list.value
- the value corresponding to key, or null to remove
the key and value from the properties.public boolean showFile(java.io.File file, int line)
file
- file to be displayed.line
- line to be made visible.public void showStatus(java.lang.String status)
status
- message to be shown to the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |