public final class ViewLifecycle extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ViewLifecycle.ModelUpdateListener
Model update listener, notified with updated compound model.
|
Modifier and Type | Method and Description |
---|---|
void |
addModelUpdateListener(ViewLifecycle.ModelUpdateListener mul)
Add a listener, which is called with the updated compound model.
|
void |
destroy()
Destroy the underlying data, call this method when the view is closed.
|
Models.CompoundModel |
getModel()
Get the current compound model, that can be used to construct the custom
view.
|
void |
removeModelUpdateListener(ViewLifecycle.ModelUpdateListener mul)
Remove a model update listener
|
public Models.CompoundModel getModel()
public void addModelUpdateListener(ViewLifecycle.ModelUpdateListener mul)
mul
- The model update listenerpublic void removeModelUpdateListener(ViewLifecycle.ModelUpdateListener mul)
mul
- The model update listenerpublic void destroy()
Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.