javauis/lcdui_qt/src/javax/microedition/lcdui/List.java
changeset 35 85266cc22c7f
parent 23 98ccebc37403
child 57 59b3b4473dc8
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
   309      *
   309      *
   310      * @param position the item index
   310      * @param position the item index
   311      */
   311      */
   312     public void delete(int position)
   312     public void delete(int position)
   313     {
   313     {
   314 //        choiceImpl.delete(position);
   314         if (position < 0 || ( position >= size())) 
       
   315         {
       
   316             throw new IndexOutOfBoundsException(
       
   317                     MsgRepository.CHOICE_EXCEPTION_INVALID_ITEM_INDEX);
       
   318         }
   315         final int index = position; // index of changed element
   319         final int index = position; // index of changed element
   316         ESWTUIThreadRunner.syncExec(new Runnable()
   320         ESWTUIThreadRunner.syncExec(new Runnable()
   317         {
   321         {
   318             public void run()
   322             public void run()
   319             {
   323             {