/* start module: Sink */
Sink = $pyjs.loaded_modules["Sink"] = function (__mod_name__) {
if(Sink.__was_initialized__) return Sink;
Sink.__was_initialized__ = true;
if (__mod_name__ == null) __mod_name__ = 'Sink';
var __name__ = Sink.__name__ = __mod_name__;
 pyjslib.__import__(['pyjamas.ui.Composite.Composite', 'pyjamas.ui.Composite'], 'pyjamas.ui.Composite.Composite', 'Sink')
 Sink.Composite = $pyjs.__modules__.pyjamas.ui.Composite.Composite;
Sink.Sink = (function(){
	var cls_instance = pyjs__class_instance('Sink');
	var cls_definition = new Object();
	cls_definition.__md5__ = 'faf9520887c3a499e5af7b25550ce167';
	cls_definition.__init__ = pyjs__bind_method(cls_instance, '__init__', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

		Sink.Composite.__init__(self);
		return null;
	}
	, 1, [null,null,'self']);
	cls_definition.onHide = pyjs__bind_method(cls_instance, 'onHide', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

 		return null;
	}
	, 1, [null,null,'self']);
	cls_definition.onShow = pyjs__bind_method(cls_instance, 'onShow', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

 		return null;
	}
	, 1, [null,null,'self']);
	cls_definition.baseURL = pyjs__bind_method(cls_instance, 'baseURL', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

		return String('');
	}
	, 1, [null,null,'self']);
	return pyjs__class_function(cls_instance, cls_definition, 
	                            new Array(Sink.Composite));
})();
Sink.SinkInfo = (function(){
	var cls_instance = pyjs__class_instance('SinkInfo');
	var cls_definition = new Object();
	cls_definition.__md5__ = '418bf2f5235dc099a4f921943ac2e6eb';
	cls_definition.__init__ = pyjs__bind_method(cls_instance, '__init__', function(name, desc, object_type) {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
			name = arguments[1];
			desc = arguments[2];
			object_type = arguments[3];
		}

		self.name_ = name;
		self.description = desc;
		self.object_type = object_type;
		self.instance = null;
		return null;
	}
	, 1, [null,null,'self', 'name', 'desc', 'object_type']);
	cls_definition.createInstance = pyjs__bind_method(cls_instance, 'createInstance', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

		return self.object_type();
	}
	, 1, [null,null,'self']);
	cls_definition.getDescription = pyjs__bind_method(cls_instance, 'getDescription', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

		return self.description;
	}
	, 1, [null,null,'self']);
	cls_definition.getInstance = pyjs__bind_method(cls_instance, 'getInstance', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

		if (pyjslib.bool(pyjslib.eq(self.instance, null))) {
			self.instance = self.createInstance();
		}
		return self.instance;
	}
	, 1, [null,null,'self']);
	cls_definition.getName = pyjs__bind_method(cls_instance, 'getName', function() {
		if (this.__is_instance__ === true) {
			var self = this;
		} else {
			var self = arguments[0];
		}

		return self.name_;
	}
	, 1, [null,null,'self']);
	return pyjs__class_function(cls_instance, cls_definition, 
	                            new Array(pyjslib.object));
})();
return this;
}; /* end Sink */
$pyjs.modules_hash['Sink'] = $pyjs.loaded_modules['Sink'];


 /* end module: Sink */


/*
PYJS_DEPS: ['pyjamas.ui.Composite.Composite', 'pyjamas', 'pyjamas.ui', 'pyjamas.ui.Composite']
*/
