Clear Up
SharpKit Reference

ZIndexManager Class

A class that manages a group of Ext.Component.floating Components and provides z-order management, and Component activation behavior, including masking below the active (topmost) Component.

Floating Components which are rendered directly into the document (such as Windows) which are shown are managed by a global instance.

Floating Components which are descendants of floatingContainers (for example a BoundList within an Window, or a Menu), are managed by a ZIndexManager owned by that floating Container. Therefore ComboBox dropdowns within Windows will have managed z-indices guaranteed to be correct, relative to the Window.

Namespace: Ext

Base Types

Derived Types

Methods

Name Description
bringToFront(object) Brings the specified Component to the front of any other active Components in this ZIndexManager.
each(Delegate, object) Executes the specified function once for every Component in this ZIndexManager, passing each Component as the only parameter. Returning false from the function will stop the iteration.
eachBottomUp(Delegate, object) Executes the specified function once for every Component in this ZIndexManager, passing each Component as the only parameter. Returning false from the function will stop the iteration. The components are passed to the function starting at the bottom and proceeding to the top.
eachTopDown(Delegate, object) Executes the specified function once for every Component in this ZIndexManager, passing each Component as the only parameter. Returning false from the function will stop the iteration. The components are passed to the function starting at the top and proceeding to the bottom.
get(object) Gets a registered Component by id.
getActive() Gets the currently-active Component in this ZIndexManager.
getBy(Delegate, object) Returns zero or more Components in this ZIndexManager using the custom search function passed to this method. The function should accept a single Ext.Component reference as its only argument and should return true if the Component matches the search criteria, otherwise it should return false.
hideAll() Hides all Components managed by this ZIndexManager.
register(Component) Registers a floating Ext.Component with this ZIndexManager. This should not need to be called under normal circumstances. Floating Components (such as Windows, BoundLists and Menus) are automatically registered with a zIndexManager at render time. Where this may be useful is moving Windows between two ZIndexManagers. For example, to bring the Ext.MessageBox dialog under the same manager as the Desktop's ZIndexManager in the desktop sample app:
MyDesktop.getDesktop().getManager().register(Ext.MessageBox);
            
sendToBack(object) Sends the specified Component to the back of other active Components in this ZIndexManager.
unregister(Component) Unregisters a Ext.Component from this ZIndexManager. This should not need to be called. Components are automatically unregistered upon destruction. See register.
© Copyright 2005-2011 SharpKit. All rights reserved.