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

Class BaseAdminGtkNode

source code

common.log.Loggable --+
                      |
                     BaseAdminGtkNode

I am a base class for all GTK+-based Admin UI nodes. I am a view on a set of properties for a component.

Instance Methods [hide private]
 
__init__(self, state, admin, title=None) source code
 
status_push(self, str) source code
 
status_pop(self, mid) 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
 
loadGladeFile(self, gladeFile, domain='flumotion')
Returns: a deferred returning the widget tree from the glade file.
source code
 
getWidget(self, name) source code
 
createWidget(self, name)
Create a new widget instance from the glade file.
source code
 
haveWidgetTree(self)
I am called when the widget tree has been gotten from the glade file.
source code
 
propertyChanged(self, name, value)
I am meant to be overridden.
source code
 
gotUIState(self, state) source code
 
setUIState(self, state)
Called by the BaseAdminGtk when it gets the UI state and the GUI is ready.
source code
 
stateSet(self, state, key, value)
Override me
source code
 
stateAppend(self, state, key, value)
Override me
source code
 
stateRemove(self, state, key, value)
Override me
source code
 
stateSetitem(self, state, key, subkey, value)
Override me
source code
 
stateDelitem(self, state, key, subkey, value)
Override me
source code
 
render(self)
Render the GTK+ admin view for this component.
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.
  glade_file = None
  gettext_domain = 'flumotion'

Inherited from common.log.Loggable: __implemented__, __provides__

Instance Variables [hide private]
gtk.Widget widget
the main widget representing this node
  wtree
the widget tree representation for this node
Method Details [hide private]

__init__(self, state, admin, title=None)
(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.

createWidget(self, name)

source code 

Create a new widget instance from the glade file. Can be used to make multiple instances of the same widget.

haveWidgetTree(self)

source code 

I am called when the widget tree has been gotten from the glade file. Responsible for setting self.widget.

Override me to act on it.

setUIState(self, state)

source code 

Called by the BaseAdminGtk when it gets the UI state and the GUI is ready. Chain up if you provide your own implementation.

render(self)

source code 

Render the GTK+ admin view for this component.

Returns: a deferred returning the main widget for embedding