code: public void setItemText(int index, String text, Direction dir) {
          index += getIndexOffset();
          listBox.setItemText(index, text, dir);
          reload();
      }
docs: Sets the text associated with the item at a given index.
  
  @param index the index of the item to be set
  @param text  the item's new text
  @param dir   the item's direction.
  @throws IndexOutOfBoundsException if the index is out of range