Пример #1
0
 /**
  * Sets the thread local for the current UI. This method is used by the framework to set the
  * current application whenever a new request is processed and it is cleared when the request has
  * been processed.
  *
  * <p>The application developer can also use this method to define the current UI outside the
  * normal request handling, e.g. when initiating custom background threads.
  *
  * @param uI the UI to register as the current UI
  * @see #getCurrent()
  * @see ThreadLocal
  */
 public static void setCurrent(UI ui) {
   CurrentInstance.setInheritable(UI.class, ui);
 }