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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
attributeAdded(Scope scope, java.lang.String name, java.lang.Object value)
Called when an attribute is going to be added toScope
.void
attributeRemoved(Scope scope, java.lang.String name)
Called when an attribute is going to be removed fromScope
.void
attributeReplaced(Scope scope, java.lang.String name, java.lang.Object value)
Called when an attribute is going to be replaced inScope
.void
idSpaceChanged(Scope scope, IdSpace newIdSpace)
Called when the ID space of this scope has been changed.void
parentChanged(Scope scope, Scope newparent)
Called when the parent has been changed.
-
-
-
Method Detail
-
attributeAdded
void attributeAdded(Scope scope, java.lang.String name, java.lang.Object value)
Called when an attribute is going to be added toScope
.- Parameters:
scope
- the scope where a new attribute is addedvalue
- the new value.
-
attributeReplaced
void attributeReplaced(Scope scope, java.lang.String name, java.lang.Object value)
Called when an attribute is going to be replaced inScope
.- Parameters:
scope
- the scope where a new attribute is replacedvalue
- the new value.
-
attributeRemoved
void attributeRemoved(Scope scope, java.lang.String name)
Called when an attribute is going to be removed fromScope
.- Parameters:
scope
- the scope where a new attribute is removed
-
parentChanged
void parentChanged(Scope scope, Scope newparent)
Called when the parent has been changed.- Parameters:
scope
- the scope whose parent is changednewparent
- the new parent.
-
idSpaceChanged
void idSpaceChanged(Scope scope, IdSpace newIdSpace)
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
-
-