|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Widget
|
+--SlideShow
Defined in widgets/slideshow.js
| Field Summary | |
String |
background
Current background image |
Object |
cnt
Image count/total text |
Object |
delayInput
Input used to change the delay amount |
Object |
desc
Image description |
Number |
foreground
Current foreground image |
Object |
image1
First image |
Object |
image2
Second image |
Number |
index
Current slide show index |
Boolean |
loading
Indicates if an image is being loaded |
Boolean |
stopped
Indicates if the slide show is stopped |
Object |
timer
Load timer |
Object |
toggleBtn
Toggle button |
Number |
total
Number of images in the slide show |
Boolean |
waiting
Indicates if we're waiting for the end of a timer delay |
| Fields inherited from class Widget |
attributes
|
| Constructor Summary | |
SlideShow
(<Object> attrs, <Function> func)
The SlideShow widget implements a control that display a list of images sequentially, based on an interval. |
|
| Method Summary | |
void
|
loadNextImage()
Loads the next image in the chain |
void
|
onImageLoaded(<Event> evt)
Responds to the "onload" event of the current background image |
void
|
onSetDelay(<Event> evt)
Handles the onblur event on the delay input |
void
|
onTimerEnd()
Called when the slide show timer ends |
void
|
onToggle(<Event> evt)
Handles the click event on the toggle status button |
void
|
resizeImage(<Object> img)
Adjusts the size of an image based on the container dimensions |
void
|
setup()
Initializes the widget |
void
|
switchImage()
Switches the current displayed image |
| Methods inherited from class Widget |
hasAttributes
|
| Field Detail |
String background
Object cnt
Object delayInput
Object desc
Number foreground
Object image1
Object image2
Number index
Boolean loading
Boolean stopped
Object timer
Object toggleBtn
Number total
Boolean waiting
| Constructor Detail |
SlideShow(<Object> attrs, <Function> func)
attrs - Widget's attributes
func - Setup function
| Method Detail |
void loadNextImage()
void onImageLoaded(<Event> evt)
evt - Event
void onSetDelay(<Event> evt)
evt - Event
void onTimerEnd()
void onToggle(<Event> evt)
evt - Event
void resizeImage(<Object> img)
img - Image
void setup()
void switchImage()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||