|
Widget Chrome Libary | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
HTMLButtonElement ButtonClose
HTMLButtonElement ButtonConfig
Integer minHeight
Integer minWidth
| Constructor Detail |
WidgetChrome()
| Method Detail |
void addElementToChrome(<Object> element)
element - Can be a HTMLElement or id of an element
void autoResize(<Object> element)
element - Can be a HTMLElement or id of an element
void disableStyleSheet(<String> title)
title - The title attribute of the stylesheet you want to disable
void enableStyleSheet(<String> title)
title - The title attribute of the stylesheet you want to enable
void redraw()
void setFullScreen()
void setSkin(<String> skinName)
skinName - Name of the skin you want to add.
void setTitle(<String> title)
title - The title that is displayed in the caption bar.
void showScrollBars(<Boolean> state)
state - Can be true to enable scrollbars and false to disable them.
|
Widget Chrome Libary | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||