summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/ui/event/DataAware.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-08-08 19:34:04 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-18 02:57:44 +0200
commit9ad82442fb37f42d3f2797b9594c7021aeb34de4 (patch)
treeabfd71bb04b74d992f21d57dc1cc5574068493d7 /wizards/com/sun/star/wizards/ui/event/DataAware.py
parent3f92e275dafc0a54160937710cf77a9995c08cb5 (diff)
first attempt to create the web wizard
Diffstat (limited to 'wizards/com/sun/star/wizards/ui/event/DataAware.py')
-rw-r--r--wizards/com/sun/star/wizards/ui/event/DataAware.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/ui/event/DataAware.py b/wizards/com/sun/star/wizards/ui/event/DataAware.py
index 83f7845e8bf5..b611c3a79069 100644
--- a/wizards/com/sun/star/wizards/ui/event/DataAware.py
+++ b/wizards/com/sun/star/wizards/ui/event/DataAware.py
@@ -32,6 +32,9 @@ class DataAware(object):
self._dataObject = dataObject_
self._field = field_
+ def enableControls(self, value):
+ pass
+
'''
sets the given value to the UI control
@param newValue the value to set to the ui control.
@@ -63,6 +66,7 @@ class DataAware(object):
except Exception, ex:
traceback.print_exc()
#TODO tell user...
+ self.enableControls(data)
'''
updates the DataObject according to
@@ -78,5 +82,6 @@ class DataAware(object):
#Selected Element listbox
ui = ui[0]
setattr(self._dataObject, self._field, ui)
+ self.enableControls(ui)
except Exception:
traceback.print_exc()