ants.move.core.models.slides
Class SlidesModel

java.lang.Object
  |
  +--ants.core.Thing
        |
        +--ants.move.core.models.slides.SlidesModel
All Implemented Interfaces:
ants.core.Model, ants.core.PropertyChangeListener, ants.comm.RemoteEventListener, java.io.Serializable

public class SlidesModel
extends ants.core.Thing
implements ants.core.PropertyChangeListener

Implementation of Slides Model.

Version:
1.0 Build 2002
Author:
Oriol Montalā (omontala@tinet.org), Carles Pairot (cpairot@tinet.org), Francesc Piņas (fpd@tinet.org)
See Also:
Serialized Form

Constructor Summary
SlidesModel()
          Sole & void constructor.
 
Method Summary
 void addSlidesListener(SlidesListener sList)
          Add new slides listener
 void destroy()
          Destroy method
 void firstPicture()
          Remotely go to first slide.
 java.lang.String getPicture()
          return url of current slide
 ants.core.Thing getSlidesThing()
          Thing that is loaded in slides tool
 java.lang.String getSlidesThingId()
          retuns key of the slides set that is loaded in slides tool
 java.lang.String getType()
          Tool type
 void init()
          Initialize Model
 void lastPicture()
          Remotely go to last slide.
 void loadSlides(java.lang.String thingKey)
           
 void nextPicture()
          Remotely go to next slide.
 void prevPicture()
          Remotely go back to previous slide.
 void propertyChange(ants.core.PropertyChangeEvent evt)
          Method triggered in response to a property change.
 void removeSlidesListener(SlidesListener sList)
          remove slide listener
 void setSlidesThing(java.lang.String thingKey)
          Load new slides set in slides tool
 
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

SlidesModel

public SlidesModel()
Sole & void constructor.
Method Detail

init

public void init()
Initialize Model
Overrides:
init in class ants.core.Thing

addSlidesListener

public void addSlidesListener(SlidesListener sList)
Add new slides listener
Parameters:
sList - Class that implements SlidesModel interface

removeSlidesListener

public void removeSlidesListener(SlidesListener sList)
remove slide listener
Parameters:
sList - Class that implements SlidesListener Interface

setSlidesThing

public void setSlidesThing(java.lang.String thingKey)
Load new slides set in slides tool
Parameters:
thingKey - Key of the slides set thing

getSlidesThingId

public java.lang.String getSlidesThingId()
retuns key of the slides set that is loaded in slides tool
Returns:
Key of slides set thing

getSlidesThing

public ants.core.Thing getSlidesThing()
Thing that is loaded in slides tool
Returns:
Thing instance of slides set

firstPicture

public void firstPicture()
Remotely go to first slide.

prevPicture

public void prevPicture()
Remotely go back to previous slide.

loadSlides

public void loadSlides(java.lang.String thingKey)

nextPicture

public void nextPicture()
Remotely go to next slide.

lastPicture

public void lastPicture()
Remotely go to last slide.

getPicture

public java.lang.String getPicture()
return url of current slide
Returns:
String that contains URL of current picture

propertyChange

public void propertyChange(ants.core.PropertyChangeEvent evt)
Description copied from interface: ants.core.PropertyChangeListener
Method triggered in response to a property change.
Specified by:
propertyChange in interface ants.core.PropertyChangeListener
Following copied from interface: ants.core.PropertyChangeListener
Returns:
ants.core.PropertyChangeEvent A PropertyChangeEvent with property change information.

getType

public java.lang.String getType()
Tool type
Overrides:
getType in class ants.core.Thing
Returns:
SLIDES

destroy

public void destroy()
Destroy method
Overrides:
destroy in class ants.core.Thing


Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili