|
|||||||||||
| 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
pt.moredata.widgets.FieldDocument
Document for Swing input of database type specific text fields such as: Integer ; Smallint ; BigInt ; Decimal ; Double ; Float ; Date ; TinyInt ; Numeric ; Real ; Char ; VarChar ; LongVarChar ; Time ; TimeStamp ; Null ;
| 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 | |
FieldDocument()
By default the data type is Char |
|
FieldDocument(int dataType)
Constructor for the FieldDocument object |
|
| Method Summary | |
java.lang.String |
getAllowedCharacters()
Return a String with a set of characters that are allowed to be used in the widget. |
static char |
getDecimalSeparator()
Devolve o seperador de casas decimais de acordo com as definicoes localizadas do cliente onde o programa esta em execucao |
int |
getDefaultMaxLength()
Gets the defaultMaxLength attribute of the FieldDocument object |
java.lang.String |
getFormat()
|
boolean |
getOnlyDigits()
Gets the onlyDigits attribute of the FieldDocument object |
static char |
getThousandSeparator()
Devolve o separador dos milhares de acordo com as definições |
boolean |
getUpshift()
Gets the upshift attribute of the FieldDocument object |
void |
insertString(int offset,
java.lang.String str,
javax.swing.text.AttributeSet a)
Executado sempre que ocorre um evento de insercao no textField Tem comportamentos diferentes consoante o tipo de dados a inserir |
boolean |
isAutonext()
Gets the autonext attribute of the FieldDocument object |
boolean |
isEditable()
|
void |
setAllowedCharacters(java.lang.String allowedCharacters)
Set the of characters that are allowed to be used in the widget. |
void |
setAutonext(boolean flag)
Sets the autonext attribute of the FieldDocument object |
void |
setDataType(int _dataType)
Afecta o tipo de dados utilizado |
void |
setEditable(boolean editable)
|
void |
setFormat(java.lang.String format)
|
void |
setMaxLength(int numChar)
Sets the maxLength attribute of the FieldDocument object |
void |
setOnlyDigits(boolean _onlyDigits)
Sets the onlyDigits attribute of the FieldDocument object |
void |
setUpshift(boolean shift)
Sets the upshift attribute of the FieldDocument object |
| Methods inherited from class javax.swing.text.PlainDocument |
createDefaultRoot, getDefaultRootElement, getParagraphElement, 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, toString, wait, wait, wait |
| Constructor Detail |
public FieldDocument()
public FieldDocument(int dataType)
dataType - Description of the Parameter| Method Detail |
public int getDefaultMaxLength()
public void setDataType(int _dataType)
_dataType - The new dataType valuepublic static char getDecimalSeparator()
public static char getThousandSeparator()
public void insertString(int offset,
java.lang.String str,
javax.swing.text.AttributeSet a)
throws javax.swing.text.BadLocationException
offset - Description of the Parameterstr - Description of the Parametera - Description of the Parameter
javax.swing.text.BadLocationException - Description of the Exceptionpublic void setAutonext(boolean flag)
flag - The new autonext valuepublic void setMaxLength(int numChar)
numChar - The new maxLength valuepublic boolean isAutonext()
public void setUpshift(boolean shift)
shift - The new upshift valuepublic boolean getUpshift()
public void setOnlyDigits(boolean _onlyDigits)
_onlyDigits - The new onlyDigits valuepublic boolean getOnlyDigits()
public void setFormat(java.lang.String format)
public java.lang.String getFormat()
public java.lang.String getAllowedCharacters()
public void setAllowedCharacters(java.lang.String allowedCharacters)
allowedCharacters - A string with the allowed characters.public boolean isEditable()
public void setEditable(boolean editable)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||