ZCS 6.0:Zimlet Developers Guide:Examples:Panel Item Clicked: Difference between revisions

(New page: {| cellspacing="0" cellpadding="5" style="border: 1px solid rgb(153, 153, 170); margin: 0pt 0.5em 0.5em 0pt; float: none; background-color: rgb(249, 249, 255);" |[[Image:zdg-6-menu-icon-zi...)
 
No edit summary
Line 16: Line 16:
== Description ==
== Description ==


This zimlet will display in the Zimlet panel. Right-click on the zimlet and three menus items will be displayed.
This zimlet will display in the Zimlet panel. Single-click or double-click with the left mouse button on the panel item and the Handler Object <code>singleClicked()</code> and <code>doubleClicked()</code> methods are called.
 
The Zimlet ZIP Package contains only one file: the Zimlet Definition File.


== Definition File ==
== Definition File ==


<pre>
<pre>
<zimlet name="com_zimbra_panelitemmenuxml" version="0.1" description="Demos panel item with menus in XML">
<zimlet name="com_zimbra_panelitemclicked" version="0.1" description="Demos panel item single and double clicked">
    <zimletPanelItem label="Test Panel Item">
<include>com_zimbra_panelitemclicked.js</include>
        <contextMenu>
<handlerObject>com_zimbra_panelitemclickedHandlerObject</handlerObject>
            <menuItem label="Test menu 1.0" id="TEST_MENU_SOME_ID1" />
<zimletPanelItem label="Panel Item Clicked Zimlet">
            <menuItem label="Test menu 2.0" id="TEST_MENU_SOME_ID2" />
<toolTipText>Single or Double Click</toolTipText>
            <menuItem label="Test menu 3.0" id="TEST_MENU_SOME_ID3" />
</zimletPanelItem>
        </contextMenu>
    </zimletPanelItem>
</zimlet>
</zimlet>
</pre>
</pre>

Revision as of 23:15, 14 December 2009

Zdg-6-menu-icon-zimbra.jpg Introduction Zdg-6-menu-icon-green-flag.png Getting Started Zdg-6-menu-icon-terminal.png Dev Environment Setup Zdg-6-menu-icon-gear.png Developing Zimlets Zdg-6-menu-icon-library.jpg API Specifications Zdg-6-menu-icon-checkbox.jpg Example Zimlets

Description

This zimlet will display in the Zimlet panel. Single-click or double-click with the left mouse button on the panel item and the Handler Object singleClicked() and doubleClicked() methods are called.

Definition File

<zimlet name="com_zimbra_panelitemclicked" version="0.1" description="Demos panel item single and double clicked">
	<include>com_zimbra_panelitemclicked.js</include>
	<handlerObject>com_zimbra_panelitemclickedHandlerObject</handlerObject>
	<zimletPanelItem label="Panel Item Clicked Zimlet">
		<toolTipText>Single or Double Click</toolTipText>
	</zimletPanelItem>
</zimlet>

Download

Zimlet Package com_zimbra_panelitemclicked.zip
Jump to: navigation, search