spcp7.imagegallery.view.managedbean.helper
Class ViewWrapper
java.lang.Object
spcp7.imagegallery.view.managedbean.helper.ViewWrapper
public class ViewWrapper
- extends java.lang.Object
Wraps ContentFolderModelFace and ContentFace for use within
the gallery view perspective.
- Author:
- Phillip Merensky
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewWrapper
public ViewWrapper(ContentFolderModelFace cf,
GalleryViewBean viewBean)
contentFolder will be set to true.
- Parameters:
cf - the content folder.viewBean - the viewBean for later actions.
ViewWrapper
public ViewWrapper(ContentFolderModelFace cf,
ContentFace content,
GalleryViewBean viewBean,
boolean isContentFolder)
- If we wrap a
ContentFace we also need the parent
ContentFolderModelFace to allow browsing through content
and content folders within one view.
- Parameters:
cf - the wrapped content foldercontent - the wrapped content.viewBean - the viewBean for later actions.isContentFolder - is a content folder wrapped?
showSubElements
public void showSubElements(javax.faces.event.ActionEvent ae)
- Calls
GalleryViewBean.showSubElements(ViewWrapper, Page).
- Parameters:
ae -
getCf
public ContentFolderModelFace getCf()
- Returns:
getContent
public ContentFace getContent()
- Returns:
getPreviewImageUrl
public java.lang.String getPreviewImageUrl()
- Returns:
isContentFolder
public boolean isContentFolder()
- Returns:
getViewBean
public GalleryViewBean getViewBean()
- Returns:
setContentFolder
public void setContentFolder(boolean contentFolder)
- Parameters:
contentFolder -
isShowContentFolder
public boolean isShowContentFolder()
- Returns:
- true if this is a content folder and
isActivated()
returns true.
isActivated
public boolean isActivated()
- Returns:
- true if
cf is not null and content folder is activated.
setCf
public void setCf(ContentFolderModelFace cf)
- Parameters:
cf - the cf to set
Copyright © 2008. All Rights Reserved.