public class SingleResultPanel extends com.vaadin.ui.CssLayout implements com.vaadin.ui.Button.ClickListener, VisualizerContextChanger
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Constructor and Description |
|---|
SingleResultPanel(org.corpus_tools.salt.common.SDocument result,
Match match,
long resultNumber,
ResolverProvider resolverProvider,
AnnisUI ui,
Set<String> visibleTokenAnnos,
String segmentationName,
QueryController controller,
DisplayedResultQuery query) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach() |
void |
buttonClick(com.vaadin.ui.Button.ClickEvent event) |
void |
changeContext(long resultNumber,
int context,
boolean left)
Sends a new query to the ANNIS-Service in order to increase/decrease the context of a single
result.
|
void |
registerVisibilityStatus(int entryId,
boolean status)
Registers the visibility status of single visualizer.
|
void |
setSegmentationLayer(String segmentationName) |
void |
setVisibleTokenAnnosVisible(SortedSet<String> annos) |
void |
updateResult(org.corpus_tools.salt.common.SaltProject p,
PagedResultQuery query)
Reinitiates all registered visualizer with a new salt project.
|
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsaddListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedforEach, spliteratorpublic SingleResultPanel(org.corpus_tools.salt.common.SDocument result,
Match match,
long resultNumber,
ResolverProvider resolverProvider,
AnnisUI ui,
Set<String> visibleTokenAnnos,
String segmentationName,
QueryController controller,
DisplayedResultQuery query)
public void attach()
attach in interface com.vaadin.server.ClientConnectorattach in interface com.vaadin.ui.Componentattach in class com.vaadin.ui.AbstractComponentpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event)
buttonClick in interface com.vaadin.ui.Button.ClickListenerpublic void changeContext(long resultNumber,
int context,
boolean left)
VisualizerContextChangerchangeContext in interface VisualizerContextChangerresultNumber - the number of the result.context - The size of the context.left - Which context must be change. If true the left context is changed, otherwise the
right one.public void registerVisibilityStatus(int entryId,
boolean status)
VisualizerContextChangerResolverProvider. If this status is
changed, it must be propagated to an instance of the interface.registerVisibilityStatus in interface VisualizerContextChangerentryId - The entry id, which represents the row id in the resolver map table, thus this
value should be unique.status - If true the visualizer is visible.public void setSegmentationLayer(String segmentationName)
public void updateResult(org.corpus_tools.salt.common.SaltProject p,
PagedResultQuery query)
VisualizerContextChangerupdateResult in interface VisualizerContextChangerp - the project, all visualizer are updated with.query - originally query, for determine the current contextCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.