org.exoplatform.wcm.webui.pcv
Class UIPCVContainer

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.wcm.webui.pcv.UIPCVContainer

public class UIPCVContainer
extends org.exoplatform.portal.webui.container.UIContainer

Created by The eXo Platform SAS Author : Phan Le Thanh Chuong chuong.phan@exoplatform.com, phan.le.thanh.chuong@gmail.com Nov 4, 2008


Nested Class Summary
static class UIPCVContainer.EditActionListener
          The listener interface for receiving quickEditAction events.
static class UIPCVContainer.QuickEditActionListener
          The listener interface for receiving quickEditAction events.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String PREFERENCE_REPOSITORY
          The Constant PREFERENCE_REPOSITORY.
 
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
 
Constructor Summary
UIPCVContainer()
          Instantiates a new uI content viewer container.
 
Method Summary
 java.lang.String getCreatedDate(javax.jcr.Node node)
          Gets the created date.
 boolean getIsPrint()
          Gets isPrint value that is used to display Print/Close buttons and hide Back one if its' value is True.
 javax.jcr.Node getNode()
          Gets the node.
 java.lang.String getRepository()
          Gets the repository.
 java.lang.String getTitle(javax.jcr.Node node)
          Gets the title.
 boolean isDraftRevision()
          Gets the draft revision value.
 boolean isObsoletedContent()
          Gets the draft obsolete value.
 boolean isShowBar()
          Checks if is show date created.
 boolean isShowDateCreated()
          Checks if is show date created.
 boolean isShowTitle()
          Checks if is show title.
 void setDraftRevision(boolean isDraftRevision)
          Sets the draft revision value.
 void setIsPrint(boolean isPrint)
          Sets isPrint value that is used to display Print/Close buttons and hide Back one if its' value is True.
 void setObsoletedContent(boolean isObsoletedContent)
          Sets the draft obsolete value.
 void setRepository(java.lang.String repository)
          Sets the repository.
 
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, getTemplate, 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, getTemplateResourceResolver, 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
 

Field Detail

PREFERENCE_REPOSITORY

public static final java.lang.String PREFERENCE_REPOSITORY
The Constant PREFERENCE_REPOSITORY.

See Also:
Constant Field Values
Constructor Detail

UIPCVContainer

public UIPCVContainer()
               throws java.lang.Exception
Instantiates a new uI content viewer container.

Throws:
java.lang.Exception - the exception
Method Detail

isShowTitle

public boolean isShowTitle()
Checks if is show title.

Returns:
true, if is show title

getTitle

public java.lang.String getTitle(javax.jcr.Node node)
                          throws java.lang.Exception
Gets the title.

Parameters:
node - the node
Returns:
the title
Throws:
java.lang.Exception - the exception

isShowDateCreated

public boolean isShowDateCreated()
Checks if is show date created.

Returns:
true, if is show date created

isShowBar

public boolean isShowBar()
Checks if is show date created.

Returns:
true, if is show date created

getCreatedDate

public java.lang.String getCreatedDate(javax.jcr.Node node)
                                throws java.lang.Exception
Gets the created date.

Parameters:
node - the node
Returns:
the created date
Throws:
java.lang.Exception - the exception

getRepository

public java.lang.String getRepository()
                               throws javax.jcr.RepositoryException
Gets the repository.

Returns:
the repository
Throws:
javax.jcr.RepositoryException - the repository exception

setRepository

public void setRepository(java.lang.String repository)
Sets the repository.

Parameters:
repository - the new repository

getNode

public javax.jcr.Node getNode()
                       throws java.lang.Exception
Gets the node.

Returns:
the node
Throws:
java.lang.Exception - the exception

getIsPrint

public boolean getIsPrint()
Gets isPrint value that is used to display Print/Close buttons and hide Back one if its' value is True. In False case, the Back button will be shown only.

Returns:
isPrint

setIsPrint

public void setIsPrint(boolean isPrint)
Sets isPrint value that is used to display Print/Close buttons and hide Back one if its' value is True. In False case, the Back button will be shown only.

Parameters:
isPrint - the is print

isDraftRevision

public boolean isDraftRevision()
Gets the draft revision value. If the revision is draft, an icon and one text is shown. Otherwise, false.

Returns:
isDraftRevision

setDraftRevision

public void setDraftRevision(boolean isDraftRevision)
Sets the draft revision value. If the revision is draft, an icon and one text is shown. Otherwise, false.

Parameters:
isDraftRevision - the is draft revision

isObsoletedContent

public boolean isObsoletedContent()
Gets the draft obsolete value. If the revision is draft, the message is shown to inform users of this state. Otherwise, false.

Returns:
isDraftRevision

setObsoletedContent

public void setObsoletedContent(boolean isObsoletedContent)
Sets the draft obsolete value. If the revision is draft, the message is shown to inform users of this state. Otherwise, false.

Parameters:
isObsoletedContent - the is obsoleted content


Copyright © 2012 eXo Platform SAS. All Rights Reserved.