SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatImageDisplay
└─SwatImagePreviewDisplay
public class SwatImagePreviewDisplay
extends SwatImageDisplay
| Field Summary | |
|---|---|
| integer | Preview Image height. |
| string | Preview Image. |
| array | Optional array of values to substitute into the preview image property. |
| integer | Preview Image width. |
| Fields inherited from Swat.SwatImageDisplay | |
|---|---|
| alt, height, image, occupy_height, occupy_width, title, values, width | |
| Constructor Summary | |
|---|---|
SwatImagePreviewDisplay(string id) Creates a new image preview display. |
|
| Method Summary | |
|---|---|
| void | display() Displays this image. |
| protected array | Gets the array of CSS classes that are applied to this image display. |
| protected string | Gets inline JavaScript required by this image preview. |
| Methods inherited from Swat.SwatImageDisplay | |
|---|---|
| display, getCSSClassNames | |
| Methods inherited from Swat.SwatControl | |
|---|---|
| addMessage, getNote, printWidgetTree | |
| Methods inherited from Swat.SwatWidget | |
|---|---|
| addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public integer $preview_height = null
Preview Image height
The height attribute in the XHTML img tag.
public string $preview_image
Preview Image
The src attribute in the XHTML img tag.
public array $preview_image_values = array()
Optional array of values to substitute into the preview image property
Uses vsprintf() syntax, for example:
<?php
$my_image->preview_image = 'mydir/%s.%s';
$my_image->preview_image_values = array('myfilename', 'ext');
?>
public integer $preview_width = null
Preview Image width
The width attribute in the XHTML img tag.
public SwatImagePreviewDisplay(string id)
Creates a new image preview display
id - a non-visible unique id for this widget.public void display()
Displays this image
protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this image display
protected string getInlineJavaScript()
Gets inline JavaScript required by this image preview.
Image preview display control
This control displays an image and uses a lightbox-like effect to display another image when the first image is clicked.