All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.zk.ui.ext.render.DynamicMedia Maven / Gradle / Ivy

There is a newer version: 10.0.0-jakarta
Show newest version
/* DynamicMedia.java

	Purpose:
		
	Description:
		
	History:
		Fri Jul 22 08:59:10     2005, Created by tomyeh

Copyright (C) 2005 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
	This program is distributed under LGPL Version 2.1 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;

/**
 * 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.
 *
 * 

How it works:

* *
    *
  1. DynamicMedia component first invoke {@link org.zkoss.zk.ui.Desktop#getDynamicMediaURI} * to retrieve a URI and generate proper HTML (or any client language).
  2. *
  3. Then, client will send a request to the URI
  4. *
  5. {@link org.zkoss.zk.au.http.DHtmlUpdateServlet} interprets it * and call {@link #getMedia} to retrieve the media and return it the client
  6. *
* * @author tomyeh */ public interface DynamicMedia { /** Retrieve the view in {@link Media} format. * *

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); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy