SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatImageDisplay
public class SwatImageDisplay
extends SwatControl
| Field Summary | |
|---|---|
| string | Image alt text. |
| integer | Image height. |
| string | Image. |
| integer | The total height that the image occupies. |
| integer | The total width that the image occupies. |
| string | Image title. |
| array | Optional array of values to substitute into the image property. |
| integer | Image width. |
| Method Summary | |
|---|---|
| void | display() Displays this image. |
| protected array | Gets the array of CSS classes that are applied to this image display. |
| 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 string $alt = null
Image alt text
The alt attribute in the XHTML img tag.
public integer $height = null
Image height
The height attribute in the XHTML img tag.
public string $image
Image
The src attribute in the XHTML img tag.
public integer $occupy_height = null
The total height that the image occupies
Extra margin will be adding to the style of the img tag if the height is less than occupy_height.
public integer $occupy_width = null
The total width that the image occupies
Extra margin will be adding to the style of the img tag if the width is less than occupy_width.
public string $title = null
Image title
The title attribute in the XHTML img tag.
public array $values = array()
Optional array of values to substitute into the image property
Uses vsprintf() syntax, for example:
<?php
$my_image->image = 'mydir/%s.%s';
$my_image->values = array('myfilename', 'ext');
?>
public integer $width = null
Image width
The width attribute in the XHTML img tag.
public void display()
Displays this image
protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this image display
Image display control
This control simply displays a static image.