Package lumis.doui.control.button
Class ButtonControl
- java.lang.Object
-
- lumis.doui.control.Control
-
- lumis.doui.control.SourceBoundControl<Source<?>>
-
- lumis.doui.control.button.ButtonControl
-
- All Implemented Interfaces:
javax.servlet.jsp.el.VariableResolver
,IControl
- Direct Known Subclasses:
AccessControlButton
,AddButton2Control
,AddButtonControl
,CancelButtonControl
,CloneDataButtonControl
,ConfigureButtonControl
,DeleteButtonControl
,EditButton2Control
,EditButtonControl
,FollowButtonControl
,GenerateContentButtonControl
,LockButtonControl
,OkButtonControl
,PositionFieldOrderButtonControl
,PreviewButtonControl
,PrintButtonControl
,PublishToSocialNetworkButtonControl
,RefreshButtonControl
,SaveAndPreviewButtonControl
,StealLockButtonControl
,ValidatorButton
,VersionsButtonControl
public class ButtonControl extends SourceBoundControl<Source<?>>
Defines a standard button control with text, image and onClick definition.
Example use:lumis/portal/client/images/EmailTest.gif sendTestEmail lumis/portal/client/images/EmailTest.gif sendTestEmail Send test e-mail - Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
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 ButtonControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TabularDataControl
getAssociatedTabularDataControl()
Returns the tabular data control referenced (either explicitly or automatically detected) by this button for row actions or parameter value.IResource
getControlResource()
protected java.lang.String
getDefaultPopupPageId(java.lang.String interfaceId)
java.lang.String
getScriptGetButtonText()
java.lang.String
getScriptSetButtonImageAlt(java.lang.String imgAlt)
java.lang.String
getScriptSetButtonText(java.lang.String buttonText)
java.lang.String
getText()
void
setRenderData()
void
setText(java.lang.String text)
-
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
-
getAssociatedTabularDataControl
protected TabularDataControl getAssociatedTabularDataControl() throws PortalException
Returns the tabular data control referenced (either explicitly or automatically detected) by this button for row actions or parameter value. This method should be called only duringsetRenderData()
, so all controls dynamically generated should already be existing.- Returns:
- the tabular data control or
null
if none was found. - Throws:
PortalException
- Since:
- 8.0.0
-
setRenderData
public void setRenderData() throws PortalException
- Specified by:
setRenderData
in interfaceIControl
- Overrides:
setRenderData
in classControl
- Throws:
PortalException
-
getControlResource
public IResource getControlResource() throws PortalException
- Specified by:
getControlResource
in interfaceIControl
- Overrides:
getControlResource
in classControl
- Throws:
PortalException
-
getDefaultPopupPageId
protected java.lang.String getDefaultPopupPageId(java.lang.String interfaceId) throws PortalException
- Throws:
PortalException
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String text)
-
getScriptSetButtonText
public java.lang.String getScriptSetButtonText(java.lang.String buttonText)
-
getScriptSetButtonImageAlt
public java.lang.String getScriptSetButtonImageAlt(java.lang.String imgAlt)
-
getScriptGetButtonText
public java.lang.String getScriptGetButtonText()
-
-