Package org.zkoss.zk.ui.impl

## Class DesktopRecycles

- java.lang.Object
- - org.zkoss.zk.ui.impl.DesktopRecycles

- Direct Known Subclasses:
    `DesktopRecycles`

      public class DesktopRecycles
      extends java.lang.Object

  Utilities to handle `DesktopRecycle`.
  Since:
    5.0.7
  Author:
    tomyeh

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DesktopRecycles()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static boolean` | `removeDesktop​(Execution exec)` | Called to remove the desktop.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DesktopRecycles

          public DesktopRecycles()

  - ### Method Detail

    - #### removeDesktop

          public static boolean removeDesktop​(Execution exec)

      Called to remove the desktop. If `DesktopRecycle` is configured, `DesktopRecycle.beforeRemove(org.zkoss.zk.ui.Execution, org.zkoss.zk.ui.Desktop, int)` will be called first to see if it shall be recycled.
      Returns:
        whether the desktop is removed. Returns false if the desktop is recycled.