PDA

View Full Version : GXT Web Desktop



vprasad
10 Sep 2008, 8:29 PM
Hi,

Iam using GXT 1.1 alpha 4 and GWT 1.5.2

I used the Desktop class of GXT to build a desktop application.
I added shortcuts to the desktop.
Iam able to click the shortcut and can open new windows in IE 7.
When iam trying the same in firefox, the shortcuts were not active (No image appears and the shortlink is inactive).

Another issue iam facing is whenever i close a window, the window is getting closed but the taskbar item for the window is not getting closed.


The following is the code snippet



// Creation of desktop
Desktop desktop = new desktop ()

// Creation of shortcut
controlPanelShortcut = new Shortcut ();
optionsWindow = OptionsWindow.getInstance();
controlPanelShortcut.setStyleName("ToolsIcon");
controlPanelShortcut.setText("Control Panel");
controlPanelShortcut.setData("window", optionsWindow);
controlPanelShortcut.addSelectionListener(listener);

// Adding shortcut to desktop
desktop.addShortcut(controlPanelShortcut);


// Creating menu Item
MenuItem menuItem = new MenuItem("Control Panel");
menuItem.setData("window", optionsWindow);
menuItem.setIconStyle("ToolsIcon");
menuItem.addSelectionListener(listener);
return menuItem;

// Add menu Item to taskar
taskbar = desktop.getTaskBar();
startMenu = taskbar.getStartMenu();
startMenu.addTool(controlPanelMenuItem);

Please let me know how to reslove these issues.

Thanks in advance.
Prasad.