silverorange Code


Swat.SwatImageDisplay
/Swat/SwatImageDisplay.php at line 17

Class SwatImageDisplay

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatImageDisplay

public class SwatImageDisplay
extends SwatControl

Image display control

This control simply displays a static image.

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
string

$alt

Image alt text.

integer

$height

Image height.

string

$image

Image.

integer

$occupy_height

The total height that the image occupies.

integer

$occupy_width

The total width that the image occupies.

string

$title

Image title.

array

$values

Optional array of values to substitute into the image property.

integer

$width

Image width.

Method Summary
void

display()

Displays this image.

protected array

getCSSClassNames()

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

Field Detail

/Swat/SwatImageDisplay.php at line 98

alt

public string $alt = null

Image alt text

The alt attribute in the XHTML img tag.


/Swat/SwatImageDisplay.php at line 51

height

public integer $height = null

Image height

The height attribute in the XHTML img tag.


/Swat/SwatImageDisplay.php at line 28

image

public string $image

Image

The src attribute in the XHTML img tag.


/Swat/SwatImageDisplay.php at line 70

occupy_height

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.


/Swat/SwatImageDisplay.php at line 80

occupy_width

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.


/Swat/SwatImageDisplay.php at line 89

title

public string $title = null

Image title

The title attribute in the XHTML img tag.


/Swat/SwatImageDisplay.php at line 42

values

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');
?>


/Swat/SwatImageDisplay.php at line 60

width

public integer $width = null

Image width

The width attribute in the XHTML img tag.


Method Detail

/Swat/SwatImageDisplay.php at line 106

display

public void display()

Displays this image


/Swat/SwatImageDisplay.php at line 168

getCSSClassNames

protected array getCSSClassNames()

Gets the array of CSS classes that are applied to this image display

Returns:
the array of CSS classes that are applied to this image display.
See Also:
SwatUIObject::getCSSClassString()

silverorange Code