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
 void attributeAdded(Scope scope, java.lang.String name, java.lang.Object value)
          Called when an attribute is going to be added to Scope.
 void attributeRemoved(Scope scope, java.lang.String name)
          Called when an attribute is going to be removed from Scope.
 void attributeReplaced(Scope scope, java.lang.String name, java.lang.Object value)
          Called when an attribute is going to be replaced in Scope.
 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 to Scope.

Parameters:
scope - the scope where a new attribute is added
value - 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 in Scope.

Parameters:
scope - the scope where a new attribute is replaced
value - the new value.

attributeRemoved

void attributeRemoved(Scope scope,
                      java.lang.String name)
Called when an attribute is going to be removed from Scope.

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 changed
newparent - 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 implements IdSpace, such as components and pages.

Parameters:
scope - the scope whose ID space is changed
newIdSpace - the new ID space.
Since:
5.0.1


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo