SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class providing a slide-in menu. It can add other control elements, using the IWLayoutManager.
This class is part of the module controls.
Constructor 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. |
Methods inherited from class IWMapElement |
isDisplayed() |
getParent() |
setParent(parent) |
isVisible() |
setVisible(visible) |
setPrintable(printable) |
isPrintable() |
setContainerClassname(classname) |
getContainer() |
setContainer(newContainer) |
setId(id) |
getId() |
onContextMenu(event) |
onMouseUp(event) |
onMouseDown(event) |
onMouseMove(event) |
onMouseOut(event) |
onMouseOver(event) |
onClick(event) |
onDblClick(event) |
onSelect(event) |
onMouseWheel(event) |
beforeAppend() |
afterAppend() |
beforeRemove() |
afterRemove() |
destroyMapElement() |
registerEvents(container) |
Methods inherited from class IWControl |
isControl() |
isRedrawable() |
setRedrawable(isRedrawable) |
getPadding() |
setPadding(newPadding) |
setFirstOrientation(alignment) |
getFirstOrientation() |
setSecondOrientation(alignment) |
getSecondOrientation() |
getName() |
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