public class TimelagInputfilter
extends javax.swing.text.DocumentFilter
构造器和说明 |
---|
TimelagInputfilter(java.lang.String pat) |
限定符和类型 | 方法和说明 |
---|---|
void |
insertString(javax.swing.text.DocumentFilter.FilterBypass fb,
int offset,
java.lang.String string,
javax.swing.text.AttributeSet attr)
can not enter "-" as the first digit or before an existing number value
but in the middle or as a part of non-digit sting is allowed
|
void |
replace(javax.swing.text.DocumentFilter.FilterBypass fb,
int offset,
int length,
java.lang.String string,
javax.swing.text.AttributeSet attr) |
public void insertString(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, java.lang.String string, javax.swing.text.AttributeSet attr) throws javax.swing.text.BadLocationException
insertString
在类中 javax.swing.text.DocumentFilter
fb
- FilterBypassoffset
- the offset into the document to insert the content >= 0string
- the string to insertattr
- the attributes to associate with the inserted contentjavax.swing.text.BadLocationException
public void replace(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String string, javax.swing.text.AttributeSet attr) throws javax.swing.text.BadLocationException
replace
在类中 javax.swing.text.DocumentFilter
javax.swing.text.BadLocationException