Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
jve.generated.SwingTextComponentBinder
Swing implementation of the IFieldBinder interface. This class acts as a document for a Swing JTextComponent. This field provides basic validation of the text entered into the field, to ensure the value can be parsed into the bound data type. To modify the default validation behavior, override the textToObject() method.
Nested Class Summary
Nested classes inherited from class javax.swing.text.AbstractDocument javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement
Field Summary
Fields inherited from class javax.swing.text.PlainDocument lineLimitAttribute, tabSizeAttribute
Fields inherited from class javax.swing.text.AbstractDocument BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
Fields inherited from interface javax.swing.text.Document StreamDescriptionProperty, TitleProperty
Constructor Summary SwingTextComponentBinder()
Method Summary protected void contentChanged(javax.swing.event.DocumentEvent de)
Drive the text field change back into the Object we are bounded to.IDataObject getDataObject()
Get the data object that provides the data to this binder.java.lang.String getProperty()
Get the property of the data object that will be used by this binderjavax.swing.text.JTextComponent getVisualTextComponent()
boolean isAutoEditable()
Check to see if the autoEditable feature is enabled.protected boolean isNullEditable()
protected boolean isReadOnly()
java.lang.String objectToText(java.lang.Object o)
Convert the given object into a text representation.void propertyChange(java.beans.PropertyChangeEvent evt)
void setAutoEditable(boolean autoEnable)
Set the auto enable property, which automatically enables/disables editing the text field when the bound data value is valid.void setDataObject(IDataObject binder)
Set the data object that provides the data used by this binder.void setProperty(java.lang.String string)
Set the property of the object that will be used as the target of this binder.void setVisualTextComponent(javax.swing.text.JTextComponent visualTextComponent)
java.lang.Object textToObject(java.lang.String text)
Convert the given text to a Object of the type that's the bound property.java.lang.String toString()
protected void updateContent()
protected void updateContent(java.lang.Object o)
Methods inherited from class javax.swing.text.PlainDocument createDefaultRoot, getDefaultRootElement, getParagraphElement, insertString, insertUpdate, removeUpdate
Methods inherited from class javax.swing.text.AbstractDocument addDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlock
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
public SwingTextComponentBinder()
Method Detail
public IDataObject getDataObject()
public java.lang.String getProperty()
public void setDataObject(IDataObject binder)
public void setProperty(java.lang.String string)
public void propertyChange(java.beans.PropertyChangeEvent evt)
protected boolean isNullEditable()
protected void updateContent(java.lang.Object o)
protected boolean isReadOnly()
protected void updateContent()
protected void contentChanged(javax.swing.event.DocumentEvent de)
public javax.swing.text.JTextComponent getVisualTextComponent()
public void setVisualTextComponent(javax.swing.text.JTextComponent visualTextComponent)
public java.lang.String objectToText(java.lang.Object o)
public java.lang.Object textToObject(java.lang.String text) throws java.lang.IllegalArgumentException
public boolean isAutoEditable()
public void setAutoEditable(boolean autoEnable)
public java.lang.String toString()
Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD