Sequenceablepublic abstract static class ComponentProvider.Action extends Object implements Sequenceable
Remote components are a component hierarchy that can be displayed and updated in another application.
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
MERGE_REPLACE |
Allows merging and replacement.
|
int |
viewId |
Indicates the component ID.
|
| 构造器 | 说明 |
|---|---|
Action() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract void |
apply(ComponentContainer root) |
Applies the action of updating component content.
|
String |
getActionKey() |
Obtains the action key.
|
abstract int |
getActionTag() |
Obtains the action type.
|
int |
mergeOperation() |
Returns the merge behavior.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptor, marshalling, unmarshallingpublic static final int MERGE_REPLACE
When multiple ComponentProvider.Action are applied to the same attribute of the same component,
these actions can be merged.
public int viewId
public abstract void apply(ComponentContainer root) throws ComponentProvider.ComponentProviderException
root - Indicates the root node of all components defined by ComponentProvider.ComponentProvider.ComponentProviderException - Throws this exception if the system cannot handle an error.public int mergeOperation()
MERGE_REPLACE.MERGE_REPLACE by default.public abstract int getActionTag()
The returned action type varies depending on ComponentProvider.Action.
public String getActionKey()
Each action has a unique key for identification.