|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.gui.annedit.SchemaFeaturesEditor.FeatureEditor
protected class SchemaFeaturesEditor.FeatureEditor
Field Summary | |
---|---|
protected JCheckBox |
checkbox
|
protected Border |
defaultBorder
|
protected String |
defaultValue
Default value as string. |
protected String |
featureName
The name of the feature |
protected JComponent |
gui
The GUI used for editing the feature. |
protected Border |
highlightBorder
|
protected JChoice |
jchoice
|
protected boolean |
required
Is this feature required |
protected ActionListener |
sharedActionListener
The action listener that acts upon UI actions on nay of the widgets. |
protected JNullableTextField |
textField
|
protected SchemaFeaturesEditor.FeatureType |
type
The type of the feature. |
protected String |
value
The value of the feature |
protected String[] |
values
Permitted values for nominal features. |
Constructor Summary | |
---|---|
SchemaFeaturesEditor.FeatureEditor(String featureName,
Boolean defaultValue)
Constructor for boolean features |
|
SchemaFeaturesEditor.FeatureEditor(String featureName,
String defaultValue)
Constructor for plain text features |
|
SchemaFeaturesEditor.FeatureEditor(String featureName,
String[] values,
String defaultValue)
Constructor for nominal features |
Method Summary | |
---|---|
protected void |
buildGui()
Builds the GUI according to the internally stored values. |
String |
getDefaultValue()
|
String |
getFeatureName()
|
JComponent |
getGui()
|
SchemaFeaturesEditor.FeatureType |
getType()
|
Object |
getValue()
|
String[] |
getValues()
|
boolean |
isRequired()
|
void |
setDefaultValue(String defaultValue)
|
void |
setFeatureName(String featureName)
|
void |
setRequired(boolean required)
|
void |
setType(SchemaFeaturesEditor.FeatureType type)
|
void |
setValue(String value)
|
void |
setValues(String[] values)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JNullableTextField textField
protected JCheckBox checkbox
protected JChoice jchoice
protected Border defaultBorder
protected Border highlightBorder
protected SchemaFeaturesEditor.FeatureType type
protected String featureName
protected JComponent gui
protected String[] values
protected boolean required
protected ActionListener sharedActionListener
protected String defaultValue
protected String value
Constructor Detail |
---|
public SchemaFeaturesEditor.FeatureEditor(String featureName, String[] values, String defaultValue)
featureName
- values
- defaultValue
- public SchemaFeaturesEditor.FeatureEditor(String featureName, Boolean defaultValue)
featureName
- defaultValue
- public SchemaFeaturesEditor.FeatureEditor(String featureName, String defaultValue)
featureName
- defaultValue
- Method Detail |
---|
protected void buildGui()
public SchemaFeaturesEditor.FeatureType getType()
public void setType(SchemaFeaturesEditor.FeatureType type)
type
- the type to setpublic String[] getValues()
public void setValues(String[] values)
values
- the values to setpublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- the defaultValue to setpublic void setValue(String value)
value
- public Object getValue()
public String getFeatureName()
public void setFeatureName(String featureName)
featureName
- the featureName to setpublic JComponent getGui()
public boolean isRequired()
public void setRequired(boolean required)
required
- the required to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |