J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

Ticker

A ticker scrolls information over a screen and can include images in J2ME Polish.

Design

A ticker in action
The above example has been realized with the following CSS code:

colors {
	fontColor: #222;
	fontShadowColor: #fff;
}
.mailTicker {
	ticker-step: 1;
	padding-horizontal: 5;
	layout: vertical-center;
	icon-image: url( sending.png );
	font-color: fontColor;
	font-size: small;
	text-effect: shadow;
	text-shadow-color: fontShadowColor;
}

Specific design attributes:

Programming

You can exchange the image of the ticker by calling UiAccess.setTickerImage( Ticker ticker, Image image ). You can also apply a style to a ticker by calling the screen's setTicker( Ticker ticker ) method with a #style preprocessing directive:

//#style alarmTicker
form.setTicker( ticker );

You can also add Ticker as a normal, yet constantly animated item by calling UiAccess.appendTicker( Ticker ticker, Form form ).

JavaDoc

back to top