public class UpdateHandler extends java.lang.Object implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, javax.swing.event.DocumentListener, java.awt.event.FocusListener, UpdateListener
| Constructor and Description |
|---|
UpdateHandler(java.awt.Component component,
UpdateListener updateListener)
Creates an update listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
|
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Gives notification that an attribute or set of attributes changed.
|
void |
focusGained(java.awt.event.FocusEvent e)
Invoked when a component gains the keyboard focus.
|
void |
focusLost(java.awt.event.FocusEvent e)
Invoked when a component loses the keyboard focus.
|
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Gives notification that there was an insert into the document.
|
void |
processUpdate(java.awt.Component component,
java.lang.Object e)
Process an update.
|
void |
removeUpdate(javax.swing.event.DocumentEvent e)
Gives notification that a portion of the document has been
removed.
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
Invoked when the target of the listener has changed its state.
|
public UpdateHandler(java.awt.Component component,
UpdateListener updateListener)
component - the component.updateListener - the update listener.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - the action event.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenere - the change event.public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate in interface javax.swing.event.DocumentListenere - the document event.public void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenere - the focus event.public void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenere - the focus event.public void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate in interface javax.swing.event.DocumentListenere - the document eventpublic void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate in interface javax.swing.event.DocumentListenere - the document eventpublic void processUpdate(java.awt.Component component,
java.lang.Object e)
processUpdate in interface UpdateListenercomponent - the component.e - the event or null if none.