Package flumotion :: Package component :: Package base :: Module admin_gtk :: Class BaseAdminGtkNode
[show private | hide private]
[frames | no frames]

Class BaseAdminGtkNode

Loggable --+
           |
          BaseAdminGtkNode

Known Subclasses:
EffectAdminGtkNode

I am a base class for all GTK+-based Admin UI nodes. I am a view on a set of properties for a component.
Method Summary
  __init__(self, state, admin, title)
  callRemote(self, method_name, *args, **kwargs)
  getElementProperty(self, elementName, propertyName)
Get the value of the given property of the element with the given name.
  getWidget(self, name)
  haveWidgetTree(self)
I am called when the widget tree has been gotten from the glade file.
  loadGladeFile(self, gladeFile, domain)
Returns: a deferred returning the widget tree from the glade file.
  propertyChanged(self, name, value)
I am meant to be overridden.
  propertyErrback(self, failure, window)
  render(self, *args, **kwargs)
  setElementProperty(self, elementName, propertyName, value)
Set the given property on the element with the given name.
  status_pop(self, mid)
  status_push(self, str)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Instance Variable Summary
gtk.Widget widget: the main widget representing this node
  wtree: the widget tree representation for this node

Class Variable Summary
str gettext_domain = 'flumotion'
NoneType glade_file = None                                                                  
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Loggable
Implements __implemented__ = <implementedBy flumotion.common.log.Lo...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

__init__(self, state, admin, title=None)
(Constructor)

Parameters:
state - state of component this is a UI node for
           (type=flumotion.common.planet.AdminComponentState)
admin - the admin model that interfaces with the manager for us
           (type=flumotion.admin.admin.AdminModel)
title - the (translated) title to show this node with
           (type=str)

getElementProperty(self, elementName, propertyName)

Get the value of the given property of the element with the given name.

Returns: twisted.internet.defer.Deferred returning the value.

haveWidgetTree(self)

I am called when the widget tree has been gotten from the glade file.

Override me to act on it.

Returns: twisted.internet.defer.Deferred

loadGladeFile(self, gladeFile, domain='flumotion')

Returns: a deferred returning the widget tree from the glade file.

propertyChanged(self, name, value)

I am meant to be overridden.

setElementProperty(self, elementName, propertyName, value)

Set the given property on the element with the given name.

Instance Variable Details

widget

the main widget representing this node
Type:
gtk.Widget

wtree

the widget tree representation for this node

Class Variable Details

gettext_domain

Type:
str
Value:
'flumotion'                                                            

glade_file

Type:
NoneType
Value:
None                                                                  

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'admingtk'                                                             

Generated by Epydoc 2.1 on Wed Sep 13 13:38:32 2006 http://epydoc.sf.net