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
MountItem s 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.MountDelegateTarget
public void notifyMount(MountDelegate.MountDelegateInput input, RenderTreeNode renderTreeNode, int position)
notifyMount
in interface MountDelegate.MountDelegateTarget
public void notifyUnmount(int position)
notifyUnmount
in interface MountDelegate.MountDelegateTarget
public void mount(RenderTree renderTree)
mount
in interface MountDelegate.MountDelegateTarget
renderTree
- a new RenderTree
to mountpublic void unmountAllItems()
unmountAllItems
in interface MountDelegate.MountDelegateTarget
public boolean isRootItem(int position)
isRootItem
in interface MountDelegate.MountDelegateTarget
public Object getContentAt(int position)
getContentAt
in interface MountDelegate.MountDelegateTarget
public int getContentCount()
getContentCount
in interface MountDelegate.MountDelegateTarget
public void registerMountDelegateExtension(MountDelegateExtension mountDelegateExtension)
registerMountDelegateExtension
in interface MountDelegate.MountDelegateTarget
public ArrayList<Host> getHosts()
getHosts
in interface MountDelegate.MountDelegateTarget
public MountItem getMountItemAt(int position)
getMountItemAt
in interface MountDelegate.MountDelegateTarget
public int getMountItemCount()
getMountItemCount
in interface MountDelegate.MountDelegateTarget
public boolean isAnimationLocked(int position)
isAnimationLocked
in interface MountDelegate.MountDelegateTarget
public void attach()
MountItem
s 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.MountDelegateTarget
public void detach()
detach
in interface MountDelegate.MountDelegateTarget