public class ElementDesktop extends ElementUI
autoEnable, autoHide, EVENT_ELEMENT_ACTIVATE, EVENT_ELEMENT_INACTIVATE, log| Constructor and Description |
|---|
ElementDesktop(CareWebShell shell) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(ElementBase child)
Overrides addChild to suppress onAddChild events for internally created children.
|
org.fujion.component.Menuitem |
addHelpMenu(PluginResourceHelp resource)
Adds a menu item for the specified help resource.
|
org.fujion.component.Menuitem |
addHelpMenu(String namedPath,
String action)
Adds a menu item to the help menu subtree.
|
org.fujion.component.BaseMenuComponent |
addMenu(String namePath,
String action,
boolean fixed)
Adds a 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.
|
ElementMenubar |
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.
|
ElementToolbar |
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 |
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.
|
activate, activateChildren, addTrigger, afterAddChild, afterMoveChild, afterParentChanged, afterRemoveChild, applyColor, applyColor, applyHint, applyHint, associateComponent, beforeParentChanged, bind, bringToFront, createFromTemplate, createFromTemplate, createFromTemplate, destroy, fullSize, getAssociatedElement, getColor, getDesignContextMenu, getFirstVisibleChild, getHint, getInnerComponent, getLastVisibleChild, getMaskMode, getMaskTarget, getNextSibling, getOuterComponent, getParent, getRoot, getTemplateUrl, getTriggers, hasVisibleElements, isActivated, isVisible, rebindChildren, removeTrigger, setColor, setDesignContextMenu, setDesignContextMenu, setDesignMode, setHint, setInnerComponent, setMaskMode, setOuterComponent, setVisible, unbind, updateState, updateVisibility, updateVisibilityabout, addChild, afterInitialize, beforeAddChild, beforeInitialize, beforeRemoveChild, canAcceptChild, canAcceptChild, canAcceptChild, canAcceptChild, canAcceptParent, canAcceptParent, canAcceptParent, canAcceptParent, editProperties, findChildElement, getAncestor, getChild, getChild, getChildCount, getChildCount, getChildren, getChildren, getDefinition, getDisplayName, getEventManager, getFirstChild, getIndex, getInstanceName, getLastChild, getPropEditClass, getRejectReason, getSerializableChildren, hasAncestor, hasChild, indexOfChild, isContainer, isDesignMode, isEnabled, isLocked, listenToChild, listenToParent, moveChild, moveChild, notifyChildren, notifyParent, registerAllowedChildClass, registerAllowedParentClass, remove, removeChild, removeChildren, setDefinition, setDefinition, setEnabled, setIndex, setLocked, setParent, setRejectReason, updateParentStatepublic ElementDesktop(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 ElementToolbar getToolbar()
public ElementMenubar getMenubar()
public void addChild(ElementBase child)
addChild in class ElementBasechild - Element to add as a child.public org.fujion.component.BaseMenuComponent 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.fujion.component.Menuitem 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.fujion.component.Menuitem 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 © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.