|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.AbstractDocument javax.swing.text.PlainDocument net.sourceforge.fixagora.basis.client.view.document.AbstractNumberDocument net.sourceforge.fixagora.basis.client.view.document.FractionalTextFieldDocument
public class FractionalTextFieldDocument
The Class FractionalTextFieldDocument.
Nested Class Summary |
---|
Nested classes/interfaces 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 |
---|
BidiElementName, ContentElementName, ElementNameAttribute, ParagraphElementName, SectionElementName |
Fields inherited from interface javax.swing.text.Document |
---|
StreamDescriptionProperty, TitleProperty |
Constructor Summary | |
---|---|
FractionalTextFieldDocument(javax.swing.JTextField jTextField)
Instantiates a new fractional text field document. |
Method Summary | |
---|---|
DollarFraction |
getDollarFraction()
Gets the dollar fraction. |
void |
insertString(int offset,
java.lang.String originalText,
javax.swing.text.AttributeSet attributeSet)
|
void |
remove(int offs,
int len)
|
void |
removeListener()
Removes the listener. |
void |
replace(int offset,
int length,
java.lang.String text,
javax.swing.text.AttributeSet attrs)
|
void |
setDecimalPlaces(int decimalPlaces)
Sets the decimal places. |
void |
setLeadingZeros(int leadingZeros)
Sets the leading zeros. |
void |
setMinValue(java.lang.Double minValue)
Sets the min value. |
void |
setThousandsSeparator(boolean thousandsSeparator)
Sets the thousands separator. |
void |
setTickSize(double tickSize)
Sets the tick size. |
Methods inherited from class javax.swing.text.PlainDocument |
---|
getDefaultRootElement, getParagraphElement |
Methods inherited from class javax.swing.text.AbstractDocument |
---|
addDocumentListener, addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, removeDocumentListener, removeUndoableEditListener, render, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FractionalTextFieldDocument(javax.swing.JTextField jTextField)
jTextField
- the j text fieldMethod Detail |
---|
public void setLeadingZeros(int leadingZeros)
AbstractNumberDocument
setLeadingZeros
in class AbstractNumberDocument
leadingZeros
- the new leading zerospublic void setThousandsSeparator(boolean thousandsSeparator)
AbstractNumberDocument
setThousandsSeparator
in class AbstractNumberDocument
thousandsSeparator
- the new thousands separatorpublic void setMinValue(java.lang.Double minValue)
AbstractNumberDocument
setMinValue
in class AbstractNumberDocument
minValue
- the new min valuepublic void setDecimalPlaces(int decimalPlaces)
AbstractNumberDocument
setDecimalPlaces
in class AbstractNumberDocument
decimalPlaces
- the new decimal placespublic void insertString(int offset, java.lang.String originalText, javax.swing.text.AttributeSet attributeSet) throws javax.swing.text.BadLocationException
insertString
in interface javax.swing.text.Document
insertString
in class javax.swing.text.PlainDocument
javax.swing.text.BadLocationException
public void replace(int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attrs) throws javax.swing.text.BadLocationException
replace
in class javax.swing.text.AbstractDocument
javax.swing.text.BadLocationException
public void remove(int offs, int len) throws javax.swing.text.BadLocationException
remove
in interface javax.swing.text.Document
remove
in class javax.swing.text.AbstractDocument
javax.swing.text.BadLocationException
public void setTickSize(double tickSize)
AbstractNumberDocument
setTickSize
in class AbstractNumberDocument
tickSize
- the new tick sizepublic DollarFraction getDollarFraction()
public void removeListener()
AbstractNumberDocument
removeListener
in class AbstractNumberDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |