|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.desktop.client.Desktop
public class Desktop
A desktop represents a desktop like application which contains a task bar, start menu, and shortcuts.
Rather than adding content directly to the root panel, content should be wrapped in windows. Windows can be opened via shortcuts and the start menu. Desktop requires a 'x-desktop' element in your host page.<div id="x-desktop"> <dl id="x-shortcuts"></dl> </div>
Field Summary | |
---|---|
protected Window |
activeWindow
|
protected LayoutContainer |
desktop
|
protected WindowListener |
listener
|
protected El |
shortcutEl
|
protected java.util.List<Shortcut> |
shortcuts
|
protected TaskBar |
taskBar
|
protected Viewport |
viewport
|
protected java.util.List<Window> |
windows
|
Constructor Summary | |
---|---|
Desktop()
|
Method Summary | |
---|---|
void |
addShortcut(Shortcut shortcut)
Adds a shortcut to the desktop. |
void |
addWindow(Window window)
Adds a window to the desktop. |
LayoutContainer |
getDesktop()
Returns the container of the "desktop", which is the viewport minus the task bar. |
java.util.List<Shortcut> |
getShortcuts()
Returns a list of the desktop's shortcuts. |
StartMenu |
getStartMenu()
Returns the start menu. |
TaskBar |
getTaskBar()
Returns the desktop's task bar. |
java.util.List<Window> |
getWindows()
Returns a list of the desktop's windows. |
protected void |
initListeners()
|
void |
minimizeWindow(Window window)
Minimizes the window. |
protected void |
onHide(Window window)
|
void |
removeShortcut(Shortcut shortcut)
Removes a shortcut from the desktop. |
void |
removeWindow(Window window)
Removes a window from the desktop. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TaskBar taskBar
protected WindowListener listener
protected Viewport viewport
protected LayoutContainer desktop
protected Window activeWindow
protected java.util.List<Shortcut> shortcuts
protected java.util.List<Window> windows
protected El shortcutEl
Constructor Detail |
---|
public Desktop()
Method Detail |
---|
public void addShortcut(Shortcut shortcut)
shortcut
- the shortcut to addpublic void addWindow(Window window)
window
- the window to addpublic LayoutContainer getDesktop()
public StartMenu getStartMenu()
public java.util.List<Shortcut> getShortcuts()
public TaskBar getTaskBar()
public java.util.List<Window> getWindows()
public void minimizeWindow(Window window)
window
- the window to minimizepublic void removeShortcut(Shortcut shortcut)
shortcut
- the shortcut to removepublic void removeWindow(Window window)
window
- the window to removeprotected void initListeners()
protected void onHide(Window window)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |