CMS 3D CMS Logo

EdmBrowserBoxView.py
Go to the documentation of this file.
1 import logging
2 
3 from Vispa.Views.BoxDecayView import BoxDecayView
4 from Vispa.Gui.WidgetContainer import WidgetContainer
5 
7  """
8  """
9  LABEL="BoxView"
10 
11  def createBox(self, widgetParent, container, title, text):
12  widget=BoxDecayView.createBox(self, widgetParent, container, title, text)
13  if isinstance(widget,WidgetContainer):
14  widget.setNotCollapsable()
15  return widget
16 
17  def selection(self):
18  return self.dataAccessor().read(BoxDecayView.selection(self))
19 
20  def isUpdated(self,object):
21  widget=self.widgetByObject(object)
22  if widget:
23  return len(self.dataAccessor().children(object))==len(widget.children()) and\
24  ((isinstance(widget,WidgetContainer) and len(self.dataAccessor().children(object))>0) or\
25  (not isinstance(widget,WidgetContainer) and len(self.dataAccessor().children(object))==0))
26  else:
27  return False
def createBox(self, widgetParent, container, title, text)
def widgetByObject(self, object)
Definition: WidgetView.py:52