SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface which has to be implemented by all map elements such as overlays and controls.
Author: JANConstructor Summary | |
IWMapElement(parent)
MapElement interface. |
Method Summary | |
void
|
afterAppend()
Callback method. This method will be called after the element has been added to the DOM. event. |
void
|
afterRemove()
Callback method. This method will be called after the element has been removed from the DOM. this event. |
void
|
beforeAppend()
Callback method. This method will be called before the element has been added to the DOM. event. |
void
|
beforeRemove()
Callback method. This method will be called before the element has been removed from the DOM. this event. |
void
|
destroyMapElement()
Releases all event listeners from the container. |
HTMLDivElement
|
getContainer()
Returns the DIV container for this map element. |
String
|
getId()
Returns the id for this element. |
HTMLDivElement
|
getParent()
Returns the parent container for this element. |
boolean
|
isDisplayed()
Checks if the element has been added to the DOM tree. |
boolean
|
isPrintable()
Returns true if the element is printable otherwise false. |
boolean
|
isVisible()
Returns true if the container is visible, otherwise false. |
void
|
onClick(event)
Callback method for onclick events. |
void
|
onContextMenu(event)
Callback method for oncontextmenu events. |
void
|
onDblClick(event)
Callback method for ondblclick events. |
void
|
onMouseDown(event)
Callback method for onmousedown events. |
void
|
onMouseMove(event)
Callback method for onmousemove events. |
void
|
onMouseOut(event)
Callback method for onmouseout events. |
void
|
onMouseOver(event)
Callback method for onmouseover events. |
void
|
onMouseUp(event)
Callback method for onmouseup events. |
void
|
onMouseWheel(event)
Callback method for onmousewheel events. |
void
|
onSelect(event)
Callback method for onselect events. |
void
|
setContainer(newContainer)
Sets the DIV container for this map element. |
|
setContainerClassname(classname)
Sets the classname of the container. containers classname because it preserves the classname set by setPrintable(false). |
void
|
setId(id)
Sets the id for this element. |
HTMLDivElement
|
setParent(newParent)
Sets the parent container for this element. |
void
|
setPrintable(printable)
Enables or disables the element for printing. |
void
|
setVisible(visible)
Sets the visibility of this control to visible or hidden. |
Constructor Detail |
IWMapElement(parent)
HTMLDivElement parent
Method Detail |
void afterAppend()
void
void afterRemove()
void
void beforeAppend()
void
void beforeRemove()
void
void destroyMapElement()
void
HTMLDivElement getContainer()
HTMLDivElement
the container
String getId()
String
HTMLDivElement getParent()
HTMLDivElement
parent
boolean isDisplayed()
boolean
boolean isPrintable()
boolean
boolean isVisible()
boolean
true if this container is visible
void onClick(event)
Event event
void
void onContextMenu(event)
Event event
void
void onDblClick(event)
Event event
void
void onMouseDown(event)
Event event
void
void onMouseMove(event)
Event event
void
void onMouseOut(event)
Event event
void
void onMouseOver(event)
Event event
void
void onMouseUp(event)
Event event
void
void onMouseWheel(event)
Event event
void
void onSelect(event)
Event event
void
void setContainer(newContainer)
HTMLDivElement newContainer
void
setContainerClassname(classname)
classname
void setId(id)
String id
void
HTMLDivElement setParent(newParent)
newParent
HTMLDivElement
newParent
void setPrintable(printable)
boolean printable
void
void setVisible(visible)
boolean visible
void