SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A control element to organize toolbar items.
This class is part of the module controls.
Constructor Summary | |
IWToolbarControl(map)
Creates a new toolbar control. |
Method Summary | |
void
|
addItem(item)
Adds a new item to the toolbar. |
IWToolbarItem
|
getItem(name)
Returns the toolbar item by its name. |
void
|
removeItem(item)
Removes the specific item from the toolbar. |
String
|
toString()
Returns a string representation of this toolbar. |
Event Summary | |
void
|
triggerOnAppendEnd(event)
The onAppendEnd event is fired after a toolbar item has been appended to the toolbar control. Register an event listener with IWEventManager.addListener(toolbarObject, 'onappendend', yourHandlerMethod(event)); to receive the IWToolbarEvent. |
void
|
triggerOnAppendStart(event)
The onAppendStart event is fired before a toolbar item is appended to the toolbar control. Register an event listener with IWEventManager.addListener(toolbarObject, 'onappendstart', yourHandlerMethod(event)); to receive the IWToolbarEvent. |
void
|
triggerOnClick(event)
The onClick event is fired when a toolbar item is clicked. Register an event listener with IWEventManager.addListener(toolbarObject, 'onclick', yourHandlerMethod(event)); to receive the IWToolbarEvent. |
void
|
triggerOnMouseOut(event)
The onMouseOut event is fired when the mouse pointer leaves a toolbar item. Register an event listener with IWEventManager.addListener(toolbarObject, 'onmouseout', yourHandlerMethod(event)); to receive the IWToolbarEvent. |
void
|
triggerOnMouseOver(event)
The onMouseOver event is fired when the mouse pointer is over a toolbar item. Register an event listener with IWEventManager.addListener(toolbarObject, 'onmouseover', yourHandlerMethod(event)); to receive the IWToolbarEvent. |
void
|
triggerOnRemove(event)
The onRemove event is fired after the item has been removed from the toolbar. Register an event listener with IWEventManager.addListener(toolbarObject, 'onremove', yourHandlerMethod(event)); to receive the IWToolbarEvent. |
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 |
IWToolbarControl(map)
IWMap map
- the map
Method Detail |
void addItem(item)
IWToolbarItem item
void
IWToolbarItem getItem(name)
name
IWToolbarItem
item
void removeItem(item)
IWToolbarItem item
void
String toString()
String
Event Detail |
void triggerOnAppendEnd(event)
Register an event listener with IWEventManager.addListener(toolbarObject, 'onappendend', yourHandlerMethod(event)); to receive the IWToolbarEvent.
IWToolbarEvent event
- the toolbar event
void
void triggerOnAppendStart(event)
Register an event listener with IWEventManager.addListener(toolbarObject, 'onappendstart', yourHandlerMethod(event)); to receive the IWToolbarEvent.
IWToolbarEvent event
- the toolbar event
void
void triggerOnClick(event)
Register an event listener with IWEventManager.addListener(toolbarObject, 'onclick', yourHandlerMethod(event)); to receive the IWToolbarEvent.
IWToolbarEvent event
- the toolbar event
void
void triggerOnMouseOut(event)
Register an event listener with IWEventManager.addListener(toolbarObject, 'onmouseout', yourHandlerMethod(event)); to receive the IWToolbarEvent.
IWToolbarEvent event
- the toolbar event
void
void triggerOnMouseOver(event)
Register an event listener with IWEventManager.addListener(toolbarObject, 'onmouseover', yourHandlerMethod(event)); to receive the IWToolbarEvent.
IWToolbarEvent event
- the toolbar event
void
void triggerOnRemove(event)
Register an event listener with IWEventManager.addListener(toolbarObject, 'onremove', yourHandlerMethod(event)); to receive the IWToolbarEvent.
IWToolbarEvent event
- the toolbar event
void