org.compiere.grid.ed
Class MDocString
java.lang.Object
javax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
org.compiere.grid.ed.MDocString
- All Implemented Interfaces:
- Serializable, EventListener, CaretListener, Document
public final class MDocString
- extends PlainDocument
- implements CaretListener
String Input Verification.
- Length is set to length of VFormat or FieldLength if no format defined
Control Characters
(Space) any character
_ Space (fixed character)
l any Letter a..Z NO space
L any Letter a..Z NO space converted to upper case
o any Letter a..Z or space
O any Letter a..Z or space converted to upper case
0 Digits 0..9 NO space
9 Digits 0..9 or space
a any Letters & Digits NO space
A any Letters & Digits NO space converted to upper case
c any Letters & Digits or space
C any Letters & Digits or space converted to upper case
- Version:
- $Id: MDocString.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
VString,
Serialized Form
| 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, 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 |
MDocString
public MDocString(String VFormat,
int fieldLength,
JTextComponent tc)
- Constructor
- Parameters:
VFormat - fieldLength - tc - VPassword or VString
setFormat
public final void setFormat(String VFormat)
- Set Format
- Parameters:
VFormat -
insertString
public void insertString(int offset,
String string,
AttributeSet attr)
throws BadLocationException
- Insert String
- Specified by:
insertString in interface Document- Overrides:
insertString in class PlainDocument
- Parameters:
offset - string - attr -
- Throws:
BadLocationException
remove
public void remove(int offset,
int length)
throws BadLocationException
- Delete String
- Specified by:
remove in interface Document- Overrides:
remove in class AbstractDocument
- Parameters:
offset - length -
- Throws:
BadLocationException
caretUpdate
public void caretUpdate(CaretEvent e)
- Caret Listener
- Specified by:
caretUpdate in interface CaretListener
- Parameters:
e -
Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.