Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2012 Vaadin Ltd. 2 # Copyright (C) 2012 Richard Lincoln 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 """Helper for TreeTable.""" 17 18 from muntjac.data.util.container_ordered_wrapper import ContainerOrderedWrapper 19 from muntjac.data.container import IHierarchical 20 2124 """Helper for TreeTable. Does the same thing as ContainerOrderedWrapper 25 to fit into table but retains Hierarchical feature.""" 266228 super(HierarchicalContainerOrderedWrapper, self).__init__(toBeWrapped) 29 self._hierarchical = toBeWrapped30 3133 return self._hierarchical.areChildrenAllowed(itemId)34 3537 return self._hierarchical.getChildren(itemId)38 3941 return self._hierarchical.getParent(itemId)42 4345 return self._hierarchical.hasChildren(itemId)46 4749 return self._hierarchical.isRoot(itemId)50 5153 return self._hierarchical.rootItemIds()54 55 58 5961 return self._hierarchical.setParent(itemId, newParentId)
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 20 16:01:35 2013 | http://epydoc.sourceforge.net |