PHP2Go Javascript Framework

Class SlideShow

Object
   |
   +--Widget
         |
         +--SlideShow

class SlideShow
extends Widget

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

background

String background

cnt

Object cnt

delayInput

Object delayInput

desc

Object desc

foreground

Number foreground

image1

Object image1

image2

Object image2

index

Number index

loading

Boolean loading

stopped

Boolean stopped

timer

Object timer

toggleBtn

Object toggleBtn

total

Number total

waiting

Boolean waiting

Constructor Detail

SlideShow

SlideShow(<Object> attrs, <Function> func)

Method Detail

loadNextImage

void loadNextImage()

onImageLoaded

void onImageLoaded(<Event> evt)

onSetDelay

void onSetDelay(<Event> evt)

onTimerEnd

void onTimerEnd()

onToggle

void onToggle(<Event> evt)

resizeImage

void resizeImage(<Object> img)

setup

void setup()

switchImage

void switchImage()

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007