Viktor Kojouharov > IWL-SWFUpload-0.6.0 > IWL::SWFUpload::Queue

Download:
IWL-SWFUpload-0.6.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

IWL::SWFUpload::Queue - a file queue for the IWL::SWFUpload widget

INHERITANCE ^

IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Tree -> IWL::SWFUpload::Queue

DESCRIPTION ^

The Queue widget stores the queued files for an IWL::SWFUpload widget. It also allows for removing of individual files from the queue, as well as progress indication for each file.

CONSTRUCTOR ^

IWL::SWFUpload->new ([%ARGS])

Where %ARGS is an optional hash parameter with with key-values.

order

Describes the column order, as well as what colums are visible. The sytax is an array reference. Possible values are:

name

The file name

status

The status of the upload

start

An image, which will start the upload of the file when clicked

stop

An image, which will stop the upload of the file when clicked

remove

An image, which will remove the file when clicked

{name => name, callback => callback, title => title}

If the element is a hash reference, it will be used in the following way: If a title key is present, its value will be shown in the header. A callback key, with a valid javascript function name must be present. The callback will be executed each time a file is queued. The table cell, file and upload objects will be passed to the callback upon execution. A name key, specifying the name of the column, must also be present.

Default value: [name, status, remove]

showHeader

If true, will show the queue header

SIGNALS ^

load

Fires when the widget is loaded.

METHODS ^

bindToUpload (UPLOAD)

Binds the queue to the given upload widget.

Parameters: UPLOAD - an IWL::SWFUpload widget, or a string, which represents the IWL::SWFUpload widget's ID.

LICENCE AND COPYRIGHT ^

Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.