JavaTM 2 Platform
Standard Ed. 6

类 java.lang.IndexOutOfBoundsException
的使用

使用 IndexOutOfBoundsException 的软件包
java.awt 包含用于创建用户界面和绘制图形图像的所有类。 
java.awt.print 为通用的打印 API 提供类和接口。 
java.lang 提供利用 Java 编程语言进行程序设计的基础类。 
javax.management.relation 提供 Relation Service 的定义。 
 

java.awtIndexOutOfBoundsException 的使用
 

抛出 IndexOutOfBoundsExceptionjava.awt 中的方法
 Cursor Toolkit.createCustomCursor(Image cursor, Point hotSpot, String name)
          创建一个新的自定义光标对象。
 

java.awt.printIndexOutOfBoundsException 的使用
 

抛出 IndexOutOfBoundsExceptionjava.awt.print 中的方法
 PageFormat Book.getPageFormat(int pageIndex)
          返回 pageIndex 指定的页面的 PageFormat
 PageFormat Pageable.getPageFormat(int pageIndex)
          返回 pageIndex 指定的页面的 PageFormat
 Printable Book.getPrintable(int pageIndex)
          返回 Printable 实例,该实例负责呈现 pageIndex 指定的页面。
 Printable Pageable.getPrintable(int pageIndex)
          返回负责呈现 pageIndex 指定的页面的 Printable 实例。
 void Book.setPage(int pageIndex, Printable painter, PageFormat page)
          为指定的页码设置 PageFormatPainter
 

java.langIndexOutOfBoundsException 的使用
 

java.langIndexOutOfBoundsException 的子类
 class ArrayIndexOutOfBoundsException
          用非法索引访问数组时抛出的异常。
 class StringIndexOutOfBoundsException
          此异常由 String 方法抛出,指示索引或者为负,或者超出字符串的大小。
 

javax.management.relationIndexOutOfBoundsException 的使用
 

抛出 IndexOutOfBoundsExceptionjavax.management.relation 中的方法
 void RoleList.add(int index, Role role)
          插入指定为指定位置处的元素的角色。
 void RoleUnresolvedList.add(int index, RoleUnresolved role)
          在指定位置处插入指定为元素的未解析角色。
 boolean RoleList.addAll(int index, RoleList roleList)
          从指定位置开始,将指定 RoleList 中的所有元素插入此列表,这些元素按指定 RoleList 的迭代器返回的顺序排列。
 boolean RoleUnresolvedList.addAll(int index, RoleUnresolvedList roleList)
          从指定位置开始,将指定 RoleUnresolvedList 中的所有元素插入此列表,这些元素按指定 RoleUnresolvedList 的迭代器返回的顺序排列。
 boolean RoleList.addAll(RoleList roleList)
          将指定 RoleList 中的所有元素追加到列表末尾,这些元素按指定 RoleList 的迭代器返回的顺序排列。
 boolean RoleUnresolvedList.addAll(RoleUnresolvedList roleList)
          将指定 RoleUnresolvedList 中的所有元素追加到列表末尾,这些元素按指定 RoleUnresolvedList 的迭代器返回的顺序排列。
 void RoleList.set(int index, Role role)
          将指定位置处的元素设置为指定角色。
 void RoleUnresolvedList.set(int index, RoleUnresolved role)
          将指定位置处的元素设置为指定的未解析角色。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only