public class CareWebShell
extends org.zkoss.zul.Div
implements org.zkoss.zk.ui.ext.AfterCompose
| Modifier and Type | Field and Description |
|---|---|
String |
LBL_CONFIRM_CLOSE |
String |
LBL_LOGOUT_CANCEL |
String |
LBL_LOGOUT_CONFIRMATION |
String |
LBL_LOGOUT_CONFIRMATION_CAPTION |
String |
LBL_NO_LAYOUT |
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
CareWebShell()
Create the shell instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.zkoss.zul.Menu |
addMenu(String path,
String action)
Adds a menu.
|
void |
addToolbarComponent(org.zkoss.zk.ui.Component component)
Adds a component to the common tool bar.
|
void |
afterCompose()
Perform additional initializations.
|
void |
buildUI(UILayout layout)
Build the UI based on the specified layout.
|
void |
clearMessages()
Clears all slide-down messages;
|
void |
clearMessages(String tag)
Clears all slide-down messages with specified tag;
|
PluginContainer |
getActivatedPlugin(String id)
Locates an activated plugin with the specified id.
|
Iterable<PluginContainer> |
getActivatedPlugins()
Returns a list of all active plugins.
|
Collection<PluginContainer> |
getActivatedPlugins(Collection<PluginContainer> list)
Populates a list of all activated plugins.
|
static String |
getApplicationName()
Returns the application name for this instance of the CareWeb shell.
|
org.zkoss.zk.ui.event.ClientInfoEvent |
getClientInformation()
Return information about the browser client.
|
String |
getLayout()
Returns the name of the layout to be loaded.
|
PluginContainer |
getLoadedPlugin(String id)
Locates a loaded plugin with the specified id.
|
PluginContainer |
getLoadedPlugin(String id,
boolean forceInit)
Locates a loaded plugin with the specified id.
|
Iterable<PluginDefinition> |
getLoadedPluginDefinitions()
Returns a list of all plugin definitions that are currently in use (i.e., have associated
plugins loaded) in the environment.
|
Iterable<PluginContainer> |
getLoadedPlugins()
Returns a list of all plugins currently loaded into the UI.
|
List<String> |
getPropertyGroups()
Returns a list of property groups bound to loaded plugins.
|
UIElementDesktop |
getUIDesktop()
Returns a reference to the current UI desktop.
|
UILayout |
getUILayout()
Returns a reference to the current UI layout.
|
boolean |
isAutoStart()
Returns the auto-start setting.
|
void |
loadLayoutByAppId()
Loads a layout based on the appId query parameter setting.
|
void |
loadLayoutByAppId(String appId)
Loads the layout associated with the given application id.
|
void |
loadLayoutFromResource(String resource)
Loads a layout from the specified resource.
|
void |
lock()
Lock the desktop.
|
void |
logout()
Logout user after confirmation prompt.
|
void |
onCommand(CommandEvent event)
Handle help requests.
|
void |
onCtrlKey(org.zkoss.zk.ui.event.Event event)
Capture unhandled shortcut key press events.
|
void |
registerHelpResource(PluginResourceHelp resource)
Registers a help resource.
|
void |
registerPlugin(PluginContainer plugin)
Registers a plugin and its resources.
|
void |
registerPropertyGroup(String propertyGroup)
Registers a property group.
|
void |
registerStyleSheet(String url)
Registers an external style sheet.
|
void |
reset()
Resets the desktop to its baseline state and clears registered help modules and property
groups.
|
void |
setAutoStart(boolean autoStart)
Sets the auto-start setting.
|
void |
setLayout(String defaultLayoutName)
Sets the layout to be loaded.
|
void |
showMessage(MessageWindow.MessageInfo messageInfo)
Shows a slide-down message.
|
void |
showMessage(String message)
Shows a slide-down message.
|
void |
showMessage(String message,
String caption)
Shows a slide-down message.
|
void |
showMessage(String message,
String caption,
String color)
Shows a slide-down message.
|
void |
showMessage(String message,
String caption,
String color,
int duration)
Shows a slide-down message.
|
void |
showMessage(String message,
String caption,
String color,
Integer duration,
String tag)
Shows a slide-down message.
|
void |
showMessage(String message,
String caption,
String color,
Integer duration,
String tag,
String action)
Shows a slide-down message.
|
void |
start()
Executed once all plugins are loaded.
|
void |
unregisterPlugin(PluginContainer plugin)
Unregisters a plugin and its resources.
|
clone, getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltipfocus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, willPassivate, willPassivate, willSerialize, willSerializeprotected static final org.apache.commons.logging.Log log
public final String LBL_CONFIRM_CLOSE
public final String LBL_NO_LAYOUT
public final String LBL_LOGOUT_CONFIRMATION
public final String LBL_LOGOUT_CONFIRMATION_CAPTION
public final String LBL_LOGOUT_CANCEL
public static String getApplicationName()
public void afterCompose()
afterCompose in interface org.zkoss.zk.ui.ext.AfterComposepublic void onCommand(CommandEvent event)
event - A command event.public org.zkoss.zk.ui.event.ClientInfoEvent getClientInformation()
public void onCtrlKey(org.zkoss.zk.ui.event.Event event)
event - Control key event.public UIElementDesktop getUIDesktop()
public UILayout getUILayout()
public void start()
public void loadLayoutFromResource(String resource) throws Exception
resource - URL of the resource containing the layout configuration.
If url of format "app:xxx", then layout associated with application id "xxx" is loaded.
If url of format "shared:xxx", then shared layout named "xxx" is loaded.
If url of format "private:xxx", then user layout named "xxx" is loaded.
Otherwise, resource is assumed to be a resource url.
Exception - Unspecified exception.public void loadLayoutByAppId(String appId) throws Exception
appId - An application id.Exception - Unspecified exception.public void loadLayoutByAppId()
throws Exception
Exception - Unspecified exception.public String getLayout()
public void setLayout(String defaultLayoutName) throws Exception
defaultLayoutName - The default layout name.Exception - Unspecified exception.public boolean isAutoStart()
public void setAutoStart(boolean autoStart)
autoStart - True if the start method is to be called automatically after loading a
layout. False if the start method must be called manually.public void buildUI(UILayout layout) throws Exception
layout - Layout for building UI.Exception - Unspecified exception.public void reset()
public void registerPlugin(PluginContainer plugin)
plugin - Plugin to register.public void unregisterPlugin(PluginContainer plugin)
plugin - Plugin to unregister.public void addToolbarComponent(org.zkoss.zk.ui.Component component)
component - Component to addpublic void registerHelpResource(PluginResourceHelp resource)
resource - Resource defining the help menu item to be added.public void registerStyleSheet(String url)
url - URL of style sheet.public void registerPropertyGroup(String propertyGroup)
propertyGroup - Property group to register.public org.zkoss.zul.Menu addMenu(String path, String action)
path - Path for the menu.action - Associated action for the menu.public Iterable<PluginContainer> getLoadedPlugins()
public PluginContainer getLoadedPlugin(String id)
id - Id of plugin to locate.public PluginContainer getLoadedPlugin(String id, boolean forceInit)
id - Id of plugin to locate.forceInit - If true the plugin will be initialized if not already so.public PluginContainer getActivatedPlugin(String id)
id - Id of plugin to locate.public Iterable<PluginContainer> getActivatedPlugins()
public Collection<PluginContainer> getActivatedPlugins(Collection<PluginContainer> list)
list - The list to be populated. If null, a new list is created.public Iterable<PluginDefinition> getLoadedPluginDefinitions()
public List<String> getPropertyGroups()
public void logout()
public void lock()
public void showMessage(String message)
message - Message to display.MessageWindow.show(String)public void showMessage(String message, String caption)
message - Message to display.caption - Caption for message.MessageWindow.show(String, String)public void showMessage(String message, String caption, String color)
message - Message to displaycaption - Caption for message.color - Background color for message window.MessageWindow.show(String, String, String)public void showMessage(String message, String caption, String color, int duration)
message - Message to displaycaption - Caption for message.color - Background color for message window.duration - Message duration in milliseconds.MessageWindow.show(String, String, String, int)public void showMessage(String message, String caption, String color, Integer duration, String tag)
message - Message to displaycaption - Caption for message.color - Background color for message window.duration - Message duration in milliseconds.tag - Tag to classify message.MessageWindow.show(String, String, String, Integer, String)public void showMessage(String message, String caption, String color, Integer duration, String tag, String action)
message - Message to displaycaption - Caption for message.color - Background color for message window.duration - Message duration in milliseconds.tag - Tag to classify message.action - Javascript action.MessageWindow.show(String, String, String, Integer, String,
String)public void showMessage(MessageWindow.MessageInfo messageInfo)
messageInfo - Message info structure.MessageWindow.show(MessageInfo)public void clearMessages()
MessageWindow.clear()public void clearMessages(String tag)
tag - Messages with this tag will be cleared.MessageWindow.clear(String)Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.