VdexReload 1.1.3 API

uk.ac.reload.editor.metadata.formview
Class MetadataTextField

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

public class MetadataTextField
extends MetadataField
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
MetadataTextField(Metadata metadata, 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
protected  ReloadWidget getMetadataTextFieldWidget(ReloadSchemaElement schemaElement)
          Get a Text Widget suitable for the MD Form display
 ReloadButtonTextArea getReloadButtonTextArea()
          Get a TextArea and Button
 ReloadButtonTextField getReloadButtonTextField()
          Get a TextField and Button
 java.lang.String getValue()
          Get the value of this Widget
 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.metadata.formview.MetadataField
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

MetadataTextField

public MetadataTextField(Metadata metadata,
                         ReloadSchemaElement schemaElement)
Constructor

Parameters:
metadata - the metadata JDOM document schemaElement the ReloadSchemaElement bound to this MetadataTextField
Method Detail

getMetadataTextFieldWidget

protected ReloadWidget getMetadataTextFieldWidget(ReloadSchemaElement schemaElement)
Get a Text Widget suitable for the MD Form display

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

getReloadButtonTextField

public ReloadButtonTextField getReloadButtonTextField()
Get a TextField and Button

Returns:
a TextField and Button

getReloadButtonTextArea

public ReloadButtonTextArea getReloadButtonTextArea()
Get a TextArea and Button

Returns:
a TextArea and Button

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