public class RealDocument extends PlainDocument implements Internationalization
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
protected Double |
floatValue |
protected NumberFormat |
formatter |
protected DecimalFormatSymbols |
symbology |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameDEBUG_LANGUAGEStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
RealDocument() |
| Modifier and Type | Method and Description |
|---|---|
void |
format() |
Double |
getDoubleValue(String s) |
NumberFormat |
getFormat() |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
Number |
getValue() |
void |
insertString(int offset,
String sringValue,
AttributeSet attributes) |
protected void |
insertStringWithoutCheck(int offset,
String stringValue,
AttributeSet attributes) |
boolean |
isValid() |
void |
remove(int offset,
int len) |
protected void |
removeWithoutCheck(int offset,
int length) |
void |
setComponentLocale(Locale loc) |
void |
setFractionDigits(int number) |
void |
setGrouping(boolean group) |
void |
setMaximumFractionDigits(int number) |
void |
setMaximumIntegerDigits(int number) |
void |
setMinimumFractionDigits(int number) |
void |
setMinimumIntegerDigits(int number) |
void |
setResourceBundle(ResourceBundle res)
Sets the language resource bundle.
|
void |
setValue(Number value) |
protected void |
updateValue() |
createDefaultRoot, getDefaultRootElement, getParagraphElement, 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, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockprotected DecimalFormatSymbols symbology
protected NumberFormat formatter
protected Double floatValue
public void setValue(Number value)
public void format()
public Number getValue()
protected void updateValue()
public boolean isValid()
public void setFractionDigits(int number)
public void insertString(int offset,
String sringValue,
AttributeSet attributes)
throws BadLocationException
insertString in interface DocumentinsertString in class PlainDocumentBadLocationExceptionpublic void remove(int offset,
int len)
throws BadLocationException
remove in interface Documentremove in class AbstractDocumentBadLocationExceptionpublic void setMinimumIntegerDigits(int number)
public void setMaximumIntegerDigits(int number)
public void setGrouping(boolean group)
public void setMinimumFractionDigits(int number)
public void setMaximumFractionDigits(int number)
protected void insertStringWithoutCheck(int offset,
String stringValue,
AttributeSet attributes)
throws BadLocationException
BadLocationExceptionprotected void removeWithoutCheck(int offset,
int length)
throws BadLocationException
BadLocationExceptionpublic NumberFormat getFormat()
public void setComponentLocale(Locale loc)
setComponentLocale in interface Internationalizationpublic Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface Internationalizationres - the new language bundle.Copyright © 2016 Imatia Innovation S.L.. All rights reserved.