dynamicmedia.java

来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 56 行

JAVA
56
字号
/* DynamicMedia.java{{IS_NOTE	Purpose:			Description:			History:		Fri Jul 22 08:59:10     2005, Created by tomyeh}}IS_NOTECopyright (C) 2005 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zk.ui.ext.render;import org.zkoss.util.media.Media;import org.zkoss.zk.ui.UiException;/** * Implemented by the object returned by {@link org.zkoss.zk.ui.sys.ComponentCtrl#getExtraCtrl}, * if a component might have viewable parts other than HTML (WML, XAML * or any client language). A typical example is an image and an audio. * * <h3>How it woks:</h3> * * <ol> * <li>DynamicMedia componet first invoke {@link org.zkoss.zk.ui.Desktop#getDynamicMediaURI} * to retrieve a URI and generate proper HTML (or any client language).<li> * <li>Then, client will send a request to the URI</li> * <li> {@link org.zkoss.zk.au.http.DHtmlUpdateServlet} interprets it * and call {@link #getMedia} to retrieve the media and return it the client</li> * </ol> * * @author tomyeh */public interface DynamicMedia {	/** Retrieve the view in {@link Media} format.	 *	 * <p>Unlike other methods, you cannot post event, create, remove,	 * invalidate or do any smart updates in this method.	 * In other words, READ ONLY.	 *	 * @param pathInfo the extra info passed to 	 * {@link org.zkoss.zk.au.http.DHtmlUpdateServlet}.	 * It is what you passed to	 * {@link org.zkoss.zk.ui.Desktop#getDynamicMediaURI}.	 * It is never null. It must start with "/" or be empty.	 */	public Media getMedia(String pathInfo);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?