Class Index | File Index

Classes


Class Exanpe.Slider

Represents a Slider. Can be accessed through JavaScript by its id.
Defined in: exanpe-t5-lib.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Exanpe.Slider(id, min, max, displayId, ajax, url, zone)
Constructor
Field Summary
Field Attributes Field Name and Description
 
Is ajax mode or not
 
The HTML id element to display the value, or null
 
id
The id of the instance
 
max
The maximum slider value
 
min
The minimum slider value
 
Current request
 
Pixels number for 1 unit
 
url
Used to execute an AJAX request for updating the Slider
 
yui
This wrapped yui slider instance
 
Used to update a Tapestry zone element
Method Summary
Method Attributes Method Name and Description
 
getValue(value)
Get the value of the slider.
 
setValue(value, skipSlider)
Set the value of the slider.
Class Detail
Exanpe.Slider(id, min, max, displayId, ajax, url, zone)
Constructor
Parameters:
{String} id
the id of the slider element
{int} min
the minimum slider value
{int} max
the maximum slider value
{String} displayId
the HTML element id to display the value, or null if no display
{Boolean} ajax
whether the Slider update is executed in Ajax mode, or not
{String} url
the url used to execute AJAX request
{String} zone
the Tapestry zone element to update at the end of the ajax request
Field Detail
ajax
Is ajax mode or not

displayId
The HTML id element to display the value, or null

id
The id of the instance

max
The maximum slider value

min
The minimum slider value

request
Current request

unit
Pixels number for 1 unit

url
Used to execute an AJAX request for updating the Slider

yui
This wrapped yui slider instance

zone
Used to update a Tapestry zone element
Method Detail
{int} getValue(value)
Get the value of the slider.
Parameters:
value
Returns:
{int} the value of the slider

setValue(value, skipSlider)
Set the value of the slider.
Parameters:
{int} value
the value to set
{Boolean} skipSlider
whether the slider value update should me skipped. Set to true if the value initially comes from the YUI component.

Documentation generated by JsDoc Toolkit 2.0.0 on Mon Jan 09 2012 21:35:39 GMT+0100 (CET)