public class OwStatusIconDocumentFunction
extends com.wewebu.ow.server.app.OwDocumentFunction
A document function that displays a status icon dependent on document property states.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor and Description |
|---|
OwStatusIconDocumentFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected OwStatusIconRule |
createStatusIconRule(com.wewebu.ow.server.util.OwXMLUtil config,
com.wewebu.ow.server.ui.OwAppContext context)
Factory method for OwStatusIconRule instances from provided configuration
|
String |
getBigIcon()
get the big (24x24 pixels) icon URL for this plugin to be displayed
|
boolean |
getContextMenu()
get property from the XML plugin config node
|
String |
getDisplayName(Locale locale_p,
String description) |
String |
getIcon()
get the small (16x16 pixels) icon URL for this plugin to be displayed
|
String |
getIconHTML(com.wewebu.ow.server.ecm.OwObject oObject_p,
com.wewebu.ow.server.ecm.OwObject oParent_p)
get the HTML code for the small (16x16 pixels) icon for this plugin to be displayed in the object list.
|
boolean |
getMultiselect()
get property from the XML plugin config node
|
boolean |
getNoEvent()
check if the plugin handles events with function calls,
or if it is just used to display an icon.
|
boolean |
getObjectInstance()
get property from the XML plugin config node
|
protected List<OwStatusIconRule> |
getRules()
Getter of configured rules list.
|
void |
init(com.wewebu.ow.server.util.OwXMLUtil node_p,
com.wewebu.ow.server.app.OwMainAppContext context_p) |
void |
onClickEvent(com.wewebu.ow.server.ecm.OwObject object_p,
com.wewebu.ow.server.ecm.OwObject parent_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p) |
addHistoryEvent, addHistoryEvent, getBigDefaultIconHTML, getBigIconHTML, getColumnTitle, getDefaultIconHTML, getDefaultLabel, getDisplayNameFromUserId, getEnableColumnClickEvent, getLabel, getNeedParent, getPluginType, getRetrievalPropertyNames, getShowInEditViews, isEnabled, isEnabled, isObjectTypeSupported, onColumnClickEvent, onMultiselectClickEventgetConfigNode, getContext, getDragDropProperties, getEventManager, getHelpPath, getName, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isDragDropTarget, isObjectClassSupported, setSafeSettingpublic void init(com.wewebu.ow.server.util.OwXMLUtil node_p,
com.wewebu.ow.server.app.OwMainAppContext context_p)
throws Exception
init in class com.wewebu.ow.server.app.OwDocumentFunctionExceptionpublic String getIcon() throws Exception
getIcon in interface com.wewebu.ow.server.app.OwPlugingetIcon in class com.wewebu.ow.server.app.OwFunctionExceptionpublic String getBigIcon() throws Exception
getBigIcon in class com.wewebu.ow.server.app.OwFunctionExceptionpublic boolean getObjectInstance()
getObjectInstance in class com.wewebu.ow.server.app.OwDocumentFunctionpublic boolean getContextMenu()
getContextMenu in class com.wewebu.ow.server.app.OwDocumentFunctionpublic boolean getMultiselect()
getMultiselect in class com.wewebu.ow.server.app.OwDocumentFunctionpublic boolean getNoEvent()
getNoEvent in class com.wewebu.ow.server.app.OwFunctionpublic String getIconHTML(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oParent_p) throws Exception
getIconHTML in class com.wewebu.ow.server.app.OwDocumentFunctionoObject_p - OwObject where event was triggeredoParent_p - Parent which listed the ObjectExceptionpublic void onClickEvent(com.wewebu.ow.server.ecm.OwObject object_p,
com.wewebu.ow.server.ecm.OwObject parent_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
throws Exception
onClickEvent in class com.wewebu.ow.server.app.OwDocumentFunctionExceptionprotected List<OwStatusIconRule> getRules()
protected OwStatusIconRule createStatusIconRule(com.wewebu.ow.server.util.OwXMLUtil config, com.wewebu.ow.server.ui.OwAppContext context) throws com.wewebu.ow.server.exceptions.OwException
config - OwXMLUtil defined configuration of OwStatusIconRulecontext - OwAppContext current Application contextcom.wewebu.ow.server.exceptions.OwException - if unsupported or incorrect configuredCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.