public class MountState extends Object implements MountDelegate.MountDelegateTarget
| Modifier and Type | Field and Description |
|---|---|
static long |
ROOT_HOST_ID |
| Constructor and Description |
|---|
MountState(Host rootHost) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach()
This is called when the
MountItems mounted on this MountState need to be
re-bound with the same RenderUnit. |
void |
detach()
Unbinds all the MountItems currently mounted on this MountState.
|
Object |
findMountContentById(long id) |
Object |
getContentAt(int position) |
int |
getContentCount() |
ArrayList<Host> |
getHosts() |
MountItem |
getMountItemAt(int position) |
int |
getMountItemCount() |
boolean |
isAnimationLocked(int position) |
boolean |
isRootItem(int position) |
void |
mount(RenderTree renderTree)
Mount the layoutState on the pre-set HostView.
|
boolean |
needsRemount()
True if we have manually unmounted content (e.g.
|
void |
notifyMount(MountDelegate.MountDelegateInput input,
RenderTreeNode renderTreeNode,
int position) |
void |
notifyUnmount(int position) |
void |
registerMountDelegateExtension(MountDelegateExtension mountDelegateExtension) |
void |
unmountAllItems() |
public static final long ROOT_HOST_ID
public MountState(Host rootHost)
public Object findMountContentById(long id)
public boolean needsRemount()
needsRemount in interface MountDelegate.MountDelegateTargetpublic void notifyMount(MountDelegate.MountDelegateInput input, RenderTreeNode renderTreeNode, int position)
notifyMount in interface MountDelegate.MountDelegateTargetpublic void notifyUnmount(int position)
notifyUnmount in interface MountDelegate.MountDelegateTargetpublic void mount(RenderTree renderTree)
mount in interface MountDelegate.MountDelegateTargetrenderTree - a new RenderTree to mountpublic void unmountAllItems()
unmountAllItems in interface MountDelegate.MountDelegateTargetpublic boolean isRootItem(int position)
isRootItem in interface MountDelegate.MountDelegateTargetpublic Object getContentAt(int position)
getContentAt in interface MountDelegate.MountDelegateTargetpublic int getContentCount()
getContentCount in interface MountDelegate.MountDelegateTargetpublic void registerMountDelegateExtension(MountDelegateExtension mountDelegateExtension)
registerMountDelegateExtension in interface MountDelegate.MountDelegateTargetpublic ArrayList<Host> getHosts()
getHosts in interface MountDelegate.MountDelegateTargetpublic MountItem getMountItemAt(int position)
getMountItemAt in interface MountDelegate.MountDelegateTargetpublic int getMountItemCount()
getMountItemCount in interface MountDelegate.MountDelegateTargetpublic boolean isAnimationLocked(int position)
isAnimationLocked in interface MountDelegate.MountDelegateTargetpublic void attach()
MountItems mounted on this MountState need to be
re-bound with the same RenderUnit. This happens when a detach/attach happens on the root Host that owns the MountState.attach in interface MountDelegate.MountDelegateTargetpublic void detach()
detach in interface MountDelegate.MountDelegateTarget