public class CockpitComponentCleanup extends Object implements org.zkoss.zk.ui.util.UiLifeCycle, org.zkoss.zk.ui.util.DesktopCleanup
Cleanable.cleanup() for each component detached. Calls Initializable.initialize() for each
component attached.| Constructor and Description |
|---|
CockpitComponentCleanup() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterComponentAttached(org.zkoss.zk.ui.Component component,
org.zkoss.zk.ui.Page page) |
void |
afterComponentDetached(org.zkoss.zk.ui.Component component,
org.zkoss.zk.ui.Page page) |
void |
afterComponentMoved(org.zkoss.zk.ui.Component component,
org.zkoss.zk.ui.Component component1,
org.zkoss.zk.ui.Component component2) |
void |
afterPageAttached(org.zkoss.zk.ui.Page page,
org.zkoss.zk.ui.Desktop desktop) |
void |
afterPageDetached(org.zkoss.zk.ui.Page page,
org.zkoss.zk.ui.Desktop desktop) |
void |
afterShadowAttached(org.zkoss.zk.ui.ShadowElement shadowElement,
org.zkoss.zk.ui.Component component) |
void |
afterShadowDetached(org.zkoss.zk.ui.ShadowElement shadowElement,
org.zkoss.zk.ui.Component component) |
static void |
cleanup(org.zkoss.zk.ui.Component component)
Calls
Cleanable.cleanup() for provided component and all Cleanable registered for it. |
static void |
cleanup(org.zkoss.zk.ui.Component component,
boolean nested)
Calls
Cleanable.cleanup() for provided component and all Cleanable registered for it. |
void |
cleanup(org.zkoss.zk.ui.Desktop desktop) |
static void |
initialize(org.zkoss.zk.ui.Component component)
Calls
Initializable.initialize() for provided component and all Initializable registered for it. |
static void |
initialize(org.zkoss.zk.ui.Component component,
boolean nested)
Calls
Initializable.initialize() for provided component and all Initializable registered for it. |
static void |
registerCleanable(org.zkoss.zk.ui.Component component,
Cleanable cleanup)
Registers a cleanup that should be performed after specified component is detached.
|
static void |
registerInitializable(org.zkoss.zk.ui.Component component,
Initializable initialize)
Registers a initialize that should be performed before specified component is displayed.
|
static void |
unregisterCleanable(org.zkoss.zk.ui.Component component,
Cleanable cleanup)
Unregisters a cleanup that should not be performed after specified component is detached.
|
public static void registerCleanable(org.zkoss.zk.ui.Component component,
Cleanable cleanup)
Cleanup is a one-time event and all cleanups will get unregistered after component is detached. This means that, if component it to be attached and detached multiple times, then a a cleanup needs to be registered every time component is attached.
component - triggering componentcleanup - cleanup to be performedpublic static void unregisterCleanable(org.zkoss.zk.ui.Component component,
Cleanable cleanup)
component - triggering componentcleanup - cleanup to unregisterpublic static void registerInitializable(org.zkoss.zk.ui.Component component,
Initializable initialize)
Initialization is a one-time event and all setups will get unregistered after component is displayed. This means that, if component it to be attached and detached multiple times, then a initialize needs to be registered every time component is detached.
component - triggering componentinitialize - cleanup to be performedpublic static void initialize(org.zkoss.zk.ui.Component component)
Initializable.initialize() for provided component and all Initializable registered for it.
Method is invoked for whole tree of components children.component - component to be initializedpublic static void initialize(org.zkoss.zk.ui.Component component,
boolean nested)
Initializable.initialize() for provided component and all Initializable registered for it.
Method may be invoked for whole tree of components children, depending on value of nested.component - component to be initializednested - if false then only provided component will be initialized, otherwise whole treepublic static void cleanup(org.zkoss.zk.ui.Component component)
Cleanable.cleanup() for provided component and all Cleanable registered for it. Method is
invoked for whole tree of components children.component - component to be cleanedpublic static void cleanup(org.zkoss.zk.ui.Component component,
boolean nested)
Cleanable.cleanup() for provided component and all Cleanable registered for it. Method may
be invoked for whole tree of components children, depending on value of nested.component - component to be cleanednested - if false then only provided component will be cleaned, otherwise whole treepublic void afterShadowAttached(org.zkoss.zk.ui.ShadowElement shadowElement,
org.zkoss.zk.ui.Component component)
afterShadowAttached in interface org.zkoss.zk.ui.util.UiLifeCyclepublic void afterShadowDetached(org.zkoss.zk.ui.ShadowElement shadowElement,
org.zkoss.zk.ui.Component component)
afterShadowDetached in interface org.zkoss.zk.ui.util.UiLifeCyclepublic void afterComponentAttached(org.zkoss.zk.ui.Component component,
org.zkoss.zk.ui.Page page)
afterComponentAttached in interface org.zkoss.zk.ui.util.UiLifeCyclepublic void afterComponentDetached(org.zkoss.zk.ui.Component component,
org.zkoss.zk.ui.Page page)
afterComponentDetached in interface org.zkoss.zk.ui.util.UiLifeCyclepublic void afterComponentMoved(org.zkoss.zk.ui.Component component,
org.zkoss.zk.ui.Component component1,
org.zkoss.zk.ui.Component component2)
afterComponentMoved in interface org.zkoss.zk.ui.util.UiLifeCyclepublic void afterPageAttached(org.zkoss.zk.ui.Page page,
org.zkoss.zk.ui.Desktop desktop)
afterPageAttached in interface org.zkoss.zk.ui.util.UiLifeCyclepublic void afterPageDetached(org.zkoss.zk.ui.Page page,
org.zkoss.zk.ui.Desktop desktop)
afterPageDetached in interface org.zkoss.zk.ui.util.UiLifeCycleCopyright © 2018. All rights reserved.