Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2b312f2e87b309e6fd7681b798d25412ec66be06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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>label</title>
		<link type="text/css" rel="stylesheet" href="../../assets/css/stylesheet.css"/>
	</head>
	<body>
		<h2 id="Label">Label</h2>
		<h3 id="description">Description</h3>
		<p>The label widget can be used to display a read-only piece of text in your user interface. Its behavior is almost the same as the 
			<a href="text.html">text</a> widget. On top of the common properties of all widgets (identifier, labelExpression, helpExpression, isEnabledExpression, propertyValidationRules), it has the following properties:
		</p>
		<ul>
			<li>valueExpression: The value expression is used to compute the body of the label widget.</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>style: The style of the label widget.</li>
			<li>conditionalStyle: All the conditional styles of the label widget.</li>
		</ul>
		<h3 id="displayreadonlyestringeattribute">Display a read-only EString EAttribute</h3>
		<p>In order to display in the user interface a label with the value of a read-only EAttribute with the eType EString, you can create a label widget with the following properties:</p>
		<ul>
			<li>labelExpression: 
				<code>aql:'Documentation'</code>
			</li>
			<li>valueExpression: 
				<code>aql:self.documentation</code>
			</li>
			<li>displayExpression: 
				<code>aql:value</code>
			</li>
		</ul>
		<p>EEF does not provide a default interpreter but you can easily configure EEF to be used with the AQL interpreter. In the integration of EEF with the AQL interpreter, you can register additional services, written in Java, in which you can expose to AQL new operations.</p>
	</body>
</html>

Back to the top