模块 jdk.xml.dom

接口 StyleSheetList


public interface StyleSheetList
StyleSheetList 接口提供了样式表有序集合的抽象。

StyleSheetList 中的项目可通过从 0 开始的整数索引访问。

另见 文档对象模型 (DOM) 级别 2 样式规范

自从:
1.4、DOM Level 2
  • 方法总结

    修饰符和类型
    方法
    描述
    int
    列表中 StyleSheets 的数量。
    item(int index)
    用于按序号索引检索样式表。
  • 方法详情

    • getLength

      int getLength()
      列表中 StyleSheets 的数量。有效子样式表索引的范围是 0length-1(含)。
    • item

      StyleSheet  item(int index)
      用于按序号索引检索样式表。如果 index 大于或等于列表中样式表的数量,则返回 null
      参数:
      index - 集合索引
      返回:
      StyleSheetListindex 位置的样式表,如果不是有效索引,则为 null