javauis/lcdui_qt/src/javax/microedition/lcdui/SpacerLayouter.java
changeset 76 4ad59aaee882
parent 61 bf7ee68962da
equal deleted inserted replaced
69:773449708c84 76:4ad59aaee882
    35     {
    35     {
    36         super(aFormLayouter);
    36         super(aFormLayouter);
    37     }
    37     }
    38 
    38 
    39     /**
    39     /**
    40      * Creates LayoutObject for the given Item.
    40      * Creates eSWT Control for the given Item.
    41      *
    41      *
    42      * @param item Item to layout
    42      * @param item Item to create the Control
    43      * @return LayoutObject
    43      * @param parent parent to create the Control
       
    44      * @return eSWT Control
    44      */
    45      */
    45     LayoutObject getLayoutObject(Item item)
    46 	Control createItemControl(Composite parent, Item item)
    46     {
    47 	{
    47     	LayoutObject lo = formLayouter.getLayoutObject(item);
    48 		return eswtGetControl(parent, item);
    48     	if(lo == null)
    49 	}
    49     	{
       
    50         	lo = new LayoutObject(item, eswtGetControl(formComposite, item));
       
    51     	}
       
    52 		return lo;
       
    53     }
       
    54 
    50 
    55     /**
    51     /**
    56      * eSWT specific calls to implement getControl.
    52      * eSWT specific calls to implement getControl.
    57      *
    53      *
    58      * @param parent for the control.
    54      * @param parent for the control.