Package org.zkoss.zk.ui.ext
Interface ScopeListener
public interface ScopeListener
A listener used to listen whether a scope (Scope) is changed.
To add a listener to the scope, invoke
Scope.addScopeListener(org.zkoss.zk.ui.ext.ScopeListener).
- Since:
- 5.0.0
- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(Scope scope, String name, Object value) Called when an attribute is going to be added toScope.voidattributeRemoved(Scope scope, String name) Called when an attribute is going to be removed fromScope.voidattributeReplaced(Scope scope, String name, Object value) Called when an attribute is going to be replaced inScope.voididSpaceChanged(Scope scope, IdSpace newIdSpace) Called when the ID space of this scope has been changed.voidparentChanged(Scope scope, Scope newparent) Called when the parent has been changed.
-
Method Details
-
attributeAdded
Called when an attribute is going to be added toScope.- Parameters:
scope- the scope where a new attribute is addedvalue- the new value.
-
attributeReplaced
Called when an attribute is going to be replaced inScope.- Parameters:
scope- the scope where a new attribute is replacedvalue- the new value.
-
attributeRemoved
Called when an attribute is going to be removed fromScope.- Parameters:
scope- the scope where a new attribute is removed
-
parentChanged
Called when the parent has been changed.- Parameters:
scope- the scope whose parent is changednewparent- the new parent.
-
idSpaceChanged
Called when the ID space of this scope has been changed. This method is called only if one of its parent implementsIdSpace, such as components and pages.- Parameters:
scope- the scope whose ID space is changednewIdSpace- the new ID space.- Since:
- 5.0.1
-