public interface ComponentUpdater<C extends Component>
Modifier and Type | Interface and Description |
---|---|
static class |
ComponentUpdater.Operation |
static interface |
ComponentUpdater.Query<C extends Component>
Provide capability to query for updatability.
|
Modifier and Type | Method and Description |
---|---|
void |
update(C target,
C child,
ComponentUpdater.Operation operation)
Updates children list.
|
void |
update(C target,
C child,
int index,
ComponentUpdater.Operation operation)
Updates children list.
|
void update(C target, C child, ComponentUpdater.Operation operation)
target
- component to be updatedchild
- component to be added or removed.operation
- add or remove; if null, no update should happen, only
query for possibility the update.void update(C target, C child, int index, ComponentUpdater.Operation operation)
target
- component to be updatedchild
- component to be added or removed.index
- of child component to be added or removed.operation
- add or remove; if null, no update should happen, only
query for possibility the update.