Version: 8.3.0
gui.cataitems.ItemService Class Reference
Inheritance diagram for gui.cataitems.ItemService:
Collaboration diagram for gui.cataitems.ItemService:

Public Member Functions

def __init__
 
def isExpandable
 
def addNode
 
def getChildren
 
def selected
 
- Public Member Functions inherited from gui.Item.Item
def __init__
 
def isExpandable
 
def getChildren
 
def father
 
def getIconName
 
def panel
 
def box
 
def selected
 
def dblselected
 

Public Attributes

 root
 
 service
 
 label
 
 emitting
 
- Public Attributes inherited from gui.Item.Item
 label
 
 emitting
 

Detailed Description

Definition at line 61 of file cataitems.py.

Constructor & Destructor Documentation

def gui.cataitems.ItemService.__init__ (   self,
  service,
  root 
)

Definition at line 62 of file cataitems.py.

62 
63  def __init__(self,service,root):
64  Item.Item.__init__(self)
65  self.root=root
66  self.service=service
67  self.label=service.getName()

Member Function Documentation

def gui.cataitems.ItemService.addNode (   self,
  appli 
)

Definition at line 71 of file cataitems.py.

References gui.cataitems.ItemService.service.

Referenced by gui.GraphViewer.GraphViewer.popup().

71 
72  def addNode(self,appli):
73  appli.addNode(self.service)
def gui.cataitems.ItemService.getChildren (   self)

Definition at line 74 of file cataitems.py.

References gui.cataitems.Obj.root, and gui.cataitems.ItemService.root.

74 
75  def getChildren(self):
76  sublist=[]
77  for port in self.service.getSetOfInputPort():
78  sublist.append(Items.ItemInPort(port,self.root))
79  for port in self.service.getSetOfOutputPort():
80  sublist.append(Items.ItemOutPort(port,self.root))
81  for port in self.service.getSetOfInputDataStreamPort():
82  sublist.append(Items.ItemInStream(port,self.root))
83  for port in self.service.getSetOfOutputDataStreamPort():
84  sublist.append(Items.ItemOutStream(port,self.root))
85  return sublist
def gui.cataitems.ItemService.isExpandable (   self)

Definition at line 68 of file cataitems.py.

68 
69  def isExpandable(self):
70  return True
def gui.cataitems.ItemService.selected (   self)

Definition at line 86 of file cataitems.py.

References gui.cataitems.Obj.emitting, and gui.cataitems.ItemService.emitting.

86 
87  def selected(self):
88  if not self.emitting:
89  self.emitting=1
90  CONNECTOR.Emit(self.root,"selected",self)
91  self.emitting=0

Member Data Documentation

gui.cataitems.ItemService.emitting

Definition at line 88 of file cataitems.py.

Referenced by gui.Items.ItemComposedNode.dblselected(), gui.sessions.Sessions.selected(), gui.sessions.Session.selected(), gui.cataitems.ItemService.selected(), gui.cataitems.ItemType.selected(), gui.cataitems.ItemCompo.selected(), gui.cataitems.ItemNode.selected(), gui.Items.ItemComposedNode.selected(), gui.cataitems.ItemComposedNode.selected(), gui.Items.ItemPort.selected(), and gui.Items.ItemNode.selected().

gui.cataitems.ItemService.label

Definition at line 66 of file cataitems.py.

gui.cataitems.ItemService.root

Definition at line 64 of file cataitems.py.

Referenced by gui.cataitems.ItemService.getChildren(), gui.cataitems.ItemCompo.getChildren(), gui.cataitems.TypesItem.getChildren(), gui.cataitems.ComponentsItem.getChildren(), gui.cataitems.NodesItem.getChildren(), gui.cataitems.ComposedNodesItem.getChildren(), and gui.Items.ItemPort.selected().

gui.cataitems.ItemService.service

Definition at line 65 of file cataitems.py.

Referenced by gui.cataitems.ItemService.addNode().


The documentation for this class was generated from the following file: