Package kernel

Class MacaoLook

Methods

MacaoLook objects are used to predefine the view of an object.

See also createLook().

The look may represent a single image to be displayed by the object or it may represent HTML. If you want it to display an image, provide the imageSource parameter in the constructor MacaoLook(). If you want it to display HTML instead, set the imageSource parameter to null and provide HTML.

Method Summary
Element getElement()
     Call this method to get the DOM-element, which surrounds the look content.
String getHTML()
     Use this method to get the HTML, which is to be displayed by this look.
String getImageSource()
     Use this method to get the URL of the image.
String getName()
     Gets the name of the look.
boolean isImage()
     This method calculates, if the look has to display an image rather than HTML.
void setBaseSize(number baseWidth, number baseHeight)
     Sets the base size of the image, which is used for zoom operations.
void setDelta(optional number deltaLeft, optional number deltaTop)
     Sets the shift of the object using this look relative to the standard position.
void setToolTip(String toolTip)
     Call this method to set the tool tip of the look.

Method Details
Element getElement()

String getHTML()

String getImageSource()

String getName()

boolean isImage()

void setBaseSize(number baseWidth, number baseHeight)

void setDelta(optional number deltaLeft, optional number deltaTop)

void setToolTip(String toolTip)