public class EditState extends UIThreadSet<android.app.Activity>
setEdits(java.util.Map).
Some client is responsible for informing the EditState about the presence or absence
of Activities, by calling add(android.app.Activity) and remove(android.app.Activity)| 构造器和说明 |
|---|
EditState() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(android.app.Activity newOne)
Should be called whenever a new Activity appears in the application.
|
void |
remove(android.app.Activity oldOne)
Should be called whenever an activity leaves the application, or is otherwise no longer relevant to our edits.
|
void |
setEdits(java.util.Map<java.lang.String,java.util.List<ViewVisitor>> newEdits)
Sets the entire set of edits to be applied to the application.
|
getAll, isEmptypublic void add(android.app.Activity newOne)
add 在类中 UIThreadSet<android.app.Activity>public void remove(android.app.Activity oldOne)
remove 在类中 UIThreadSet<android.app.Activity>public void setEdits(java.util.Map<java.lang.String,java.util.List<ViewVisitor>> newEdits)
null (Not the string "null", the actual null value!)
The given edits will completely replace any existing edits.
setEdits can be called from any thread, although the changes will occur (eventually) on the
UI thread of the application, and may not appear immediately.newEdits - A Map from activity name to a list of edits to apply