Graphics/UMLItem.py

changeset 2033
4b99609f6a87
parent 2030
db11a2fe9bbc
child 2034
8de0fc1f7fef
--- a/Graphics/UMLItem.py	Sun Sep 09 17:46:32 2012 +0200
+++ b/Graphics/UMLItem.py	Sun Sep 09 19:38:07 2012 +0200
@@ -17,6 +17,8 @@
     """
     Class implementing the UMLItem base class.
     """
+    ItemType = "UMLItem"
+    
     def __init__(self, x=0, y=0, rounded=False, parent=None):
         """
         Constructor
@@ -162,6 +164,14 @@
         """
         return self.__id
     
+    def getItemType(self):
+        """
+        Public method to get the item's type.
+        
+        @return item type (string)
+        """
+        return self.ItemType
+    
     def buildItemDataString(self):
         """
         Public method to build a string to persist the specific item data.

eric ide

mercurial