spcp7.imagegallery.view.managedbean.helper
Class EditContentWrapper

java.lang.Object
  extended by spcp7.imagegallery.view.managedbean.helper.EditContentWrapper

public class EditContentWrapper
extends java.lang.Object

Wraps a ContentFace for use within the browsing perspective of the edit properties.

Author:
Phillip Merensky

Constructor Summary
EditContentWrapper(ContentFace cf, PropertyWrapper appropriateProperty, EditBean propBean, java.lang.String thumbnailUrl)
          Standard contstructor
 
Method Summary
 PropertyWrapper getAppropriateProperty()
           
 ContentFace getContent()
           
 boolean getSelectionAllowed()
          Evaluates content if selecting the wrapped content isallowed.
 java.lang.String getThumbnailUrl()
           
 boolean isThumbnailAvailable()
           
 void selectContent(javax.faces.event.ActionEvent ae)
          Content was selected (user pressed select button within the browsing view) so update the property in the propBean.
 void setThumbnailUrl(java.lang.String thumbnailUrl)
           
 void showParentElements(javax.faces.event.ActionEvent ae)
          Retrieves the parent element of the currently browsed content.
 void showSubElements(javax.faces.event.ActionEvent ae)
          Should be called when subelements of the clicked element should be shown.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditContentWrapper

public EditContentWrapper(ContentFace cf,
                          PropertyWrapper appropriateProperty,
                          EditBean propBean,
                          java.lang.String thumbnailUrl)
Standard contstructor

Parameters:
cf - The content face to wrap.
appropriateProperty - the property from which the browsing button was opened
propBean - the backing bean
thumbnailUrl - the url of the thumbnail of this content or null if none is provided.
Method Detail

getContent

public ContentFace getContent()
Returns:

isThumbnailAvailable

public boolean isThumbnailAvailable()
Returns:

selectContent

public void selectContent(javax.faces.event.ActionEvent ae)
Content was selected (user pressed select button within the browsing view) so update the property in the propBean.

Parameters:
ae -

showSubElements

public void showSubElements(javax.faces.event.ActionEvent ae)
Should be called when subelements of the clicked element should be shown. Calls EditBean.retrieveCurrentBrowsedContent(ContentFace, PropertyWrapper) with the current content.

Parameters:
ae -

showParentElements

public void showParentElements(javax.faces.event.ActionEvent ae)
Retrieves the parent element of the currently browsed content.

Parameters:
ae -

getAppropriateProperty

public PropertyWrapper getAppropriateProperty()
Returns:

getSelectionAllowed

public boolean getSelectionAllowed()
Evaluates content if selecting the wrapped content isallowed.

Returns:

getThumbnailUrl

public java.lang.String getThumbnailUrl()
Returns:
the thumbnailUrl

setThumbnailUrl

public void setThumbnailUrl(java.lang.String thumbnailUrl)
Parameters:
thumbnailUrl - the thumbnailUrl to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2008. All Rights Reserved.