ORG.oclc.gadgets
Class ImageDisplay
java.lang.Object
|
+--ORG.oclc.gadgets.ImageDisplay
- public class ImageDisplay
- extends Object
- implements GadgetBuilder
The ImageDisplay class is a gadget that builds the HTML for the
thumbnail display of images from a newton database containing
binary images. It uses the parameters contained in
a RequestManager object and the parameters for the gadget read
from the configuration files to build the appropriate output.
If an error occurs, an empty string("") is returned.
The HTML generated contains an anchor for displaying the
image associated with the record. The image number is based on
the value in "imageitem"
Constructor Summary |
ImageDisplay()
Constructs an ImageDisplay object. |
Method Summary |
String |
buildit(RequestManager rMngr,
String name)
Generates a String containing the HTML necessary to display
an image for a database containing a series of images,
using the parameters containined in the RequestManager
object and the name of the gadget. |
String |
toString()
Generates a String representation of the object. |
ImageDisplay
public ImageDisplay()
- Constructs an ImageDisplay object.
buildit
public String buildit(RequestManager rMngr,
String name)
- Generates a String containing the HTML necessary to display
an image for a database containing a series of images,
using the parameters containined in the RequestManager
object and the name of the gadget.
- Specified by:
- buildit in interface GadgetBuilder
- Parameters:
rMngr
- object containing input parameters for the request.name
- the name of the gadget - the section name in the configuration
file defining the particular gadget.- Returns:
- String
toString
public String toString()
- Generates a String representation of the object.
- Specified by:
- toString in interface GadgetBuilder
- Returns:
- String
- Overrides:
- toString in class Object