SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class providing a slide-in menu. It can add other control elements, using the IWLayoutManager.
Author: KUN, JANConstructor Summary | |
IWSlideInMenuControl(map, size, direction)
Creates a new slide-in menu. |
Method Summary | |
void
|
adjustBackground(size)
Adjusts the size of the Background if Panelsize has changed. |
void
|
close()
Sets the menu to closed (without movement) |
void
|
collapse()
Closes the menu smoothly |
void
|
expand()
Opens the menu smoothly |
string
|
getBackgroundColor()
Returns the background color. |
IWLayoutManager
|
getLayoutManager()
Returns the LayoutManager for this menu. |
float
|
getOpacity()
Returns the opacity. |
IWSize
|
getSize()
Returns the size of the menu. |
boolean
|
isOpen()
Returns true if the slide-in menu is open otherwise false .
|
void
|
open()
Sets the menu to opened (without movement) |
void
|
setBackgroundColor(color)
Sets the background color. There are three possible notations: Hexadecimal notation, e.g. |
void
|
setHorizontalScroll(scroll)
Sets the horizontal scroll attribute of the content panel. |
void
|
setOpacity(alpha)
Sets the opacity. |
|
setSize(size)
Sets the size of the slideInMenu. |
void
|
setVerticalScroll(scroll)
Sets the vertical scroll attribute of the content panel. |
String
|
toString()
Returns a string representation of this SlideInMenu. |
Event Summary | |
void
|
triggerOnCloseStart()
The onCloseStart event is fired before the slide-in menu is closed. Register an event listener with IWEventManager.addListener(theSlideInMenu, 'onclosestart', yourHandlerMethod(event)); to receive the event. |
void
|
triggerOnOpenStart()
The onOpenStart event is fired before the slide-in menu is opened. Register an event listener with IWEventManager.addListener(theSlideInMenu, 'onopenstart', yourHandlerMethod(event)); to receive the event. |
Constructor Detail |
IWSlideInMenuControl(map, size, direction)
IWMap map
- the map
IWSize size
- in pixel
IWAlignment direction
- The direction the menu expands to
Method Detail |
void adjustBackground(size)
IWSize size
- in pixel
void
void close()
void
void collapse()
void
void expand()
void
string getBackgroundColor()
string
color
IWLayoutManager getLayoutManager()
IWLayoutManager
layoutManager
float getOpacity()
float
alpha an alpha value between 0 and 1
IWSize getSize()
IWSize
size
boolean isOpen()
true
if the slide-in menu is open otherwise false
.
boolean
void open()
void
void setBackgroundColor(color)
string color
void
void setHorizontalScroll(scroll)
IWPanelControl.setHorizontalScroll()
.
String scroll
void
void setOpacity(alpha)
float alpha
- an alpha value between 0 and 1
void
setSize(size)
IWSize size
- in pixel
void setVerticalScroll(scroll)
IWPanelControl.setVerticalScroll()
.
String scroll
void
String toString()
String
Event Detail |
void triggerOnCloseStart()
Register an event listener with IWEventManager.addListener(theSlideInMenu, 'onclosestart', yourHandlerMethod(event)); to receive the event.
void
void triggerOnOpenStart()
Register an event listener with IWEventManager.addListener(theSlideInMenu, 'onopenstart', yourHandlerMethod(event)); to receive the event.
void