|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.p13n.model.Model.ChangeSupport
public static class Model.ChangeSupport
Helper class for managing ChangeListeners.
| Constructor Summary | |
|---|---|
Model.ChangeSupport(Object source)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Model.ChangeListener l)
Add a change listener, if it's not already in our list of listeners. |
boolean |
contains(Model.ChangeListener l)
Determine if we contain the specified listener. |
void |
fireChildAdded(Model parent,
Model child)
Fire a child added event. |
void |
fireChildChange(Model parent,
Model child,
boolean added)
Fire a child change event. |
void |
fireChildRemoved(Model parent,
Model child)
Fire a child removed event. |
void |
fireParentChange(Model model,
Model oldParent,
Model newParent)
|
void |
firePropertyChange(Model model,
String propName,
Object oldVal,
Object newVal)
Fire a property change event. |
void |
fireRootModelChange(Model oldRoot,
Model newRoot)
Fire a root model change event. |
Model.ChangeListener[] |
getChangeListeners()
Get the list of ChangeListeners, or null if none. |
boolean |
remove(Model.ChangeListener l)
Remove a change listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model.ChangeSupport(Object source)
source - the originator of change events.| Method Detail |
|---|
public void add(Model.ChangeListener l)
public boolean remove(Model.ChangeListener l)
public boolean contains(Model.ChangeListener l)
public Model.ChangeListener[] getChangeListeners()
public void firePropertyChange(Model model,
String propName,
Object oldVal,
Object newVal)
model - the model that changed.propName - the property name.oldVal - the previous value (null is valid).newVal - the new value (null is valid).
public void fireChildChange(Model parent,
Model child,
boolean added)
parent - the parent model.child - the child model.added - true if the child was added, false if removed.
public void fireChildAdded(Model parent,
Model child)
parent - the parent model.child - the child model.
public void fireChildRemoved(Model parent,
Model child)
parent - the parent model.child - the child model.
public void fireRootModelChange(Model oldRoot,
Model newRoot)
oldRoot - the previous root model.newRoot - the new root model.
public void fireParentChange(Model model,
Model oldParent,
Model newParent)
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||