org.exoplatform.wcm.webui.scv
Class UIPresentation

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.portal.webui.portal.UIPortalComponent
              extended by org.exoplatform.portal.webui.container.UIContainer
                  extended by org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
                      extended by org.exoplatform.wcm.webui.scv.UIPresentation
All Implemented Interfaces:
org.exoplatform.ecm.webui.presentation.NodePresentation

public class UIPresentation
extends org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation

Created by The eXo Platform SAS Author : DANG TAN DUNG dzungdev@gmail.com Jun 9, 2008


Nested Class Summary
static class UIPresentation.DownloadActionListener
           
static class UIPresentation.SwitchToAudioDescriptionActionListener
           
static class UIPresentation.SwitchToOriginalActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.portal.webui.container.UIContainer
description, icon, TABLE_COLUMN_CONTAINER
 
Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
COMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Fields inherited from interface org.exoplatform.ecm.webui.presentation.NodePresentation
MEDIA_STATE_DISPLAY, MEDIA_STATE_NONE
 
Constructor Summary
UIPresentation()
           
 
Method Summary
 List<javax.jcr.Node> getAttachments()
          Gets the attachment nodes.
 org.exoplatform.webui.core.UIComponent getCommentComponent()
           
 javax.jcr.Node getDisplayNode()
           
 javax.jcr.Node getNode()
           
 String getNodeType()
           
 javax.jcr.Node getOriginalNode()
           
 org.exoplatform.webui.core.UIComponent getRemoveAttach()
           
 org.exoplatform.webui.core.UIComponent getRemoveComment()
           
 String getRepositoryName()
           
 String getTemplate()
           
 String getTemplatePath()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)
           
 org.exoplatform.webui.core.UIComponent getUIComponent(String mimeType)
           
 String getViewableLink(javax.jcr.Node node, org.exoplatform.web.application.Parameter[] params)
          Gets the viewable link (attachment link, relation document link)
 boolean isDisplayAlternativeText()
           
 boolean isNodeTypeSupported()
           
 boolean playAudioDescription()
           
 void setNode(javax.jcr.Node node)
           
 void setOriginalNode(javax.jcr.Node node)
           
 void setTemplatePath(String templatePath)
           
 boolean switchBackAudioDescription()
           
 
Methods inherited from class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
encodeHTML, getCategories, getComments, getComponentInstanceOfType, getDownloadLink, getIcons, getImage, getImageURIInProperty, getInlineEditingField, getInlineEditingField, getLanguage, getMediaState, getNodeByUUID, getPortalName, getPortletPreferenceValue, getPortletPreferenceValues, getRelations, getRepository, getRssLink, getSupportedLocalise, getTags, getTemplateSkin, getViewTemplate, getVotingRate, getWebDAVServerPrefix, getWorkspaceName, isEnableComment, isEnableVote, isRssLink, setEnableComment, setEnableVote, setLanguage, switchMediaState
 
Methods inherited from class org.exoplatform.portal.webui.container.UIContainer
getDescription, getIcon, getStorageId, setDescription, setIcon, setStorageId
 
Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getAccessPermissions, getFactoryId, getHeight, getName, getTitle, getWidth, hasPermission, isModifiable, setAccessPermissions, setFactoryId, setHeight, setModifiable, setName, setTemplate, setTitle, setWidth
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIPresentation

public UIPresentation()
Method Detail

getOriginalNode

public javax.jcr.Node getOriginalNode()
                               throws Exception
Specified by:
getOriginalNode in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Specified by:
getOriginalNode in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
Throws:
Exception

setOriginalNode

public void setOriginalNode(javax.jcr.Node node)
                     throws Exception
Throws:
Exception

getNode

public javax.jcr.Node getNode()
                       throws Exception
Specified by:
getNode in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Specified by:
getNode in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
Throws:
Exception

getDisplayNode

public javax.jcr.Node getDisplayNode()
                              throws Exception
Throws:
Exception

setNode

public void setNode(javax.jcr.Node node)

getRepositoryName

public String getRepositoryName()
Overrides:
getRepositoryName in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation

getTemplate

public String getTemplate()
Overrides:
getTemplate in class org.exoplatform.portal.webui.portal.UIPortalComponent

getTemplatePath

public String getTemplatePath()
                       throws Exception
Specified by:
getTemplatePath in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Specified by:
getTemplatePath in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
Throws:
Exception

setTemplatePath

public void setTemplatePath(String templatePath)

getTemplateResourceResolver

public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context,
                                                                             String template)
Overrides:
getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponent

getTemplateResourceResolver

public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver()

getNodeType

public String getNodeType()
                   throws Exception
Throws:
Exception

isNodeTypeSupported

public boolean isNodeTypeSupported()

getCommentComponent

public org.exoplatform.webui.core.UIComponent getCommentComponent()

getRemoveAttach

public org.exoplatform.webui.core.UIComponent getRemoveAttach()
                                                       throws Exception
Throws:
Exception

getRemoveComment

public org.exoplatform.webui.core.UIComponent getRemoveComment()
                                                        throws Exception
Throws:
Exception

getUIComponent

public org.exoplatform.webui.core.UIComponent getUIComponent(String mimeType)
                                                      throws Exception
Throws:
Exception

getViewableLink

public String getViewableLink(javax.jcr.Node node,
                              org.exoplatform.web.application.Parameter[] params)
                       throws Exception
Gets the viewable link (attachment link, relation document link)

Specified by:
getViewableLink in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Overrides:
getViewableLink in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
Parameters:
node - the node
Returns:
the attachment URL
Throws:
Exception - the exception

getAttachments

public List<javax.jcr.Node> getAttachments()
                                    throws Exception
Gets the attachment nodes.

Specified by:
getAttachments in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Overrides:
getAttachments in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
Returns:
the attachment Nodes
Throws:
Exception - the exception

isDisplayAlternativeText

public boolean isDisplayAlternativeText()
Specified by:
isDisplayAlternativeText in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Overrides:
isDisplayAlternativeText in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation

playAudioDescription

public boolean playAudioDescription()
Specified by:
playAudioDescription in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Overrides:
playAudioDescription in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation

switchBackAudioDescription

public boolean switchBackAudioDescription()
Specified by:
switchBackAudioDescription in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Overrides:
switchBackAudioDescription in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.