Package lumis.content.control.lock
Class LockButtonControl
- java.lang.Object
-
- lumis.doui.control.Control
-
- lumis.doui.control.SourceBoundControl<Source<?>>
-
- lumis.doui.control.button.ButtonControl
-
- lumis.content.control.lock.LockButtonControl
-
- All Implemented Interfaces:
VariableResolver
,IControl
public class LockButtonControl extends ButtonControl
Defines a lock/unlock button control. The lock button inherits all the button control properties and has default values for certain properties.
Example use:
xml data available for xsl rendering:<control:lum_lockButton id="lockButton" processActionId="lock"/>
<control id="lockButton" processActionId="lock" text="STR_LOCK" type="lum_lockButton"> <onClick type="script"> <script>if(!confirm('Are you sure you want to lock the selected item(s)?')) return;</script> <validators> <validator controlId="adminList.tabulardata" type="selectedMany" /> </validators> </onClick> <onClick type="processAction"> <processActionId>lock</processActionId> </onClick> <image>lumis/portal/client/images/Lock.gif</image> <rowAction bulkAction="true" listControlId="adminList.tabulardata"/> <data> <name>Lock</name> <onclick><!-- onclick javascript for the button --></onclick> </data> </control>
- Since:
- 6.0.0
- Version:
- $Revision: 22315 $ $Date: 2019-01-25 18:30:16 -0200 (Fri, 25 Jan 2019) $
-
-
Field Summary
-
Fields inherited from class lumis.doui.control.Control
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_REPLACE_INTERFACE, ON_EVENT_SCRIPT, ON_EVENT_VALIDATE, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE
-
-
Constructor Summary
Constructors Constructor Description LockButtonControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
hasLock()
void
setRenderData()
-
Methods inherited from class lumis.doui.control.button.ButtonControl
getAssociatedTabularDataControl, getControlResource, getDefaultPopupPageId, getScriptGetButtonText, getScriptSetButtonImageAlt, getScriptSetButtonText, getText, setText
-
Methods inherited from class lumis.doui.control.SourceBoundControl
getRuntimeDefaultSource, getSource, getSourceContext
-
Methods inherited from class lumis.doui.control.Control
appendSubControl, appendSubControls, applyOnEventScripts, buildSubControls, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, generateControlIdPrefix, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getId, getLocale, getName, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getScriptActionValidation, getStringsToLocalize, getType, getValidationScript, getWindowProperties, getWindowProperties, init, isRequired, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setName, setRuntimeAttributes, setValid
-
-
-
-
Method Detail
-
setRenderData
public void setRenderData() throws PortalException
- Specified by:
setRenderData
in interfaceIControl
- Overrides:
setRenderData
in classButtonControl
- Throws:
PortalException
-
hasLock
protected boolean hasLock() throws PortalException
- Throws:
PortalException
-
-