public class G9Document extends PlainDocument implements G9FieldValue
Document models with output formats.AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElementlineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
G9Document()
(missing javadoc)
|
G9Document(int datatype,
String inputFormat,
String outputFormat,
int maxLength) |
| Modifier and Type | Method and Description |
|---|---|
String |
format()
Default implementation is to return
getValue().toString |
String |
format(Object o)
Formats the specified object to the string representation of that object.
|
int |
getDatatype()
Access method for the datatype property.
|
String |
getInputFormat()
Access method for the inputFormat property.
|
boolean |
getInputMode()
Determines if the inputMode property is true.
|
int |
getMaxLength()
Access method for the maxLength property.
|
String |
getName() |
String |
getOutputFormat()
Access method for the outputFormat property.
|
String |
getOutputText()
Returns the output text representation of the value object when display
rules are applied.
|
Object |
getValue() |
Object |
parse(String str)
Default implementation is to return the input string.
|
void |
setInputFormat(String aInputFormat)
Sets the value of the inputFormat property.
|
void |
setInputMode(boolean aInputMode)
Sets the value of the inputMode property.
|
void |
setMaxLength(int aMaxLength)
Sets the value of the maxLength property.
|
void |
setName(String name) |
void |
setOutputFormat(String aOutputFormat)
Sets the value of the outputFormat property.
|
void |
setValue(Object value) |
String |
toString() |
Object |
transform(Object o)
Internal use! Transform an object to the text version and back.
|
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertString, insertUpdate, removeUpdateaddDocumentListener, 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, writeUnlockpublic G9Document(int datatype,
String inputFormat,
String outputFormat,
int maxLength)
datatype - (missing javadoc)inputFormat - (missing javadoc)outputFormat - (missing javadoc)maxLength - (missing javadoc)public G9Document()
public String getName()
public void setName(String name)
name - the name to setpublic int getDatatype()
public String getInputFormat()
public void setInputFormat(String aInputFormat)
aInputFormat - the new value of the inputFormat propertypublic String getOutputFormat()
public void setOutputFormat(String aOutputFormat)
aOutputFormat - the new value of the outputFormat propertypublic int getMaxLength()
public void setMaxLength(int aMaxLength)
aMaxLength - the new value of the maxLength propertypublic boolean getInputMode()
true if the inputMode property is truepublic void setInputMode(boolean aInputMode)
aInputMode - the new value of the inputMode propertypublic void setValue(Object value)
setValue in interface G9FieldValuevalue - (missing javadoc)public Object getValue()
getValue in interface G9FieldValuepublic String format()
getValue().toStringformat in interface G9FieldValueG9FieldValue.format()public String format(Object o)
o - the object to formatpublic Object parse(String str) throws ParseException
parse in interface G9FieldValuestr - (missing javadoc)ParseException - (missing javadoc)G9FieldValue.parse(java.lang.String)public String getOutputText()
public Object transform(Object o)
o - the object to transformCopyright © 2006–2017 Esito AS. All rights reserved.