|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.text.Document
com.jmex.bui.text.LengthLimitedDocument
public class LengthLimitedDocument
A document for use with a BTextField that limits the input to a maximum length.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jmex.bui.text.Document |
|---|
Document.Listener |
| Field Summary | |
|---|---|
protected int |
_maxLength
|
| Fields inherited from class com.jmex.bui.text.Document |
|---|
_listeners, _text |
| Constructor Summary | |
|---|---|
LengthLimitedDocument(int maxLength)
Creates a document that will limit its maximum length to the specified value. |
|
| Method Summary | |
|---|---|
protected boolean |
validateEdit(java.lang.String oldText,
java.lang.String newText)
Provides an opportunity for edits to be rejected before being applied to the document. |
| Methods inherited from class com.jmex.bui.text.Document |
|---|
addListener, getLength, getText, getText, insert, notify, remove, removeListener, replace, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _maxLength
| Constructor Detail |
|---|
public LengthLimitedDocument(int maxLength)
| Method Detail |
|---|
protected boolean validateEdit(java.lang.String oldText,
java.lang.String newText)
Document
validateEdit in class Document
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||