Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.picture.web
Class SlideShowManagerBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.picture.web.SlideShowManagerBean
All Implemented Interfaces:
java.io.Serializable, SlideShowManager

@Name(value="slideShowManager")
@Scope(value=CONVERSATION)
public class SlideShowManagerBean
extends java.lang.Object
implements SlideShowManager, java.io.Serializable

Author:
Laurent Doguin
See Also:
Serialized Form

Constructor Summary
SlideShowManagerBean()
           
 
Method Summary
 void decIndex()
          Decrements the index.
 void destroy()
           
 void firstPic()
          Sets the index to 1.
 DocumentModel getChild()
          Gets the DocumentModel of a child from the index.
 java.lang.Integer getChildrenSize()
          Gets the ChildrenSize.
 java.lang.Integer getIndex()
          Gets the index.
 java.lang.Boolean getRepeat()
           
 java.lang.Boolean getStopped()
           
 void incIndex()
          Increments the index.
 void initialize()
           
 void inputValidation(javax.faces.event.ActionEvent arg0)
           
 void lastPic()
          Sets the index to the last picture available.
 void resetIndex()
          Reinitializes the values at every changes.
 void setChild(DocumentModel child)
          Sets the DocumentModel of a child from the index.
 void setIndex(java.lang.Integer idx)
          Sets the index.
 void setRepeat(java.lang.Boolean repeat)
           
 void setStopped(java.lang.Boolean stopped)
           
 void start()
           
 void stop()
           
 void togglePause()
           
 void toggleRepeat()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideShowManagerBean

public SlideShowManagerBean()
Method Detail

initialize

@Create
public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface SlideShowManager
Throws:
java.lang.Exception

firstPic

public void firstPic()
Description copied from interface: SlideShowManager
Sets the index to 1.

Specified by:
firstPic in interface SlideShowManager

lastPic

public void lastPic()
Description copied from interface: SlideShowManager
Sets the index to the last picture available.

Specified by:
lastPic in interface SlideShowManager

destroy

@Destroy
public void destroy()
Specified by:
destroy in interface SlideShowManager

getIndex

public java.lang.Integer getIndex()
Description copied from interface: SlideShowManager
Gets the index.

Specified by:
getIndex in interface SlideShowManager
Returns:
an Integer holding the current document's index.

decIndex

public void decIndex()
Description copied from interface: SlideShowManager
Decrements the index.

Specified by:
decIndex in interface SlideShowManager

incIndex

public void incIndex()
Description copied from interface: SlideShowManager
Increments the index.

Specified by:
incIndex in interface SlideShowManager

setIndex

public void setIndex(java.lang.Integer idx)
Description copied from interface: SlideShowManager
Sets the index.

Specified by:
setIndex in interface SlideShowManager
Parameters:
idx - an Integer holding the current document's index.

resetIndex

@Observer(value={"documentSelectionChanged","documentChildrenChanged"})
@BypassInterceptors
public void resetIndex()
                throws ClientException
Description copied from interface: SlideShowManager
Reinitializes the values at every changes.

Specified by:
resetIndex in interface SlideShowManager
Throws:
ClientException

inputValidation

public void inputValidation(javax.faces.event.ActionEvent arg0)
Specified by:
inputValidation in interface SlideShowManager

getChildrenSize

public java.lang.Integer getChildrenSize()
Description copied from interface: SlideShowManager
Gets the ChildrenSize. The amount of children from the current document.

Specified by:
getChildrenSize in interface SlideShowManager
Returns:
an Integer holding childrenSize

getChild

public DocumentModel getChild()
Description copied from interface: SlideShowManager
Gets the DocumentModel of a child from the index.

Specified by:
getChild in interface SlideShowManager
Returns:
a DocumentModel holding the child

setChild

public void setChild(DocumentModel child)
Description copied from interface: SlideShowManager
Sets the DocumentModel of a child from the index.

Specified by:
setChild in interface SlideShowManager
Parameters:
child - a DocumentModel holding the child

togglePause

public void togglePause()

stop

public void stop()

start

public void start()

getStopped

public java.lang.Boolean getStopped()

toggleRepeat

public void toggleRepeat()

setStopped

public void setStopped(java.lang.Boolean stopped)

getRepeat

public java.lang.Boolean getRepeat()

setRepeat

public void setRepeat(java.lang.Boolean repeat)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.