Zimlet JavaScript API Reference - ZmFolderChooser

Class ZmFolderChooser


Extends DwtComposite.

This is a folder choosing widget designed to be displayed as a dropdown hanging off a menu. Other than that, it works mostly like ZmChooseFolderDialog. Instead of a New button, it has a "New Folder" menu item at the bottom. Items are moved when a menu item is clicked, instead of the OK button in the dialog. The implementation mostly relies on calling ZmChooseFolderDialog and ZmDialog methods, since those were already written. A cleaner implementation would probably include a base widget that this and the dialog would use.

Defined in: ZmFolderChooser.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ZmFolderChooser(params)
Method Summary
Method Attributes Method Name and Description
 
setupFolderChooser(params, selectionCallback)
see ZmChooseFolderDialog.prototype.popup
Methods borrowed from class DwtComposite:
addChild, cleanupSeparators, clear, dispose, getChild, getChildren, getNumChildren, getTabGroupMember, removeChild, removeChildren
Methods borrowed from class DwtControl:
addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setContent, setCursor, setData, setDisplay, setDisplayState, setDragBox, setDragSource, setDropTarget, setEnabled, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setVisible, setZIndex, showAlert, zShow
Class Detail
ZmFolderChooser(params)

Author: Eran Yarkon.
Parameters:
{hash} params
a hash of parameters
{DwtComposite} params.parent
the parent widget
{string} params.className
the CSS class
{constant} params.posStyle
the positioning style (see Dwt)
Method Detail
setupFolderChooser(params, selectionCallback)
see ZmChooseFolderDialog.prototype.popup
Parameters:
params
selectionCallback

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:41 GMT-0400 (EDT)