VdexReload 1.1.3 API

uk.ac.reload.editor.vocabulary.formview
Class VocabularyTextField

java.lang.Object
  extended byuk.ac.reload.editor.gui.ReloadFormField
      extended byuk.ac.reload.editor.vocabulary.formview.VocabularyField
          extended byuk.ac.reload.editor.vocabulary.formview.VocabularyTextField
All Implemented Interfaces:
javax.swing.event.DocumentListener, java.util.EventListener, ReloadDocumentListener

public class VocabularyTextField
extends VocabularyField
implements javax.swing.event.DocumentListener

A Text Area widget.


Field Summary
protected  ReloadWidget _reloadWidget
          The suitable Component we shall use
 
Fields inherited from class uk.ac.reload.editor.gui.ReloadFormField
_element, _reloadDocument, _schemaElement
 
Constructor Summary
VocabularyTextField(Vocabulary vocabulary, ReloadSchemaElement schemaElement)
          Constructor
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent evt)
          Notify listeners that the textfield value is changed
 void destroy()
          Clean up
 java.awt.Component getComponent()
          Get the component that we're using
 java.lang.String getValue()
          Get the value of this Widget
protected  ReloadWidget getVocabularyTextFieldWidget(ReloadSchemaElement schemaElement)
          Get a Text Widget suitable for the VX Form display
 void insertUpdate(javax.swing.event.DocumentEvent evt)
          Notify listeners that the textfield value is inserted
 void removeUpdate(javax.swing.event.DocumentEvent evt)
          Notify listeners that the textfield value is removed
 void setValue(java.lang.String value)
          Set the value of the Widget
 
Methods inherited from class uk.ac.reload.editor.vocabulary.formview.VocabularyField
addElement, documentSaved, elementAdded, elementChanged, elementRemoved, fireElementChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_reloadWidget

protected ReloadWidget _reloadWidget
The suitable Component we shall use

Constructor Detail

VocabularyTextField

public VocabularyTextField(Vocabulary vocabulary,
                           ReloadSchemaElement schemaElement)
Constructor

Parameters:
vocabulary - the vocabulary JDOM document schemaElement the ReloadSchemaElement bound to this VocabularyTextField
Method Detail

getVocabularyTextFieldWidget

protected ReloadWidget getVocabularyTextFieldWidget(ReloadSchemaElement schemaElement)
Get a Text Widget suitable for the VX Form display

Parameters:
schemaElement - the schema element bound to this widget
Returns:
A Text Widget suitable for the VX Form display

destroy

public void destroy()
Clean up

Specified by:
destroy in class ReloadFormField

getValue

public java.lang.String getValue()
Get the value of this Widget

Specified by:
getValue in class ReloadFormField
Returns:
The value contained in the Widget

setValue

public void setValue(java.lang.String value)
Set the value of the Widget

Specified by:
setValue in class ReloadFormField
Parameters:
value - The value to be set to the widget

getComponent

public java.awt.Component getComponent()
Get the component that we're using

Specified by:
getComponent in class ReloadFormField
Returns:
the Component that we're using

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent evt)
Notify listeners that the textfield value is removed

Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent evt)
Notify listeners that the textfield value is changed

Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent evt)
Notify listeners that the textfield value is inserted

Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

VdexReload 1.1.3 API