I write a desktop module just like the one in gxt,
include class like Desktop, Shortcut, Taskbar, etc.
the app looks like the picture:
http://dl.javaeye.com/upload/attachm...617142d9fc.jpg
Call the module like this:
It works fine with smartgwt-2.4, from the night builds.
The forum doesn't allow zip file as attachment, download it from : http://dl.javaeye.com/topics/downloa...2-1c3feac07948
include class like Desktop, Shortcut, Taskbar, etc.
the app looks like the picture:
http://dl.javaeye.com/upload/attachm...617142d9fc.jpg
Call the module like this:
Code:
public void onModuleLoad() { initDebugConsole(); initErrorHandler(); desktop = new Desktop(); createMenuAndShortcut(desktop.getTaskBar()); } private void createMenuAndShortcut(TaskBar taskBar) { DesktopWindow contactWindow = new ContactPersonSubPanel(); DesktopWindow documentWindow = new DocumentManagePanel(); DesktopWindow notesWindow = new NotesSubPanel(); DesktopWindow calendarWindow = new CalendarManagePanel(); ToolStrip quickBar = taskBar.getQuickStartBar(); createMenuAndShortcut(contactWindow, quickBar); createMenuAndShortcut(documentWindow, quickBar); createMenuAndShortcut(notesWindow, quickBar); createMenuAndShortcut(calendarWindow, quickBar); quickBar.addSeparator(); DynamicForm form = createSimpleForm(); form.setAlign( Alignment.CENTER); form.setLayoutAlign( VerticalAlignment.CENTER); form.setFields(createSearchItem(), createStyleSelectItem()); quickBar.addMember( form); quickBar.addSeparator(); createSystemButtons(quickBar); quickBar.addSeparator(); }
The forum doesn't allow zip file as attachment, download it from : http://dl.javaeye.com/topics/downloa...2-1c3feac07948
Comment