public abstract class RenderUnit<MOUNT_CONTENT> extends Object implements Copyable
Modifier and Type | Class and Description |
---|---|
static interface |
RenderUnit.Binder<RENDER_UNIT,CONTENT>
Represents a single bind function.
|
static class |
RenderUnit.RenderType |
Constructor and Description |
---|
RenderUnit(RenderUnit.RenderType renderType) |
RenderUnit(RenderUnit.RenderType renderType,
List<? extends RenderUnit.Binder<? extends RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> mountUnmountFunctions) |
RenderUnit(RenderUnit.RenderType renderType,
List<? extends RenderUnit.Binder<? extends RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> mountUnmountFunctions,
List<? extends RenderUnit.Binder<? extends RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> attachDetachFunctions) |
Modifier and Type | Method and Description |
---|---|
void |
addMountUnmountExtension(RenderUnit.Binder binder)
Adds an extension function that will be invoked with the other mount/unmount binders.
|
List<RenderUnit.Binder<RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> |
attachDetachFunctions() |
abstract MOUNT_CONTENT |
createContent(Context c) |
abstract long |
getId() |
Object |
getRenderContentType() |
RenderUnit.RenderType |
getRenderType() |
RenderUnit |
makeCopy() |
List<RenderUnit.Binder<RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> |
mountUnmountFunctions() |
void |
removeMountUnmountExtension(RenderUnit.Binder binder)
removes an extension function previously added with addMountUnmountExtension
|
public RenderUnit(RenderUnit.RenderType renderType)
public RenderUnit(RenderUnit.RenderType renderType, List<? extends RenderUnit.Binder<? extends RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> mountUnmountFunctions)
public RenderUnit(RenderUnit.RenderType renderType, List<? extends RenderUnit.Binder<? extends RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> mountUnmountFunctions, List<? extends RenderUnit.Binder<? extends RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> attachDetachFunctions)
public RenderUnit.RenderType getRenderType()
public abstract MOUNT_CONTENT createContent(Context c)
public final List<RenderUnit.Binder<RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> mountUnmountFunctions()
public final List<RenderUnit.Binder<RenderUnit<MOUNT_CONTENT>,MOUNT_CONTENT>> attachDetachFunctions()
public abstract long getId()
public Object getRenderContentType()
public RenderUnit makeCopy()
public void addMountUnmountExtension(RenderUnit.Binder binder)
public void removeMountUnmountExtension(RenderUnit.Binder binder)