Sun Java System Portal Server Mobile Access 7.1 Developer's Reference

AmlOrderedList

Description

An AmlOrderedList is a standard Ordered List. An AmlOrderedList has at least one AmlListItem. In the default type, the initial item is numbered 1. Additional AmlListItems will be numbered 2, 3, etc. Each AmlListItem has an AmlText object representing one item on the list.

Element Body

((AmlContainer*, AmlText?, AmlListItem+, AmlStyle?)

Parent

AmlPage, AmlForm, AmlTableCol, AmlGroup

Restrictions

None

AML Attributes

Attribute  

Description  

Possible values  

Default  

Req’d?  

type 

Set type 

(numeric|uppercase_roman|lowercase_roman|lowercase_alpha|uppercase_alpha 

numeric 

No 

indent 

Set indentation string 

CDATA 

No Default 

No 

start 

Set start attribute 

CDATA 

No Default 

No 

cache 

Set caching 

(true|false) 

true 

No 

persist 

Set persist flag 

(true|false) 

false 

No 

Markup Language Examples

Sample AML Input:

<AmlDocument bold="true" title="Welcome">
	<AmlPage title="Chooser" bold="true">
		<AmlOrderedList>
		<AmlListItem>
		<AmlText text="Running"/>
		</AmlListItem>
		<AmlListItem>
		<AmlText text="Jumping"/>
		</AmlListItem>
		<AmlListItem>
		<AmlText text="Skipping"/>
		</AmlListItem>
		</AmlOrderedList>
	</AmlPage>
</AmlDocument>

Sample WML Output:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head>
		<meta http-equiv="Cache-Control" content="max-age=0"/>
	</head>
	<card id="agp0">
		<p align="center">Chooser</p>
		<p>
		1. Running<br/>
		2. Jumping<br/>
		3. Skipping<br/>
		</p>
	</card>
</wml>

Sample cHTML Output:

<html>
	<head>
		<title>Welcome</title>
		<meta name="PalmComputingPlatform" content="true"></meta>
		<meta http-equiv="Pragma" content="no-cache"></meta>
		<meta http-equiv="Cache-Control" content="no-cache"></meta>
	</head>
	<body>
		<div align="center">
			<a name="agp0">
				<b>Chooser</b>
			</a>
		</div>
			<ol type="1">
			<li>Running</li>
			<li>Jumping</li><li>Skipping</li>
			</ol>
	</body>
</html>