|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.views.gesturelist.TrackListClipboardObject
public final class TrackListClipboardObject
The clipboard object holding a read-only list of arbitrary objects.
Constructor Summary | |
---|---|
TrackListClipboardObject(List<? extends TrackMetadataBean> objects,
List<? extends GesturesListView> targets)
Creates new clipboard object. |
Method Summary | |
---|---|
static TrackListClipboardObject |
fromObject(Object clipboard)
Retrieves the clipboard object from given object. |
static TrackListClipboardObject |
fromView(View view)
Retrieves the clipboard object from given view's tag . |
List<TrackMetadataBean> |
getObjects()
Retrieves stored tracks. |
static boolean |
isEmpty(Object object)
Retrieves the clipboard from given object and checks if it is empty. |
static boolean |
isEmpty(View view)
Retrieves the clipboard from given object and checks if it is empty. |
boolean |
isTarget(GesturesListView view)
Checks if given view is one of the possible targets of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrackListClipboardObject(List<? extends TrackMetadataBean> objects, List<? extends GesturesListView> targets)
objects
- the object list, must not be null
.targets
- possible view targets, must not be null
nor
empty.Method Detail |
---|
public boolean isTarget(GesturesListView view)
view
- the view to check
true
if the view is an allowed paste target.public List<TrackMetadataBean> getObjects()
null
.public static TrackListClipboardObject fromView(View view)
tag
.
view
- the view to retrieve the object from
null
if there was invalid type
or instance of object stored as the tag value.public static TrackListClipboardObject fromObject(Object clipboard)
clipboard
- the object to retrieve the clipboard from
null
if invalid type of
clipboard was provided.public static boolean isEmpty(View view)
view
- the view to check
true
if it is empty, false
otherwise.public static boolean isEmpty(Object object)
object
- the object to check
true
if it is empty, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |