de.mguennewig.pobjform.swing
Class SwingTextAreaElement
java.lang.Object
de.mguennewig.pobjform.AbstractFormElement
de.mguennewig.pobjform.AbstractValueElement
de.mguennewig.pobjform.AbstractInputElement
de.mguennewig.pobjform.swing.SwingInputElement
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
| 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.FormElement |
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate |
SwingTextAreaElement
public SwingTextAreaElement(PObjSwingForm form,
TextAreaEntry entry)
- Creates a new SwingTextAreaElement.
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