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 Details

    • attributeAdded

      void attributeAdded(Scope scope, String name, 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, String name, 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, 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