javauis/lcdui_qt/src/javax/microedition/lcdui/Form.java
changeset 35 85266cc22c7f
parent 23 98ccebc37403
child 57 59b3b4473dc8
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
   248         if(item.getParent() != null)
   248         if(item.getParent() != null)
   249         {
   249         {
   250             throw new IllegalStateException(
   250             throw new IllegalStateException(
   251                 MsgRepository.FORM_EXCEPTION_ITEM_OWNED_BY_CONTAINER);
   251                 MsgRepository.FORM_EXCEPTION_ITEM_OWNED_BY_CONTAINER);
   252         }
   252         }
   253         if((position < 0) || (position > (items.size() - 1)))
   253         if ((position < 0) || (position > items.size() )) 
   254         {
   254         {
   255             throw new IndexOutOfBoundsException(
   255             throw new IndexOutOfBoundsException(
   256                 MsgRepository.FORM_EXCEPTION_INVALID_ITEM_INDEX);
   256                 MsgRepository.FORM_EXCEPTION_INVALID_ITEM_INDEX);
   257         }
   257         }
   258         synchronized(layoutPolicy)
   258         synchronized(layoutPolicy)