Package com.caplin.streamlink
Interface ContainerModel
public interface ContainerModel
This interface defines a model that represents a container. You need to implement it to process
the updateModel callback in ContainerEvents.
The methods on this interface will be called in the correct order to ensure that your representation is correct.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Called to indicate that you should clear your model of the container.voidinsert(int index, ContainerElement element) Called to indicate that you should insert the ContainerElement at the specified position.voidmove(int from, int to, ContainerElement element) Called to indicate that you should move the specified ContainerElement.voidremove(int index, ContainerElement element) Called to indicate that you should remove the ContainerElement from the specified position.
-
Method Details
-
clear
void clear()Called to indicate that you should clear your model of the container.
-
insert
Called to indicate that you should insert the ContainerElement at the specified position.
- Parameters:
index- The index at which to insert the ContainerElement.element- The ContainerElement to insert.
-
remove
Called to indicate that you should remove the ContainerElement from the specified position.
- Parameters:
index- The index at which to remove the ContainerElement.element- The ContainerElement to remove.
-
move
Called to indicate that you should move the specified ContainerElement.
- Parameters:
from- The index at which the ContainerElement is currently located.to- The index to which the ContainerElement should be moved to.element- The ContainerElement to move.
-