|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gargoylesoftware.base.util.DocumentUtil
Various utility methods relating to documents.
Method Summary | |
static Document |
lengthLimitedDocument(Document document,
int maxLength)
Return a wrapper document that prevents the user from typing more than a specified number of characters. |
static Document |
lengthLimitedDocument(int maxLength)
Return a PlainDocument wrappered so that it is length limited. |
static Document |
upperCaseDocument()
Return a PlainDocument wrappered so that it accepts uppercase input only. |
static Document |
upperCaseDocument(Document document)
Return a wrapper document that converts all input to uppercase. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Document upperCaseDocument(Document document)
document
- The document to wrapper.
public static Document upperCaseDocument()
public static Document lengthLimitedDocument(Document document, int maxLength)
document
- The document to wrapper.maxLength
- The maximum number of characters that can be placed in
this document.
public static Document lengthLimitedDocument(int maxLength)
maxLength
- The maximum number of characters that can be placed in
this document.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |