This is a basic control that is used to display an image and capture user gestures (when an appropriate handler is
configured). Typically, the ImageControl
uses stylers (e.g. caplin.element.styler.ClassStyler)
to specify how the image appears to the user, and handlers to capture user interactions such as mouse movements and
clicks.
The image control configuration is set in rendererDefinitions.xml
.
Basic usage:
<control type="caplin.control.basic.ImageControl"/>
With this configuration, a default template is assigned:
<div><div></div></div>
To specify a custom template:
<control type="caplin.control.basic.ImageControl">
<![CDATA[<div><div></div></div>]]>
</control>
Optionally, a handler (e.g. caplin.element.handler.grid.ClearFilterHandler) can be configured against the control
<control type="caplin.control.basic.ImageControl">
<handler className="caplin.element.handler.grid.ClearFilterHandler"/>
</control>
Attributes | Name and Description |
---|---|
|
caplin.control.basic.ImageControl(caplin.control.factory.ControlType controlType)
Constructs a new |
Attributes | Name and Description |
---|---|
|
void
createHtml( value, initialClassName)
|
|
void
disable()
|
|
void
enable()
|
|
void
isEnabled()
|
|
void
setDomValue()
|
|
void
toString()
|
►
caplin.control.basic.ImageControl(caplin.control.factory.ControlType controlType)
Constructs a new caplin.control.basic.ImageControl
with the specified arguments.
caplin.control.factory.ControlType | controlType | The control type. |
►
void
createHtml( value, initialClassName)
value | ||
initialClassName |
►
void
disable()
►
void
enable()
►
void
isEnabled()
►
void
setDomValue()
►
void
toString()