com.pallas.swing.pcombobox
Class PComboDocumentListener

java.lang.Object
  |
  +--com.pallas.swing.pcombobox.PComboDocumentListener
All Implemented Interfaces:
javax.swing.event.DocumentListener, java.util.EventListener

public class PComboDocumentListener
extends java.lang.Object
implements javax.swing.event.DocumentListener

Title: $FileName: PComboDocumentListener.java$

Version:
$VerNum: 7$
Author:
$AuthorName: Rob MacGrogan$

$Description: Document Listener used by attached JTextField in PComboBox.$
$KeyWordsOff: $

Document Listener used by attached JTextField in PComboBox.

Field Summary
private  FireClear clear
           
private  FireKeys keys
           
private  FullWordComboKeySelectionModel mgr
           
 
Constructor Summary
PComboDocumentListener(FullWordComboKeySelectionModel mgr)
           
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent ev)
           
private  void generalUpdate(javax.swing.event.DocumentEvent ev, int useOffset)
          All event methods call this method.
 void insertUpdate(javax.swing.event.DocumentEvent ev)
           
 void removeUpdate(javax.swing.event.DocumentEvent ev)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keys

private FireKeys keys

clear

private FireClear clear

mgr

private FullWordComboKeySelectionModel mgr
Constructor Detail

PComboDocumentListener

public PComboDocumentListener(FullWordComboKeySelectionModel mgr)
Method Detail

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent ev)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent ev)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent ev)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

generalUpdate

private void generalUpdate(javax.swing.event.DocumentEvent ev,
                           int useOffset)
All event methods call this method.

Fires asyncronous execute method in FireKeys if caret position in field is greater than 0, or if this is an insert and length of insert is 1 (this means the user has made a single keystroke).



Copyright 2003 Pallas Technology.