blob: d0ac6c8b41b097f1f83f7c67513325b755943f42 [file] [log] [blame]
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>hyperlink</title>
<link type="text/css" rel="stylesheet" href="../../assets/css/stylesheet.css"/>
</head>
<body>
<h2 id="Hyperlink">Hyperlink</h2>
<h3 id="description">Description</h3>
<p>The hyperlink widget can be used to display a read-only piece of text in your user interface and allow the user to click on it. Its behavior is almost the same as the
<a href="label.html">label</a> or the
<a href="text.html">text</a> widgets. On top of the common properties of all widgets (identifier, labelExpression, helpExpression, isEnabledExpression, propertyValidationRules), it has the following properties:
</p>
<ul>
<li>valueExpression: This expression is used in order to compute the text of the hyperlink.</li>
<li>displayExpression: This expression will have access to the result of the valueExpression thanks to a variable named value and it should return a string. If this expression is blank, a call to java.lang.Object#toString() will be performed on the result of the valueExpression instead.</li>
<li>onClickExpression: This expression will be executed once the end user will click on the hyperlink. This expression does not have to return anything.</li>
<li>style: The style of the hyperlink widget.</li>
<li>conditionalStyles: All the conditional styles of the hyperlink widget.</li>
</ul>
<h3 id="displayanaction">Display an action</h3>
<p>In order to create a hyperlink widget, you can use the following properties:</p>
<ul>
<li>valueExpression:
<code>aql:'Click'</code>
</li>
<li>displayExpression:
<code>aql:value</code>
</li>
<li>onClickExpression:
<code>aql:self.doSomething()</code>
</li>
</ul>
</body>
</html>