|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable portaview.model.DomainModel portaview.model.NameModel portaview.model.PortaViewModel
Represents a PortaView. This main contains two parts. One is the SlideSettings, which controls the settings. The other is the image associated with the PortaView.
Field Summary | |
static java.lang.String |
IMAGE_CHANGED
|
static java.lang.String |
SETTINGS_CHANGED
|
Constructor Summary | |
PortaViewModel(java.lang.String name,
java.net.InetAddress address,
AlbumModel album)
|
Method Summary | |
AlbumModel |
getAlbum()
|
PortaViewImageModel |
getImageModel()
|
java.net.InetAddress |
getInetAddress()
|
SlideSettings |
getSlideSettings()
|
void |
nextSlide()
Moves to the next slide. |
void |
pause()
Sets the PortaView to pause. |
void |
play()
Sets the PortaView pause play. |
void |
prevSlide()
Moves to the previous slide. |
void |
setAlbum(AlbumModel model)
|
void |
setImageModel(PortaViewImageModel imageModel)
Sets the image model. |
void |
setInetAddress(java.net.InetAddress address)
Sets the Ip for the PortaView. |
void |
setSlideSettings(SlideSettings slideSettings)
Sets the slide settings and notify all the observers about the change. |
void |
update(java.util.Observable arg0,
java.lang.Object arg1)
Underlying models have changed. |
void |
updateRemote()
Update this portaview model with the remote portaview's state. |
Methods inherited from class portaview.model.NameModel |
getName, setName |
Methods inherited from class portaview.model.DomainModel |
forceNotifyObservers |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String IMAGE_CHANGED
public static final java.lang.String SETTINGS_CHANGED
Constructor Detail |
public PortaViewModel(java.lang.String name, java.net.InetAddress address, AlbumModel album)
Method Detail |
public void nextSlide()
public void prevSlide()
public void play()
public void pause()
public java.net.InetAddress getInetAddress()
public void setInetAddress(java.net.InetAddress address)
address
- the internet address for the PortaViewpublic AlbumModel getAlbum()
public void setAlbum(AlbumModel model)
model
- the album model.public SlideSettings getSlideSettings()
public void setSlideSettings(SlideSettings slideSettings)
slideSettings
- slide settings to set.public PortaViewImageModel getImageModel()
public void setImageModel(PortaViewImageModel imageModel)
imageModel
- model to set.public void update(java.util.Observable arg0, java.lang.Object arg1)
update
in interface java.util.Observer
Observer.update(java.util.Observable, java.lang.Object)
public void updateRemote()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |