Package org.omegat.gui.editor
Class DocumentFilter3
- java.lang.Object
-
- javax.swing.text.DocumentFilter
-
- org.omegat.gui.editor.DocumentFilter3
-
public class DocumentFilter3 extends javax.swing.text.DocumentFilter
Own implementation of DocumentFilter. It required for disable for user's edit text outside translation.
-
-
Constructor Summary
Constructors Constructor Description DocumentFilter3()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
insertString(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, java.lang.String string, javax.swing.text.AttributeSet attr)
void
remove(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length)
void
replace(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attrs)
-
-
-
Method Detail
-
remove
public void remove(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length) throws javax.swing.text.BadLocationException
- Overrides:
remove
in classjavax.swing.text.DocumentFilter
- Throws:
javax.swing.text.BadLocationException
-
insertString
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
- Overrides:
insertString
in classjavax.swing.text.DocumentFilter
- Throws:
javax.swing.text.BadLocationException
-
replace
public void replace(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attrs) throws javax.swing.text.BadLocationException
- Overrides:
replace
in classjavax.swing.text.DocumentFilter
- Throws:
javax.swing.text.BadLocationException
-
-