Package totalcross.ui
Class ListBox.IconItem
- java.lang.Object
-
- totalcross.ui.ListBox.IconItem
-
- Enclosing class:
- ListBox
public static class ListBox.IconItem extends java.lang.ObjectUsed to show an icon and a text. You can mix IconItem with other item types in the ListBox. Example:lb.add("this is a simple text"); lb.add(new IconItem("this is a text with icon", iconImage));The icon should have the same size of the font's height, which can be set with:iconImage = originalImage.smoothScaledFixedAspectRatio(fmH,true,-1);
- Since:
- TotalCross 1.61
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-