@Component(tag="cwfShell",
widgetClass="Div",
parentTag="*",
childTag=@Component.ChildTag(value="*"))
public class CareWebShell
extends org.fujion.component.Div
implements org.fujion.ancillary.INamespace
| Modifier and Type | Field and Description |
|---|---|
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.fujion.component.BaseMenuComponent |
addMenu(String path,
String action)
Adds a menu.
|
void |
addToolbarComponent(org.fujion.component.BaseComponent component)
Adds a component to the common tool bar.
|
void |
buildUI(Layout layout)
Build the UI based on the specified layout.
|
ElementPlugin |
getActivatedPlugin(String id)
Locates an activated plugin with the specified id.
|
Iterable<ElementPlugin> |
getActivatedPlugins()
Returns a list of all active plugins.
|
Collection<ElementPlugin> |
getActivatedPlugins(Collection<ElementPlugin> list)
Populates a list of all activated plugins.
|
static String |
getApplicationName()
Returns the application name for this instance of the CareWeb shell.
|
String |
getAppProperty(String queryParam,
String propName) |
ElementDesktop |
getDesktop()
Returns a reference to the current UI desktop.
|
protected IHelpViewer |
getHelpViewer()
Returns reference to the help viewer.
|
String |
getLayout()
Returns the name of the layout to be loaded.
|
ElementPlugin |
getLoadedPlugin(String id)
Locates a loaded plugin with the specified id.
|
ElementPlugin |
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<ElementPlugin> |
getLoadedPlugins()
Returns a list of all plugins currently loaded into the UI.
|
org.fujion.component.MessageWindow |
getMessageWindow()
Returns the message window instance for managing slide-down messages.
|
List<String> |
getPropertyGroups()
Returns a list of property groups bound to loaded plugins.
|
Layout |
getUILayout()
Returns a reference to the current UI layout.
|
boolean |
isAutoStart()
Returns the auto-start setting.
|
boolean |
isLogoutConfirm()
Returns true if confirmation is required upon user-initiated logout.
|
void |
loadLayout(String resource)
Loads a layout from the specified resource.
|
void |
lock()
Lock the desktop.
|
void |
logout()
Logout user after confirmation prompt.
|
protected void |
onAttach(org.fujion.component.Page page) |
void |
onCommand(CommandEvent event)
Handle help requests.
|
void |
onKeycapture(org.fujion.event.KeycaptureEvent event)
Capture unhandled shortcut key press events.
|
void |
registerHelpResource(PluginResourceHelp resource)
Registers a help resource.
|
void |
registerPlugin(ElementPlugin 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 |
setLogoutConfirm(boolean logoutConfirm)
Set to true if confirmation is required upon user-initiated logout.
|
void |
start()
Executed once all plugins are loaded.
|
void |
unregisterPlugin(ElementPlugin plugin)
Unregisters a plugin and its resources.
|
_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onDestroy, propertyChange, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerprotected static final org.apache.commons.logging.Log log
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()
protected void onAttach(org.fujion.component.Page page)
onAttach in class org.fujion.component.BaseComponentpublic void onCommand(CommandEvent event)
event - A command event.public void onKeycapture(org.fujion.event.KeycaptureEvent event)
event - Control key event.public ElementDesktop getDesktop()
public Layout getUILayout()
public void start()
public void loadLayout(String resource) throws Exception
resource - The layout resource to load.Exception - Unspecified exception.@Component.PropertyGetter(value="layout") public String getLayout()
@Component.PropertySetter(value="layout") 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 boolean isLogoutConfirm()
public void setLogoutConfirm(boolean logoutConfirm)
logoutConfirm - True if confirmation is required upon user-initiated logout.public void buildUI(Layout layout)
layout - Layout for building UI.public void reset()
public void registerPlugin(ElementPlugin plugin)
plugin - Plugin to register.public void unregisterPlugin(ElementPlugin plugin)
plugin - Plugin to unregister.public void addToolbarComponent(org.fujion.component.BaseComponent 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.fujion.component.BaseMenuComponent addMenu(String path, String action)
path - Path for the menu.action - Associated action for the menu.public Iterable<ElementPlugin> getLoadedPlugins()
public ElementPlugin getLoadedPlugin(String id)
id - Id of plugin to locate.public ElementPlugin getLoadedPlugin(String id, boolean forceInit)
id - Id of plugin to locate.forceInit - If true the plugin will be initialized if not already so.public ElementPlugin getActivatedPlugin(String id)
id - Id of plugin to locate.public Iterable<ElementPlugin> getActivatedPlugins()
public Collection<ElementPlugin> getActivatedPlugins(Collection<ElementPlugin> 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 org.fujion.component.MessageWindow getMessageWindow()
protected IHelpViewer getHelpViewer()
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.