org.zkoss.zk.ui.util
Interface DesktopInit

All Known Implementing Classes:
InaccessibleWidgetBlockService.DesktopInit, UploadInfoService.DesktopInit

public interface DesktopInit

Used to initialize a desktop when it is created.

How this interface is used.

  1. First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
  2. Then, even time ZK loader creates a new desktop, an instnace of the specified class is instantiated and init(org.zkoss.zk.ui.Desktop, java.lang.Object) is called.

Author:
tomyeh

Method Summary
 void init(Desktop desktop, java.lang.Object request)
          Called when a desktop is created and initialized.
 

Method Detail

init

void init(Desktop desktop,
          java.lang.Object request)
          throws java.lang.Exception
Called when a desktop is created and initialized.

Note: you can access the execution by calling Desktop.getExecution() or Executions.getCurrent().

Parameters:
desktop - the desktop being created and initialized
request - the request caused the desktop being created. If HTTP and servlet, it is javax.servlet.http.HttpServletRequest. If portlet, it is javax.portlet.RenderRequest.
Throws:
java.lang.Exception
Since:
3.0.1


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo