|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Captures changes to Style.
The "delta" acts as a series of bread crumbs allowing you the listener to figure out what changed where. The Type answers that other peskey question: when.
You should be warned that deltas may also be "saved up" for a rainy day, this keeps user interfaces from being flooded with a cascade of events. The best example is a "macro" that makes a series of changes and only reports back a compound change resulting from the batch opperation.
Nested Class Summary | |
static class |
StyleEvent.Type
Constants used to indicate the type of StyleChangedEvent |
Method Summary | |
StyleDelta |
getDelta()
Returns a delta, rooted at style, describing the set of changes that happened. |
java.lang.Object |
getSource()
Returns an object identifying the source of this event. |
Style |
getStyle()
Style being changed, handy if you are listening to several styles at once. |
StyleEvent.Type |
getType()
Returns the type of event being reported. |
java.lang.Object |
getVictim()
If this change is limited to a single strand, Style being changed, handy if you are listening to several styles at once. |
Method Detail |
public StyleDelta getDelta()
null
if not applicable to this type of event.
null
if not applicablepublic Style getStyle()
public java.lang.Object getVictim()
public java.lang.Object getSource()
This is used by user interfaces, so they can ignore events generated by their own actions (but I don't have to tell you this).
EventObject
public StyleEvent.Type getType()
#POST_CHANGE
,
#PRE_DELETE
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |