|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.search.SearchContainer
public class SearchContainer
Constructor Summary | |
---|---|
SearchContainer(SearchFilter filter)
|
Method Summary | |
---|---|
void |
add(Search search)
|
javax.swing.Action[] |
getActions()
Returns null . |
SearchFilter |
getFilter()
Returns the search filter that was used to find the results. |
java.lang.String |
getName()
Returns a string that should be shown to the user. |
java.lang.String |
getStatus()
Returns a string that describes the current status. |
boolean |
isDone()
Returns true, if this search is finished and can not be started again. |
void |
resultReceived(SearchResult result)
Invoked when result is received. |
boolean |
showTree()
Returns true, if a tree should be shown next to search results. |
void |
start(SearchHandler handler)
Starts this search. |
void |
stateChanged(Search search)
Invoked when the state of search changes. |
void |
stop()
Cancels this search. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchContainer(SearchFilter filter)
Method Detail |
---|
public void add(Search search)
public javax.swing.Action[] getActions()
null
.
getActions
in interface Search
public SearchFilter getFilter()
Search
getFilter
in interface Search
public java.lang.String getName()
Search
getName
in interface Search
public java.lang.String getStatus()
Search
getStatus
in interface Search
public boolean isDone()
Search
isDone
in interface Search
public void resultReceived(SearchResult result)
result
is received.
resultReceived
in interface SearchHandler
public void stateChanged(Search search)
search
changes.
stateChanged
in interface SearchHandler
public boolean showTree()
Search
showTree
in interface Search
public void start(SearchHandler handler)
Search
start
in interface Search
handler
- the object that handles the resultspublic void stop()
Search
stop
in interface Search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |