public class UIElementDesktop extends UIElementZKBase
autoEnable, autoHide, log, maxChildren| Constructor and Description |
|---|
UIElementDesktop(CareWebShell shell) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(boolean activate)
Forces a recalculation of window size when activation state changes.
|
void |
addChild(UIElementBase child)
Overrides addChild to suppress onAddChild events for internally created children.
|
org.zkoss.zul.Menu |
addHelpMenu(PluginResourceHelp resource)
Adds a menu item for the specified help resource.
|
org.zkoss.zul.Menu |
addHelpMenu(String namedPath,
String action)
Adds a menu item to the help menu subtree.
|
org.zkoss.zul.Menu |
addMenu(String namePath,
String action,
boolean fixed)
Adds a ZK menu item to the main menu.
|
void |
clear()
Resets the desktop by removing all children and help menu items.
|
protected void |
clearHelpMenu()
Remove all non-fixed items from help menu.
|
String |
getAppId()
Returns the application id of this instance.
|
HelpViewer.HelpViewerMode |
getHelpViewerMode()
Returns the help viewer display mode for this desktop.
|
String |
getIcon()
Returns the url for the title bar icon.
|
UIElementMenubar |
getMenubar()
Returns the desktop's menu bar.
|
CareWebShell |
getShell()
Returns the shell that contains this desktop.
|
ThemeUtil.PanelStyle |
getStyle()
Returns the panel style to use for the desktop.
|
String |
getTitle()
Returns the title text.
|
UIElementToolbar |
getToolbar()
Returns the desktop's tool bar.
|
boolean |
hasAppId(String appId)
Returns true if the application id specified matches the desktop's application id.
|
void |
setAppId(String appId)
Sets the application id of this instance.
|
void |
setDesignMode(boolean designMode)
Augments the parent method by activating the associated design context menu when design mode
is activated.
|
void |
setHelpViewerMode(HelpViewer.HelpViewerMode mode)
Sets the help viewer display mode for this desktop.
|
void |
setIcon(String url)
Sets the url for the title bar icon.
|
void |
setStyle(ThemeUtil.PanelStyle style)
Sets the panel style to use for the desktop.
|
void |
setTitle(String text)
Sets the title text.
|
afterMoveTo, applyColor, applyHint, associateComponent, bind, createFromTemplate, createFromTemplate, createFromTemplate, editProperties, fullSize, getAssociatedUIElement, getEnableDesignModeMask, getInnerComponent, getOuterComponent, getParent, getTemplateUrl, hasVisibleElements, moveChild, setDesignContextMenu, setDesignContextMenu, setEnableDesignModeMask, setInnerComponent, setOuterComponent, swapChildren, unbind, updateVisibilityabout, activateChildren, addChild, afterAddChild, afterInitialize, afterParentChanged, afterRemoveChild, applyColor, applyHint, beforeAddChild, beforeInitialize, beforeParentChanged, beforeRemoveChild, bringToFront, canAcceptChild, canAcceptChild, canAcceptChild, canAcceptChild, canAcceptParent, canAcceptParent, canAcceptParent, canAcceptParent, destroy, findChildElement, getAncestor, getChild, getChild, getChildCount, getChildren, getColor, getDefinition, getDisplayName, getEventManager, getFirstChild, getFirstVisibleChild, getHint, getIndex, getInstanceName, getLastChild, getLastVisibleChild, getNextSibling, getPropEditClass, getRejectReason, getRoot, getSerializableChildren, hasAncestor, hasChild, indexOfChild, isActivated, isContainer, isDesignMode, isEnabled, isLocked, isVisible, raise, raise, registerAllowedChildClass, registerAllowedParentClass, remove, removeChild, removeChildren, setColor, setDefinition, setDefinition, setEnabled, setHint, setIndex, setLocked, setParent, setRejectReason, setVisible, updateParentState, updateState, updateVisibilitypublic UIElementDesktop(CareWebShell shell) throws Exception
Exceptionpublic String getTitle()
public void setTitle(String text)
text - The title text. Can be null;public String getIcon()
public void setIcon(String url)
url - Url of the title bar icon.public ThemeUtil.PanelStyle getStyle()
public void setStyle(ThemeUtil.PanelStyle style)
style - The panel style.public void setAppId(String appId)
appId - The application id.public String getAppId()
public boolean hasAppId(String appId)
appId - The application id.public CareWebShell getShell()
public void clear()
public UIElementToolbar getToolbar()
public UIElementMenubar getMenubar()
public void addChild(UIElementBase child)
addChild in class UIElementBasechild - Element to add as a child.public void activate(boolean activate)
activate in class UIElementZKBaseactivate - The activate status.public void setDesignMode(boolean designMode)
UIElementZKBasesetDesignMode in class UIElementZKBasedesignMode - If true, design mode is activated.public org.zkoss.zul.Menu addMenu(String namePath, String action, boolean fixed)
namePath - Determines the position of the menu item in the menu tree by caption text.action - The action to be executed when the menu item is clicked.fixed - If true, add to fixed menu. Otherwise, add to configurable menu.public org.zkoss.zul.Menu addHelpMenu(String namedPath, String action)
namedPath - Determines the position of the new menu item within the help menu subtree.action - The action to be invoked when the menu item is clicked.public org.zkoss.zul.Menu addHelpMenu(PluginResourceHelp resource)
resource - The help resource.protected void clearHelpMenu()
public HelpViewer.HelpViewerMode getHelpViewerMode()
public void setHelpViewerMode(HelpViewer.HelpViewerMode mode)
mode - The new help viewer display mode.Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.