ERDZoomableImage Class Reference

Inherits er::extensions::components::ERXStatelessComponent.

Collaboration diagram for ERDZoomableImage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Boolean disableZoom ()
Boolean enableZoom ()
 ERDZoomableImage (WOContext context)
String imageSrc ()
boolean isThumbnailSrcNullOrEmpty ()
String jsToZoomImage ()
String noImageString ()
boolean synchronizesVariablesWithBindings ()
String thumnailSrc ()
Integer zoomHeight ()
Integer zoomWidth ()

Static Public Attributes

static final Logger log = Logger.getLogger(ERDZoomableImage.class)

Package Functions

String thumbnailSrcNoFallBack ()


Detailed Description

This stateless component:

src - source url for the image to be displaed. mandatory for this component to work properly. height - height of the image to be displayed in the page. width- width of the image to be displayed in the page. zoomWidth - width of the zoomed image. defaults to 200. zoomHeight - height of the zoomed image. defaults to 200. thumbnailSrc - source url for the thumbnail. if null, src binding with height and width is used. title - title for the image. used as tooltip in thumbnail mode [optional] enableZoomForImage - true/false. if true, clicking on thumbnail will popup the full size image. If false, clicking is not allowed.

Author:
rajaram

Constructor & Destructor Documentation

ERDZoomableImage ( WOContext  context  ) 


Member Function Documentation

Boolean disableZoom (  ) 

Boolean enableZoom (  ) 

controlled by key: enableZoomForImage and if either thumbnailSrc or height or width is present (there is no point zooming without these properties passed in)

Returns:
Boolean - true, if zooming is allowed. false, otherwise.

String imageSrc (  ) 

Returns:
String - source of the zoomable image.

boolean isThumbnailSrcNullOrEmpty (  ) 

Returns:
Boolean true, if ERDZoomableImage#thumnailSrc() returns an empty or null string false, otherwise

String jsToZoomImage (  ) 

String noImageString (  ) 

Returns:
String to use when imageSrc() turns out to be null

boolean synchronizesVariablesWithBindings (  ) 

component does not synchronize variables

Reimplemented from ERXNonSynchronizingComponent.

String thumbnailSrcNoFallBack (  )  [package]

String thumnailSrc (  ) 

Returns:
String - src for the thumbnail to be displayed in the page. defaults to imageSrc, if null.

Integer zoomHeight (  ) 

Returns:
Integer height to zoom to (defaults to 200)

Integer zoomWidth (  ) 

Returns:
Integer width to zoom to (defaults to 200)


Member Data Documentation

final Logger log = Logger.getLogger(ERDZoomableImage.class) [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:52 2012 for Project Wonder by  doxygen 1.5.8