|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.event.AbstractGTComponent org.geotools.event.AbstractGTRoot
Provides basic StyleEvent notification, may be used in conjuction with StyleList during event handling.
This class has package scope to prevent user code mistaking it for something important. It is only used to assist in the construction of this one implementation of StyleEvents. Basically this is NOT API :-)
Field Summary |
Fields inherited from interface org.geotools.event.GTRoot |
NO_PARENT |
Constructor Summary | |
AbstractGTRoot()
|
Method Summary | |
void |
addListener(GTListener listener)
Listens to changes in the Style content. |
void |
changed(GTDelta childDelta)
Used to pass on "We changed" notification from children. |
protected java.lang.Object |
clone()
|
protected void |
fire(GTDelta delta)
Issue a change event w/ POST_CHANGE |
protected void |
fire(GTEvent event)
Provides notification of daring do (and undo) in style space. |
protected void |
fireChanged()
Simple notification that we changed. |
protected void |
fireChildChanged(java.lang.String childName,
java.lang.Object child,
java.lang.Object oldValue)
Create a child delta and send it off. |
protected boolean |
hasListeners()
|
void |
removed(GTDelta childDelta)
Used to pass on "something is about to change" notification from children. |
void |
removeListener(GTListener listener)
Remove a style listener |
Methods inherited from class org.geotools.event.AbstractGTComponent |
getNote, getParent, setNote |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.event.GTRoot |
getParent |
Methods inherited from interface org.geotools.event.GTComponent |
getNote, setNote |
Constructor Detail |
public AbstractGTRoot()
Method Detail |
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractGTComponent
java.lang.CloneNotSupportedException
public void removed(GTDelta childDelta)
removed
in interface GTRoot
removed
in class AbstractGTComponent
childDelta
- object containing change informationpublic void changed(GTDelta childDelta)
changed
in interface GTRoot
changed
in class AbstractGTComponent
childDelta
- object containing change informationprotected void fireChanged()
Change will be passed on to parent.changed( delta ).
fireChanged
in class AbstractGTComponent
protected final void fireChildChanged(java.lang.String childName, java.lang.Object child, java.lang.Object oldValue)
Use this for changes to simple types like int and Color.
fireChildChanged
in class AbstractGTComponent
childName
- used to the child (often bean propertyName or map key)child
- oldValue
- DOCUMENT ME!public void addListener(GTListener listener)
Changes are provided:
Since the Style data structure can be vast and complicated a trail of breadcrumbs (a delta) is provided to help find your way to the change.
addListener
in interface GTRoot
listener
- public void removeListener(GTListener listener)
removeListener
in interface GTRoot
listener
- Listen to notificationsprotected void fire(GTEvent event)
event
- Event describing notificationprotected void fire(GTDelta delta)
delta
- Used to quickly fire off a child deltaprotected boolean hasListeners()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |