org.zkoss.zhtml
Class Fileupload

java.lang.Object
  extended by org.zkoss.zhtml.Fileupload

public class Fileupload
extends java.lang.Object

A fileupload dialog used to let user upload a file.

You don't create Fileupload directly. Rather, use get() or get(String, String).

A non-XHTML extension.

Author:
tomyeh

Constructor Summary
Fileupload()
           
 
Method Summary
static org.zkoss.util.media.Media get()
          Opens a modal dialog with the default message and title, and let user upload a file.
static org.zkoss.util.media.Media get(java.lang.String message, java.lang.String title)
          Opens a modal dialog with the specified message and title, and let user upload a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fileupload

public Fileupload()
Method Detail

get

public static org.zkoss.util.media.Media get()
                                      throws java.lang.InterruptedException
Opens a modal dialog with the default message and title, and let user upload a file.

Returns:
the uploaded content, or null if not ready.
Throws:
java.lang.InterruptedException

get

public static org.zkoss.util.media.Media get(java.lang.String message,
                                             java.lang.String title)
                                      throws java.lang.InterruptedException
Opens a modal dialog with the specified message and title, and let user upload a file.

Parameters:
message - the message. If null, the default is used.
title - the title. If null, the default is used.
Returns:
the uploaded content, or null if not ready.
Throws:
java.lang.InterruptedException


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.