public class QueryController extends Object implements Serializable
| Constructor and Description |
|---|
QueryController(AnnisUI ui,
SearchView searchView,
QueryUIState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHistoryEntry(Query q)
Adds a history entry to the history panel.
|
void |
cancelExport() |
void |
changeContext(PagedResultQuery originalQuery,
Match match,
long offset,
int newContext,
VisualizerContextChanger visCtxChange,
boolean left) |
void |
corpusSelectionChangedInBackground() |
void |
executeExport(ExportPanel panel,
com.google.common.eventbus.EventBus eventBus) |
void |
executeFrequency(FrequencyQueryPanel panel) |
void |
executeSearch(boolean replaceOldTab,
boolean freshQuery)
Executes a query.
|
com.vaadin.data.Binder<QueryUIState> |
getBinder() |
ExportQuery |
getExportQuery()
Get the current query as it is defined by the UI controls.
|
DisplayedResultQuery |
getSearchQuery()
Get the current query as it is defined by the current
QueryUIState. |
QueryUIState |
getState() |
void |
reportServiceException(ApiException ex,
boolean showNotification)
Show errors that occurred during the execution of a query to the user.
|
void |
setQuery(Query q) |
void |
validateQuery() |
public QueryController(AnnisUI ui, SearchView searchView, QueryUIState state)
public com.vaadin.data.Binder<QueryUIState> getBinder()
public void addHistoryEntry(Query q)
q - the entry, which is added.HistoryPanelpublic void cancelExport()
public void changeContext(PagedResultQuery originalQuery, Match match, long offset, int newContext, VisualizerContextChanger visCtxChange, boolean left)
public void corpusSelectionChangedInBackground()
public void executeExport(ExportPanel panel, com.google.common.eventbus.EventBus eventBus)
public void executeFrequency(FrequencyQueryPanel panel)
public void executeSearch(boolean replaceOldTab,
boolean freshQuery)
replaceOldTab - freshQuery - If true the offset and the selected matches are reset before executing the
query.public ExportQuery getExportQuery()
public DisplayedResultQuery getSearchQuery()
QueryUIState.public QueryUIState getState()
public void reportServiceException(ApiException ex, boolean showNotification)
ex - The exception to report in the user interfaceshowNotification - If true a notification is shown instead of only displaying the error in
the status label.public void setQuery(Query q)
public void validateQuery()
Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.