|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ChangeListener
Interface for objects which listen to ChangeEvents.
| Nested Class Summary | |
|---|---|
static class |
ChangeListener.AlwaysVetoListener
An implementation that always vetoes everything. |
static class |
ChangeListener.LoggingListener
A listener that writes information about the event stream to a PrintStream. |
| Field Summary | |
|---|---|
static ChangeListener |
ALWAYS_VETO
Convenience implementation which vetoes every change of which it is notified. |
static ChangeListener |
LOG_TO_OUT
Convenience implementation that echoes all events to out. |
| Method Summary | |
|---|---|
void |
postChange(ChangeEvent cev)
Called when a change has just taken place. |
void |
preChange(ChangeEvent cev)
Called before a change takes place. |
| Field Detail |
|---|
static final ChangeListener ALWAYS_VETO
static final ChangeListener LOG_TO_OUT
| Method Detail |
|---|
void preChange(ChangeEvent cev)
throws ChangeVetoException
cev - An event encapsulating the change which is about
to take place.
ChangeVetoException - Description of Exception
ChangeVetoException - if the receiver does not wish
this change to occur at this
time.void postChange(ChangeEvent cev)
cev - An event encapsulating the change which has
occured.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||