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 |
---|
Call this method to get the DOM-element, which surrounds the look content.
Use this method to get the HTML, which is to be displayed by this look.
Use this method to get the URL of the image.
Gets the name of the look.
This method calculates, if the look has to display an image rather than HTML.
Sets the base size of the image, which is used for zoom operations.
See also MacaoObject.setZoom().
Sets the shift of the object using this look relative to the standard position.
See also MacaoObject.setImage().
Call this method to set the tool tip of the look.
Use this method to give a look an individual tool tip text. Use the method MacaoObject.setToolTip() to set a tool tip for the entire object.