Class Index | File Index

Classes


Class adf.TextToolbar


Extends adf.Toolbar.

Defined in: Toolbar.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
adf.TextToolbar(id, container, mapId)
Creates a simple text based Toolbar which can be used in an application Example Usages
Fields borrowed from class adf.Toolbar:
divId, mapId, orientation, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, table, tableBody, tableId, TOOL_ITEM_CONTAINER_ID_PREFIX, toolItemNames, toolItems, type
Fields borrowed from class adf.Control:
bounds, divObject, id, updateListenerNames, updateListeners
Method Summary
Method Attributes Method Name and Description
 
addToolItem(toolItem)
This medthod is used to add ToolItems to the toolbar.
 
Process mouse click on tool item cell This Eventhandler is called when the mouse is clicked on the toolitem's cell in the Toolbar
 
Process mouse out on tool item cell This Eventhandler is called when the mouse moves out of the toolitem's cell in the Toolbar
 
Process mouse over on tool item cell This Eventhandler is called when the mouse hovers overs the toolitem's cell in the Toolbar
 
De-activates ToolItem with argument toolId
 
Disables ToolItem with argument toolId
 
Activates ToolItem with argument toolId.
Methods borrowed from class adf.Toolbar:
addImageSeparator, addSeparator, getNextToolbarCell, getToolId, getToolItemContainerId, init, updateAsync
Methods borrowed from class adf.Control:
addUpdateListener, removeUpdateListener
Methods borrowed from class adf.PageElement:
hide, resize, show
Class Detail
adf.TextToolbar(id, container, mapId)
Creates a simple text based Toolbar which can be used in an application Example Usages
var textTb = new adf.TextToolbar("textTb", document.getElementById("textTbHere"), "map1");
var pointTI = new adf.MapPoint("Point", "Point", true, false);
textTb.addToolItem(pointTI);
var lineTI = new adf.MapLine("Line", "Line", true);
textTb.addToolItem(lineTI);
var rectTI = new adf.MapRectangle("Rectangle", "Rectangle", true);
textTb.addToolItem(rectTI);
textTb.setToolItemActive(rectTI);
Parameters:
{String} id
Toolbar control's id. Maps to the JSF toolbar tag's id attribute
{DOMNode} container
Container within which to render the toolbar
{String} mapId
Id of map control that this toolbar is bound to. Maps to the JSF toolbar tag's mapId attribute
Method Detail
addToolItem(toolItem)
This medthod is used to add ToolItems to the toolbar.
Parameters:
{adf.ToolItem} toolItem
The toolitem to add to the toolbar

processMouseClick(event)
Process mouse click on tool item cell This Eventhandler is called when the mouse is clicked on the toolitem's cell in the Toolbar
Parameters:
{Event} event

processMouseOut(event)
Process mouse out on tool item cell This Eventhandler is called when the mouse moves out of the toolitem's cell in the Toolbar
Parameters:
event

processMouseOver(event)
Process mouse over on tool item cell This Eventhandler is called when the mouse hovers overs the toolitem's cell in the Toolbar
Parameters:
{Event} event

setToolItemActive(toolId)
De-activates ToolItem with argument toolId
Parameters:
toolId
The toolid of the toolitem that will be de-activated by this method

setToolItemDisabled(toolId)
Disables ToolItem with argument toolId
Parameters:
toolId
The toolid of the toolitem that will be disabled by this method

setToolItemInactive(toolId)
Activates ToolItem with argument toolId.
Parameters:
{String} toolId
The toolid of the toolitem that will be activated by this method

Documentation generated by JsDoc Toolkit 2.1.0 on Mon May 17 2010 13:45:43 GMT-0700 (PDT)