com.threerings.opengl.gui.text
Class LengthLimitedDocument

java.lang.Object
  extended by com.threerings.opengl.gui.text.Document
      extended by com.threerings.opengl.gui.text.LengthLimitedDocument

public class LengthLimitedDocument
extends Document

A document for use with a TextField that limits the input to a maximum length.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.text.Document
Document.Listener
 
Constructor Summary
LengthLimitedDocument(int maxLength)
          Creates a document that will limit its maximum length to the specified value.
 
Method Summary
 
Methods inherited from class com.threerings.opengl.gui.text.Document
addListener, addUndoableEditListener, getLength, getText, getText, getWordExtents, indexOfWordEnd, insert, lastIndexOfWordStart, remove, removeListener, removeUndoableEditListener, replace, setText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthLimitedDocument

public LengthLimitedDocument(int maxLength)
Creates a document that will limit its maximum length to the specified value.



Copyright © 2011. All Rights Reserved.