1 23 package com.sun.enterprise.tools.jsfext.component.factory.basic; 24 25 import com.sun.enterprise.tools.jsfext.layout.descriptor.LayoutComponent; 26 27 import java.util.Map ; 28 29 import javax.faces.component.UIComponent; 30 31 32 46 public abstract class TreeAdaptorBase implements TreeAdaptor { 47 48 54 protected TreeAdaptorBase() { 55 } 56 57 61 protected TreeAdaptorBase(LayoutComponent desc, UIComponent parent) { 62 setLayoutComponent(desc); 63 setParentUIComponent(parent); 64 } 65 66 70 public LayoutComponent getLayoutComponent() { 71 return _layoutComponent; 72 } 73 74 78 public void setLayoutComponent(LayoutComponent comp) { 79 _layoutComponent = comp; 80 } 81 82 86 public UIComponent getParentUIComponent() { 87 return _parent; 88 } 89 90 94 public void setParentUIComponent(UIComponent comp) { 95 _parent = comp; 96 } 97 98 106 public void init() { 107 } 108 109 117 public Object getTreeNodeObject() { 118 return _topNodeObject; 119 } 120 121 124 public void setTreeNodeObject(Object nodeObject) { 125 _topNodeObject = nodeObject; 126 } 127 128 133 public String getFactoryClass(Object nodeObject) { 134 return "com.sun.enterprise.tools.jsfext.component.factory.basic.TreeNodeFactory"; 135 } 136 137 147 public Map getFacets(Object nodeObject) { 148 return null; 149 } 150 151 165 public Map getHandlersByType(Object nodeObject) { 166 return null; 167 } 168 169 private Object _topNodeObject = null; 170 private LayoutComponent _layoutComponent = null; 171 private UIComponent _parent = null; 172 } 173 | Popular Tags |