|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ants.core.Thing
|
+--ants.move.core.models.video.VideoModel
Implementation of Video Model.
| Constructor Summary | |
VideoModel()
Sole & void constructor. |
|
| Method Summary | |
void |
addVideoListener(VideoListener vList)
Adds new listener |
void |
controlVideo(boolean p)
Set video play or stop |
void |
destroy()
Destroy method |
java.lang.String |
getType()
Tool Type |
java.lang.String |
getVideoThing()
get videothing key |
void |
init()
Initialize model |
java.lang.String |
isPlaying()
Return if video tool is playing a video |
void |
loadVideo(java.lang.String thingKey)
Remotely load video file in Video tool. |
void |
propertyChange(ants.core.PropertyChangeEvent evt)
Method triggered in response to a property change. |
void |
removeVideoListener(VideoListener vList)
removes listeners |
| Methods inherited from class ants.core.Thing |
addPropertyChangeListener, addTokenToProperty, eventArrived, getContext, getDescription, getIndexedProperty, getIndexedProperty, getIndexedPropertyNames, getIndexedPropertySize, getName, getPlace, getProperty, getPropertyNames, getThingGateway, getThingId, incrementProperty, init, removePropertyChangeListener, setProperty, triggerEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VideoModel()
| Method Detail |
public void init()
init in class ants.core.Thingpublic void addVideoListener(VideoListener vList)
vList - Class that implements VideoListener interfacepublic void removeVideoListener(VideoListener vList)
vList - Class that implements VideoListener interfacepublic void loadVideo(java.lang.String thingKey)
thingKey - Key of the Thingpublic void controlVideo(boolean p)
p - True indicate play and false indicate stoppublic java.lang.String getVideoThing()
public java.lang.String isPlaying()
public void propertyChange(ants.core.PropertyChangeEvent evt)
ants.core.PropertyChangeListenerpropertyChange in interface ants.core.PropertyChangeListenerants.core.PropertyChangeListenerpublic java.lang.String getType()
getType in class ants.core.Thingpublic void destroy()
destroy in class ants.core.Thing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||