com.buglabs.application
Interface IDesktopApp


public interface IDesktopApp

A service that can be utilized to create a Desktop UI like experience for OSGi bundles. Loosely based on the ConciergeGUI bundle at http://concierge.sourceforge.net


Method Summary
 void click()
          Application icon has been clicked.
 java.net.URL getIcon(int width, int height, int depth)
          A custom icon can be displayed.
 java.lang.String[] getMenuItems()
          Apps can optionally contribute a flat set of menu items that are displayed in the App Icon view.
 void menuSelected(java.lang.String item)
          Call back for when an item is selected by user.
 

Method Detail

click

void click()
Application icon has been clicked. Applications will typically want to create or set focus to their primary UIs in here.


getIcon

java.net.URL getIcon(int width,
                     int height,
                     int depth)
A custom icon can be displayed. If null returned a default image will be used.

Returns:
URL to an icon to be displayed

getMenuItems

java.lang.String[] getMenuItems()
Apps can optionally contribute a flat set of menu items that are displayed in the App Icon view. IDesktopApp.menuSelected() will be called with the name of item when user selects that entry.

Returns:
a list of menu items for this application.

menuSelected

void menuSelected(java.lang.String item)
Call back for when an item is selected by user.

Parameters:
item -