| java.lang.Object com.javujavu.javux.wings.item.DefaultItemRenderer
DefaultItemRenderer | public class DefaultItemRenderer implements ItemRenderer(Code) | | This class implements item renderer used by WingS components by default.
This renderer treat item objects in the following way:
- if the item object implements
ItemRenderer uses the item as a renderer
- if the item object is a
WingImage renders it as an image
- it the item object is a
Boolean renders it as an image using checkbox images
- if the item object is not null renders it as a
String using item.toString()
This is one of the core WingS classes required by all the components
This class is thread safe.
|
Method Summary | |
public void | drawItem(Graphics g, int x, int y, int width, int height, Object item, WingComponent owner, Style style, Insets margin, int alignment, int textPosition, Object context) | public Dimension | getItemSize(Object item, WingComponent owner, Style style, Object context) | public boolean | imageUpdate(Image img, int infoflags, int x, int y, int width, int height, Object item, WingComponent owner, Style style, Rectangle itemBounds) |
drawItem | public void drawItem(Graphics g, int x, int y, int width, int height, Object item, WingComponent owner, Style style, Insets margin, int alignment, int textPosition, Object context)(Code) | | See Also: ItemRenderer.drawItem(java.awt.Graphicsintintintintjava.lang.Objectcom.javujavu.javux.wings.WingComponentcom.javujavu.javux.wings.Stylejava.awt.Insetsintintjava.lang.Object) |
|
|