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, onMultiselectClickEvent
getConfigNode, getContext, getDragDropProperties, getEventManager, getHelpPath, getName, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isDragDropTarget, isObjectClassSupported, setSafeSetting
public 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.OwDocumentFunction
Exception
public String getIcon() throws Exception
getIcon
in interface com.wewebu.ow.server.app.OwPlugin
getIcon
in class com.wewebu.ow.server.app.OwFunction
Exception
public String getBigIcon() throws Exception
getBigIcon
in class com.wewebu.ow.server.app.OwFunction
Exception
public boolean getObjectInstance()
getObjectInstance
in class com.wewebu.ow.server.app.OwDocumentFunction
public boolean getContextMenu()
getContextMenu
in class com.wewebu.ow.server.app.OwDocumentFunction
public boolean getMultiselect()
getMultiselect
in class com.wewebu.ow.server.app.OwDocumentFunction
public boolean getNoEvent()
getNoEvent
in class com.wewebu.ow.server.app.OwFunction
public 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.OwDocumentFunction
oObject_p
- OwObject where event was triggeredoParent_p
- Parent which listed the ObjectException
public 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.OwDocumentFunction
Exception
protected 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.