desktop.ui
This module provides all the core UI for the desktop. This controls everything from applets, to panels, to the wallpaper.
Methods
- desktop.ui.save()
- sanitizes each panel as a json object, and writes it to desktop.config.
- desktop.ui.makePanels()
- called only on the first configuration apply (startup). Gets panel information from desktop.config and re-draws each panel.
Widgets
- area
- The main area. Contains the window container, wallpaper, and a filearea.
- panel
- A panel. You can resize these, move these around, etc.
- applet
- applets that appear in the panels
- applets.seperator
- A seperator applet
- applets.clock
- A clock applet with a pop-up calendar
- applets.netmonitor
- A network monitor applet. Flashes during an xhr.
- applets.taskbar
- A taskbar or window list applet.
- applets.menu
- A menu applet with applications.
Writing custom applets
All applets extend the base applet, desktop.ui.applet. This provides basic features such as sanitizing, locking/unlocking, positioning, etc.
The contents of the applet should be added to this.containerNode. Otherwise, you should use this.addChild(). Make sure that during the uninitialize and postCreate methods you call this.inherited("uninitialize OR postCreate", arguments). This allows the applet to setup/cleanup itself.
