diff -r 0ea12c182930 -r 63b81d807542 javauis/lcdui_qt/src/javax/microedition/lcdui/ItemLayouter.java
--- a/javauis/lcdui_qt/src/javax/microedition/lcdui/ItemLayouter.java Mon Aug 23 14:24:31 2010 +0300
+++ b/javauis/lcdui_qt/src/javax/microedition/lcdui/ItemLayouter.java Thu Sep 02 13:22:59 2010 +0300
@@ -167,12 +167,27 @@
LayoutObject lo = formLayouter.getLayoutObject(item);
if(lo == null)
{
- lo = new LayoutObject(item, eswtGetCaptionedControl(item));
+ lo = new LayoutObject(item, createItemControl(formComposite, item));
}
return lo;
}
/**
+ * Creates eSWT Control for the given Item.
+ *
+ * For any Item, if it is needed to create non CaptionControl based Control
+ * then this fucntion can be overrided in the derived Item Layouter.
+ *
+ * @param item Item to create the Control
+ * @param parent formComposite as parent to create the Control
+ * @return eSWT Control
+ */
+ Control createItemControl(Composite parent, Item item)
+ {
+ return eswtGetCaptionedControl(parent, item);
+ }
+
+ /**
* Wraps this item's control in the necessary composites.
* Based on the item, the result of this method can be:
*