|
|||||||||||
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.FeaturesSchemaEditor
Nested Class Summary | |
protected class |
FeaturesSchemaEditor.Feature
|
protected class |
FeaturesSchemaEditor.FeatureEditorRenderer
|
protected class |
FeaturesSchemaEditor.FeaturesTableModel
|
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 | |
private static int |
COLUMNS
|
private static int |
DELETE_COL
|
(package private) FeaturesSchemaEditor.Feature |
emptyFeature
|
(package private) FeaturesSchemaEditor.FeatureEditorRenderer |
featureEditorRenderer
|
(package private) List |
featureList
|
(package private) FeaturesSchemaEditor.FeaturesTableModel |
featuresModel
|
private static int |
ICON_COL
|
(package private) XJTable |
mainTable
|
private static int |
NAME_COL
|
private static Color |
OPTIONAL_WRONG
|
private static Color |
REQUIRED_WRONG
|
(package private) AnnotationSchema |
schema
|
(package private) JScrollPane |
scroller
|
(package private) FeatureBearer |
target
|
(package private) FeatureMap |
targetFeatures
|
private static int |
VALUE_COL
|
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 | |
FeaturesSchemaEditor()
|
Method Summary | |
void |
featureMapUpdated()
Called when a feature map has been updated |
XJTable |
getTable()
|
Resource |
init()
Initialise this resource, and return it. |
protected void |
initGUI()
|
protected void |
populate()
Called internally whenever the data represented changes. |
void |
setSchema(AnnotationSchema schema)
|
void |
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a specific object. |
void |
setTargetFeatures(FeatureMap features)
|
Methods inherited from class gate.creole.AbstractVisualResource |
cleanup, 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.VisualResource |
setHandle |
Methods inherited from interface gate.Resource |
cleanup, getParameterValue, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
getName, setName |
Field Detail |
FeatureMap targetFeatures
FeatureBearer target
FeaturesSchemaEditor.Feature emptyFeature
AnnotationSchema schema
FeaturesSchemaEditor.FeaturesTableModel featuresModel
List featureList
FeaturesSchemaEditor.FeatureEditorRenderer featureEditorRenderer
XJTable mainTable
JScrollPane scroller
private static final int COLUMNS
private static final int ICON_COL
private static final int NAME_COL
private static final int VALUE_COL
private static final int DELETE_COL
private static final Color REQUIRED_WRONG
private static final Color OPTIONAL_WRONG
Constructor Detail |
public FeaturesSchemaEditor()
Method Detail |
public void setTargetFeatures(FeatureMap features)
public void setTarget(Object target)
VisualResource
setTarget
in interface VisualResource
setTarget
in class AbstractVisualResource
target
- the object (be it a Resource
,
DataStore
or whatever) this viewer has to displaypublic void setSchema(AnnotationSchema schema)
public XJTable getTable()
public void featureMapUpdated()
FeatureMapListener
featureMapUpdated
in interface FeatureMapListener
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractVisualResource
ResourceInstantiationException
protected void initGUI()
protected void populate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |