Package gov.nih.mipav.view
Class MaximumLinesDocumentListener
- java.lang.Object
-
- gov.nih.mipav.view.MaximumLinesDocumentListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.swing.event.DocumentListener
public class MaximumLinesDocumentListener extends java.lang.Object implements javax.swing.event.DocumentListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
lastRunTimeMillis
(package private) int
maxLines
(package private) long
waitIntervalMillis
-
Constructor Summary
Constructors Constructor Description MaximumLinesDocumentListener(int maxLines)
MaximumLinesDocumentListener(int maxLines, long waitIntervalMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changedUpdate(javax.swing.event.DocumentEvent e)
int
getMaxLines()
void
insertUpdate(javax.swing.event.DocumentEvent e)
private void
removeLines(javax.swing.event.DocumentEvent e)
void
removeUpdate(javax.swing.event.DocumentEvent e)
void
setMaxLines(int maxLines)
-
-
-
Method Detail
-
getMaxLines
public int getMaxLines()
-
setMaxLines
public void setMaxLines(int maxLines)
-
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
insertUpdate
in interfacejavax.swing.event.DocumentListener
-
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
removeUpdate
in interfacejavax.swing.event.DocumentListener
-
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
changedUpdate
in interfacejavax.swing.event.DocumentListener
-
removeLines
private void removeLines(javax.swing.event.DocumentEvent e)
-
-