|
||||||||||
| 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
@CreoleResource(name="Corpus editor",
guiType=LARGE,
resourceDisplayed="gate.Corpus",
mainViewer=true)
public class CorpusEditorA simple viewer/editor for corpora. It will allow the visualisation of the list of documents inside a corpus along with their features. It will also allow addition and removal of documents.
| Nested Class Summary | |
|---|---|
(package private) class |
CorpusEditor.DocumentNameRenderer
|
(package private) class |
CorpusEditor.DocumentTableModel
|
(package private) class |
CorpusEditor.MoveDownAction
|
(package private) class |
CorpusEditor.MoveUpAction
|
(package private) class |
CorpusEditor.NewDocumentAction
|
(package private) class |
CorpusEditor.OpenDocumentsAction
|
(package private) class |
CorpusEditor.RemoveDocumentsAction
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Corpus |
corpus
|
protected XJTable |
docTable
|
protected CorpusEditor.DocumentTableModel |
docTableModel
|
protected int |
documentsLoadedCount
|
protected JLabel |
messageLabel
|
protected CorpusEditor.MoveDownAction |
moveDownAction
|
protected CorpusEditor.MoveUpAction |
moveUpAction
|
protected CorpusEditor.NewDocumentAction |
newDocumentAction
|
protected CorpusEditor.OpenDocumentsAction |
openDocumentsAction
|
protected CorpusEditor.RemoveDocumentsAction |
removeDocumentsAction
|
protected CorpusEditor.DocumentNameRenderer |
renderer
|
protected JToolBar |
toolbar
|
| Fields inherited from class gate.creole.AbstractVisualResource |
|---|
features, handle |
| 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.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 | |
|---|---|
protected void |
changeMessage()
|
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 |
|---|
protected XJTable docTable
protected CorpusEditor.DocumentTableModel docTableModel
protected CorpusEditor.DocumentNameRenderer renderer
protected JToolBar toolbar
protected Corpus corpus
protected CorpusEditor.NewDocumentAction newDocumentAction
protected CorpusEditor.RemoveDocumentsAction removeDocumentsAction
protected CorpusEditor.MoveUpAction moveUpAction
protected CorpusEditor.MoveDownAction moveDownAction
protected CorpusEditor.OpenDocumentsAction openDocumentsAction
protected JLabel messageLabel
protected int documentsLoadedCount
| 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 CorpusListenerprotected void changeMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||