|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.gui.docview.AbstractDocumentView
gate.gui.docview.AnnotationListView
public class AnnotationListView
A tabular view for a list of annotations. Used as part of the document viewer to display all the annotation currently highlighted.
Nested Class Summary | |
---|---|
protected static class |
AnnotationListView.AnnotationHandler
|
protected class |
AnnotationListView.EditAnnotationAction
|
Field Summary | |
---|---|
protected Map |
annotationHandlerByTag
|
protected Map |
editorsCache
A map that stores instantiated annotations editors in order to avoid the delay of building them at each request; |
protected JPanel |
mainPanel
|
protected JScrollPane |
scroller
|
protected JLabel |
statusLabel
|
protected XJTable |
table
|
protected gate.gui.docview.AnnotationListView.AnnotationTableModel |
tableModel
|
protected List |
tagList
|
protected TextualDocumentView |
textView
|
Fields inherited from class gate.gui.docview.AbstractDocumentView |
---|
active, document, guiInitialised, handle, owner |
Fields inherited from class gate.creole.AbstractResource |
---|
name |
Fields inherited from class gate.util.AbstractFeatureBearer |
---|
features |
Fields inherited from interface gate.gui.docview.DocumentView |
---|
CENTRAL, HORIZONTAL, VERTICAL |
Constructor Summary | |
---|---|
AnnotationListView()
|
Method Summary | |
---|---|
void |
addAnnotation(Object tag,
Annotation ann,
AnnotationSet set)
|
void |
addAnnotations(Collection tags,
Collection annotations,
AnnotationSet set)
Adds a batch of annotations in one go. |
void |
annotationUpdated(AnnotationEvent e)
Called when an Annotation has been updated |
Component |
getGUI()
Returns the actual UI component this view represents. |
int |
getType()
Returns the type of this view. |
protected void |
guiShown()
|
protected void |
initGUI()
Implementers should override this method and use it for populating the GUI. |
protected void |
initListeners()
|
protected void |
registerHooks()
This method will be called whenever the view becomes active. |
void |
removeAnnotation(Object tag)
|
void |
removeAnnotations(Collection tags)
|
void |
selectAnnotationForTag(Object tag)
Selects the annotation for the given tag. |
protected void |
showHighlights()
|
protected void |
unregisterHooks()
This method will be called whenever this view becomes inactive. |
Methods inherited from class gate.gui.docview.AbstractDocumentView |
---|
getActions, getDocument, isActive, setActive, setHandle, setOwner, setTarget |
Methods inherited from class gate.creole.AbstractResource |
---|
checkParameterValues, cleanup, getBeanInfo, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class gate.util.AbstractFeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.Resource |
---|
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
---|
getName, setName |
Field Detail |
---|
protected XJTable table
protected gate.gui.docview.AnnotationListView.AnnotationTableModel tableModel
protected JScrollPane scroller
protected Map annotationHandlerByTag
protected List tagList
protected JPanel mainPanel
protected JLabel statusLabel
protected TextualDocumentView textView
protected Map editorsCache
Constructor Detail |
---|
public AnnotationListView()
Method Detail |
---|
protected void initGUI()
AbstractDocumentView
initGUI
in class AbstractDocumentView
public Component getGUI()
DocumentView
getGUI
in interface DocumentView
Component
value.protected void initListeners()
protected void registerHooks()
AbstractDocumentView
registerHooks
in class AbstractDocumentView
protected void unregisterHooks()
AbstractDocumentView
AbstractDocumentView.registerHooks()
.
unregisterHooks
in class AbstractDocumentView
public int getType()
DocumentView
getType
in interface DocumentView
DocumentView.CENTRAL
,
DocumentView.HORIZONTAL
,
DocumentView.VERTICAL
protected void guiShown()
protected void showHighlights()
public void addAnnotation(Object tag, Annotation ann, AnnotationSet set)
public void removeAnnotation(Object tag)
public void addAnnotations(Collection tags, Collection annotations, AnnotationSet set)
tags
- a collection of tagsannotations
- a collection of annotationsset
- the annotation set to which all the annotations belong.public void removeAnnotations(Collection tags)
public void annotationUpdated(AnnotationEvent e)
AnnotationListener
Annotation
has been updated
annotationUpdated
in interface AnnotationListener
public void selectAnnotationForTag(Object tag)
tag
- the tag of the annotation to be selected.
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |