Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?



Class WidgetChrome

Object
   |
   +--WidgetChrome

class WidgetChrome


A class which paints the chrome and handles resizing.
Defined in chrome.js


Field Summary
HTMLButtonElement ButtonClose
Reference to the close button
HTMLButtonElement ButtonConfig
Reference to the config button
Integer minHeight
The minimum height for the widget
Integer minWidth
The minimum width for the widget
Constructor Summary
WidgetChrome ()
This class is used to make the widget chrome.
Method Summary
void addElementToChrome(<Object> element)
This functions allows you to add HTMLElements to the widget chrome.
void autoResize(<Object> element)
This functions allows you to automatically size a HTMLElement to the widget content area.
void disableStyleSheet(<String> title)
Function to disable a stylesheet at runtime.
void enableStyleSheet(<String> title)
Function to enable a stylesheet at runtime.
void redraw()
A public function to redraw the chrome.
void setFullScreen()
This function makes the widget fullscreen.
void setSkin(<String> skinName)
To set the skin used as the Chrome.
void setTitle(<String> title)
Changes the title of the widget.
void showScrollBars(<Boolean> state)
Set if the scrollbars should be visible if content is more than visible area.
Field Detail

ButtonClose

HTMLButtonElement ButtonClose
Reference to the close button

ButtonConfig

HTMLButtonElement ButtonConfig
Reference to the config button

minHeight

Integer minHeight
The minimum height for the widget

minWidth

Integer minWidth
The minimum width for the widget

Constructor Detail

WidgetChrome

WidgetChrome()
This class is used to make the widget chrome. In your project you need to use the object WidgetChrome.

Method Detail

addElementToChrome

void addElementToChrome(<Object> element)
This functions allows you to add HTMLElements to the widget chrome. Incase you want to add any extra button you can use this function to do that.
Parameters:
element - Can be a HTMLElement or id of an element

autoResize

void autoResize(<Object> element)
This functions allows you to automatically size a HTMLElement to the widget content area.
Parameters:
element - Can be a HTMLElement or id of an element

disableStyleSheet

void disableStyleSheet(<String> title)
Function to disable a stylesheet at runtime. You can switch the skins used on your widget.
Parameters:
title - The title attribute of the stylesheet you want to disable

enableStyleSheet

void enableStyleSheet(<String> title)
Function to enable a stylesheet at runtime. You can switch the skins used on your widget.
Parameters:
title - The title attribute of the stylesheet you want to enable

redraw

void redraw()
A public function to redraw the chrome.

setFullScreen

void setFullScreen()
This function makes the widget fullscreen. This function is normally used on a small screen device to open a widget fullscreen.

setSkin

void setSkin(<String> skinName)
To set the skin used as the Chrome.
Parameters:
skinName - Name of the skin you want to add.

setTitle

void setTitle(<String> title)
Changes the title of the widget.
Parameters:
title - The title that is displayed in the caption bar.

showScrollBars

void showScrollBars(<Boolean> state)
Set if the scrollbars should be visible if content is more than visible area.
Parameters:
state - Can be true to enable scrollbars and false to disable them.



Documentation generated by JSDoc on Tue Jul 22 10:32:34 2008

Libraries