|
GettingStarted
Getting StartedThe simplest dashboard widget is outlined below. The following preconditions are necessary for the widget to build properly:
@WidgetOptions(
height=380,
width=280,
allowNetworkAccess=true,
mainHTML="index.html",
displayName="Gashboard Sample Widget",
version="1.0"
)
public class GashboardSample extends DashboardWidget {
protected void widgetFront(AbsolutePanel front) {
}
protected void widgetBack(AbsolutePanel back) {
}
}Entry Point LayoutYour class must implement two interfaces: widgetFront and widgetBack. Most dashboard widgets will have a main front panel and a back informational panel. If you do not want a back panel, simply leave this method empty. There are two "special" widgets included with Gashboard. InfoButton and BackButton wrap Apple's elements that allow you to flip from the front of the widget to the back of the widget. |