Package flumotion :: Package component :: Package base :: Module admin_gtk :: Class BaseAdminGtk
[hide private]

Class BaseAdminGtk

source code

common.log.Loggable --+
                      |
                     BaseAdminGtk

I am a base class for all GTK+-based Admin views. I am a view on one component's properties.

Instance Methods [hide private]
 
__init__(self, state, admin) source code
 
setUIState(self, state) source code
 
propertyErrback(self, failure, window) source code
 
setElementProperty(self, elementName, propertyName, value)
Set the given property on the element with the given name.
source code
 
getElementProperty(self, elementName, propertyName)
Get the value of the given property of the element with the given name.
source code
 
callRemote(self, methodName, *args, **kwargs) source code
 
propertyChanged(self, name, value)
Override this method to be notified of component's properties that have changed.
source code
 
setup(self)
Set up the admin view so it can display nodes.
source code
 
getNodes(self)
Return a dict of admin UI nodes.
source code
 
render(self)
Render the GTK+ admin view for this component and return the main widget for embedding.
source code
 
uiStateChanged(self, stateObject) source code
 
stateSet(self, object, key, value) source code
 
stateAppend(self, object, key, value) source code
 
stateRemove(self, object, key, value) source code

Inherited from common.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Class Variables [hide private]
  logCategory = "admingtk"
Implementors can provide a category to log their messages under.

Inherited from common.log.Loggable: __implemented__, __provides__

Instance Variables [hide private]
twisted.python.util.OrderedDict nodes
an ordered dict of name -> BaseAdminGtkNode
Method Details [hide private]

__init__(self, state, admin)
(Constructor)

source code 
Parameters:

getElementProperty(self, elementName, propertyName)

source code 

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

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

propertyChanged(self, name, value)

source code 

Override this method to be notified of component's properties that have changed.

I am meant to be overridden.