Author: remi
Date: 2009-04-14 14:34:28 +0200 (Tue, 14 Apr 2009)
New Revision: 4501

Modified:
   
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/GadgetParameter.py
Log:
* added 3 parameter attributes

Modified: 
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/GadgetParameter.py
===================================================================
--- 
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/GadgetParameter.py
 2009-04-14 12:33:53 UTC (rev 4500)
+++ 
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/GadgetParameter.py
 2009-04-14 12:34:28 UTC (rev 4501)
@@ -111,6 +111,33 @@
         return self.__structure['max_value']
 
     # 
--------------------------------------------------------------------------
+    # Get if the parameter is visible or not.
+    # 
--------------------------------------------------------------------------
+    def isVisible(self):
+        """Get if the parameter is visible or not.
+        @return: A string.
+        """
+        return self.__structure['visible']
+
+    # 
--------------------------------------------------------------------------
+    # Get the file extention filters.
+    # 
--------------------------------------------------------------------------
+    def getFilters(self):
+        """Get the file extention filters.
+        @return: A string.
+        """
+        return self.__structure['filters']
+
+    # 
--------------------------------------------------------------------------
+    # Get the step value.
+    # 
--------------------------------------------------------------------------
+    def getStepValue(self):
+        """Get the step value.
+        @return: A string.
+        """
+        return self.__structure['step_value']
+
+    # 
--------------------------------------------------------------------------
     # Show the parameter description in the console.
     # 
--------------------------------------------------------------------------
     def show(self):
@@ -122,8 +149,11 @@
         descList.append("%s = %s" % ('Description', self.getDescription()))
         descList.append("%s = %s" % ('Type', self.getType()))
         descList.append("%s = %s" % ('Category', self.getCategory()))
+        descList.append("%s = %s" % ('Visible', self.isVisible()))
         descList.append("%s = %s" % ('Default value', self.getDefaultValue()))
         descList.append("%s = %s" % ('Enum values', self.getEnumValues()))
         descList.append("%s = %s" % ('Minimal value', self.getMinValue()))
         descList.append("%s = %s" % ('Maximal value', self.getMaxValue()))
+        descList.append("%s = %s" % ('Step value', self.getStepValue()))
+        descList.append("%s = %s" % ('Filters', self.getFilters()))
         self._showStringList("Parameter description :", descList)


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to