org.exoplatform.wcm.webui.category
Class UICategoryNavigationTree

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.category.UICategoryNavigationTree

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

Created by The eXo Platform SAS Author : eXoPlatform chuong.phan@exoplatform.com, phan.le.thanh.chuong@gmail.com Jun 19, 2009


Nested Class Summary
static class UICategoryNavigationTree.ChangeNodeActionListener
          The listener interface for receiving changeNodeAction events.
static class UICategoryNavigationTree.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
protected  org.exoplatform.services.wcm.core.NodeLocation currentNode
          The current node.
protected  org.exoplatform.services.wcm.core.NodeLocation rootTreeNode
          The root tree node.
 
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
UICategoryNavigationTree()
          Instantiates a new uI node tree builder.
 
Method Summary
 void buildTree()
          Builds the tree.
 void changeNode(String path, Object context)
          When a node is change in tree.
 String[] getAcceptedNodeTypes()
          Gets the accepted node types.
 javax.jcr.Node getCurrentNode()
          Gets the current node.
 javax.jcr.Node getRootTreeNode()
          Gets the root tree node.
 boolean isAllowPublish()
          Checks if is allow publish.
 void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
           
 void setAcceptedNodeTypes(String[] acceptedNodeTypes)
          Sets the accepted node types.
 void setAllowPublish(boolean allowPublish, org.exoplatform.services.ecm.publication.PublicationService publicationService, List<String> templates)
          Sets the allow publish.
 void setCurrentNode(javax.jcr.Node currentNode)
          Sets the current node.
 void setRootTreeNode(javax.jcr.Node node)
          Sets the root tree node.
 
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, 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

rootTreeNode

protected org.exoplatform.services.wcm.core.NodeLocation rootTreeNode
The root tree node.


currentNode

protected org.exoplatform.services.wcm.core.NodeLocation currentNode
The current node.

Constructor Detail

UICategoryNavigationTree

public UICategoryNavigationTree()
                         throws Exception
Instantiates a new uI node tree builder.

Throws:
Exception - the exception
Method Detail

isAllowPublish

public boolean isAllowPublish()
Checks if is allow publish.

Returns:
true, if is allow publish

setAllowPublish

public void setAllowPublish(boolean allowPublish,
                            org.exoplatform.services.ecm.publication.PublicationService publicationService,
                            List<String> templates)
Sets the allow publish.

Parameters:
allowPublish - the allow publish
publicationService - the publication service
templates - the templates

getRootTreeNode

public javax.jcr.Node getRootTreeNode()
Gets the root tree node.

Returns:
the root tree node

setRootTreeNode

public final void setRootTreeNode(javax.jcr.Node node)
                           throws Exception
Sets the root tree node.

Parameters:
node - the new root tree node
Throws:
Exception - the exception

getCurrentNode

public javax.jcr.Node getCurrentNode()
Gets the current node.

Returns:
the current node

setCurrentNode

public void setCurrentNode(javax.jcr.Node currentNode)
Sets the current node.

Parameters:
currentNode - the new current node

getAcceptedNodeTypes

public String[] getAcceptedNodeTypes()
Gets the accepted node types.

Returns:
the accepted node types

setAcceptedNodeTypes

public void setAcceptedNodeTypes(String[] acceptedNodeTypes)
Sets the accepted node types.

Parameters:
acceptedNodeTypes - the new accepted node types

processRender

public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
                   throws Exception
Overrides:
processRender in class org.exoplatform.webui.core.UIComponent
Throws:
Exception

buildTree

public void buildTree()
               throws Exception
Builds the tree.

Throws:
Exception - the exception

changeNode

public void changeNode(String path,
                       Object context)
                throws Exception
When a node is change in tree. This method will be rerender the children & sibbling nodes of current node and broadcast change node event to other uicomponent

Parameters:
path - the path
context - the context
Throws:
Exception - the exception


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.