|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.gui.util.QueryWindow
public class QueryWindow
Provides a search interface window to allow interaction with other interfaces. Search interface adapted from code by Holger Voormann and Halyna Seniv
Constructor Summary | |
---|---|
QueryWindow(NOMWriteCorpus nom)
just set up a query handler for the NOM - no window popped up! |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This handles the interface actions |
void |
deregisterResultHandler(QueryResultHandler display)
remove an interface element that will be informed of results |
void |
performQuery(java.lang.String newQuery)
Perform the query and display the results on-screen |
void |
popupSearchWindow()
pop up the search window. |
void |
querySubmitted(java.lang.String query)
|
void |
registerResultHandler(QueryResultHandler display)
add an interface element that will be informed of results. |
void |
run()
New query will be executed by a new thread. |
void |
savePreferences()
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent tse)
TreeSelectionEvents - highlight the result on the registered displays |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryWindow(NOMWriteCorpus nom)
Method Detail |
---|
public void popupSearchWindow()
popupSearchWindow
in interface QueryHandler
public void registerResultHandler(QueryResultHandler display)
registerResultHandler
in interface QueryHandler
public void deregisterResultHandler(QueryResultHandler display)
deregisterResultHandler
in interface QueryHandler
public void performQuery(java.lang.String newQuery)
performQuery
in interface QueryHandler
public void valueChanged(javax.swing.event.TreeSelectionEvent tse)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void savePreferences()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void run()
run
in interface java.lang.Runnable
public void querySubmitted(java.lang.String query)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |