|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.creole.AbstractVisualResource
gate.gui.CorpusEditor
A simple viewer/editor for corpora. It will allow the visualisation of the list of documents inside a corpus along withe their features. It will also allow addition and removal of documents.
| Nested Class Summary | |
(package private) class |
CorpusEditor.DocumentListCellRenderer
|
(package private) class |
CorpusEditor.NewDocumentAction
|
(package private) class |
CorpusEditor.RemoveDocumentsAction
|
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
(package private) Corpus |
corpus
|
(package private) DefaultListModel |
docListModel
|
(package private) JList |
documentsList
|
(package private) FeaturesEditor |
featuresEditor
|
(package private) CorpusEditor.DocumentListCellRenderer |
listRenderer
|
(package private) JToolBar |
toolbar
|
| Fields inherited from class gate.creole.AbstractVisualResource |
features, handle |
| Fields inherited from class javax.swing.JPanel |
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
CorpusEditor()
|
|
| Method Summary | |
void |
cleanup()
Does nothing now, but meant to clear all internal data |
void |
documentAdded(CorpusEvent e)
Called when a document has been added |
void |
documentRemoved(CorpusEvent e)
Called when a document has been removed |
Resource |
init()
Initialise this resource, and return it. |
protected void |
initGuiComponents()
|
protected void |
initListeners()
|
protected void |
initLocalData()
|
void |
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a specific object. |
| Methods inherited from class gate.creole.AbstractVisualResource |
getFeatures, getParameterValue, setFeatures, setHandle, setParameterValue, setParameterValues |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gate.util.NameBearer |
getName, setName |
| Field Detail |
JList documentsList
CorpusEditor.DocumentListCellRenderer listRenderer
FeaturesEditor featuresEditor
JToolBar toolbar
Corpus corpus
DefaultListModel docListModel
| Constructor Detail |
public CorpusEditor()
| Method Detail |
public Resource init()
AbstractVisualResource
init in interface Resourceinit in class AbstractVisualResourceprotected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
public void cleanup()
AbstractVisualResource
cleanup in interface Resourcecleanup in class AbstractVisualResourcepublic void setTarget(Object target)
AbstractVisualResource
setTarget in interface VisualResourcesetTarget in class AbstractVisualResourcetarget - the object (be it a Resource,
DataStore or whatever) this viewer has to displaypublic void documentAdded(CorpusEvent e)
CorpusListener
documentAdded in interface CorpusListenerpublic void documentRemoved(CorpusEvent e)
CorpusListener
documentRemoved in interface CorpusListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||