public interface UserDataHandler
Node.setUserData()
应用可以提供一个处理程序时调用节点对象与被克隆,进口,或改名。这可以通过应用程序实现各种行为有关的数据将对DOM节点的使用。这个接口定义了该处理程序。
Modifier and Type | Field and Description |
---|---|
static short |
NODE_ADOPTED
采用节点,使用
Document.adoptNode() 。
|
static short |
NODE_CLONED
节点是克隆,利用
Node.cloneNode() 。
|
static short |
NODE_DELETED
节点被删除。
|
static short |
NODE_IMPORTED
节点是进口的,用
Document.importNode() 。
|
static short |
NODE_RENAMED
节点被重命名,使用
Document.renameNode() 。
|
static final short NODE_CLONED
Node.cloneNode()
。
static final short NODE_IMPORTED
Document.importNode()
。
static final short NODE_DELETED
注:这可能不支持或不可能在某些环境中是可靠的,如java,其中实施没有实际控制对象的时候实际上是删除。
static final short NODE_RENAMED
Document.renameNode()
。
static final short NODE_ADOPTED
Document.adoptNode()
。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.