de.mguennewig.pobjform.swing
Class SwingTextAreaElement

java.lang.Object
  extended by de.mguennewig.pobjform.AbstractFormElement
      extended by de.mguennewig.pobjform.AbstractValueElement
          extended by de.mguennewig.pobjform.AbstractInputElement
              extended by de.mguennewig.pobjform.swing.SwingInputElement
                  extended by de.mguennewig.pobjform.swing.SwingTextAreaElement
All Implemented Interfaces:
FormElement, InputElement, SwingFormElement, TextAreaElement, ValueElement, java.awt.event.FocusListener, java.util.EventListener

public class SwingTextAreaElement
extends SwingInputElement
implements TextAreaElement, java.awt.event.FocusListener

Class description goes here.

Author:
Michael Günnewig

Field Summary
 
Fields inherited from interface de.mguennewig.pobjform.InputElement
MAX_INPUT_SIZE, RENDER_AS_DISABLED, RENDER_AS_HIDDEN, RENDER_AS_HIDDEN_WITH_LABEL, RENDER_AS_INPUT, RENDER_AS_TEXT
 
Constructor Summary
SwingTextAreaElement(PObjSwingForm form, TextAreaEntry entry)
          Creates a new SwingTextAreaElement.
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 javax.swing.JTextArea getComponent()
          Returns the Swing component for the input element.
 java.lang.String getCurrentString()
          Returns the string representation of the current object.
 java.lang.Object getObject()
          Returns the current object.
 TextAreaEntry getTextAreaEntry()
           
 java.lang.String getVisualString()
          Returns the human readable textual representation of the current value.
 void setObject(java.lang.Object obj)
          Sets the current object to the new value.
 void setVisualString(java.lang.String visual)
           
 
Methods inherited from class de.mguennewig.pobjform.swing.SwingInputElement
getErrorComponent, getInitialObject, getInitialString, getLabelComponent, hasChanged, setCurrentAsInitialState, setInitialString, setLabel, setRenderAs, updateErrorComponent
 
Methods inherited from class de.mguennewig.pobjform.AbstractInputElement
addChangeListener, getChangeListeners, getInputEntry, getRenderAs, getType, isHiddenInput, isMandatory, isRightAligned, isVisible, removeChangeListener, setMandatory, setRightAligned, setVisible, validate
 
Methods inherited from class de.mguennewig.pobjform.AbstractFormElement
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, isPulledIn, omitRowHeader, setProperty, setPullInPrefix, startsNewCell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.mguennewig.pobjform.InputElement
addChangeListener, getInputEntry, getRenderAs, getType, isHiddenInput, isMandatory, isRightAligned, isVisible, removeChangeListener, setMandatory, setRenderAs, setRightAligned
 
Methods inherited from interface de.mguennewig.pobjform.ValueElement
getInitialObject, getInitialString, setCurrentAsInitialState
 
Methods inherited from interface de.mguennewig.pobjform.FormElement
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate
 

Constructor Detail

SwingTextAreaElement

public SwingTextAreaElement(PObjSwingForm form,
                            TextAreaEntry entry)
Creates a new SwingTextAreaElement.

Method Detail

getTextAreaEntry

public final TextAreaEntry getTextAreaEntry()

getObject

public java.lang.Object getObject()
Returns the current object.

Specified by:
getObject in interface ValueElement
Overrides:
getObject in class AbstractInputElement

setObject

public final void setObject(java.lang.Object obj)
Sets the current object to the new value.

Specified by:
setObject in interface ValueElement
Overrides:
setObject in class AbstractInputElement

getCurrentString

public final java.lang.String getCurrentString()
Description copied from interface: ValueElement
Returns the string representation of the current object.

Specified by:
getCurrentString in interface ValueElement

getVisualString

public java.lang.String getVisualString()
Returns the human readable textual representation of the current value.

This is the value used to write the current value into the UI element. It is never null.

Specified by:
getVisualString in interface InputElement
Overrides:
getVisualString in class AbstractInputElement

setVisualString

public void setVisualString(java.lang.String visual)

getComponent

public javax.swing.JTextArea getComponent()
Description copied from interface: SwingFormElement
Returns the Swing component for the input element.

Specified by:
getComponent in interface SwingFormElement

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener