Type.registerNamespace('Dropthings.Web.Framework');
Dropthings.Web.Framework.WidgetService=function() {
Dropthings.Web.Framework.WidgetService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Dropthings.Web.Framework.WidgetService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Dropthings.Web.Framework.WidgetService._staticInstance.get_path();},
AddWidgetInstance:function(widgetId,toZone,toRow,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddWidgetInstance',false,{widgetId:widgetId,toZone:toZone,toRow:toRow},succeededCallback,failedCallback,userContext); },
MoveWidgetInstance:function(instanceId,toZoneId,toRow,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MoveWidgetInstance',false,{instanceId:instanceId,toZoneId:toZoneId,toRow:toRow},succeededCallback,failedCallback,userContext); },
ResizeWidgetInstance:function(widgetId,width,height,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ResizeWidgetInstance',false,{widgetId:widgetId,width:width,height:height},succeededCallback,failedCallback,userContext); },
MaximizeWidgetInstance:function(widgetId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MaximizeWidgetInstance',false,{widgetId:widgetId},succeededCallback,failedCallback,userContext); },
ExpandWidgetInstance:function(widgetId,postbackUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ExpandWidgetInstance',false,{widgetId:widgetId,postbackUrl:postbackUrl},succeededCallback,failedCallback,userContext); },
CollaspeWidgetInstance:function(widgetId,postbackUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CollaspeWidgetInstance',false,{widgetId:widgetId,postbackUrl:postbackUrl},succeededCallback,failedCallback,userContext); },
RestoreWidgetInstance:function(widgetId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RestoreWidgetInstance',false,{widgetId:widgetId},succeededCallback,failedCallback,userContext); },
DeleteWidgetInstance:function(widgetId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteWidgetInstance',false,{widgetId:widgetId},succeededCallback,failedCallback,userContext); },
AssignPermission:function(widgetPermissions,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AssignPermission',false,{widgetPermissions:widgetPermissions},succeededCallback,failedCallback,userContext); },
GetWidgetState:function(widgetId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetWidgetState',true,{widgetId:widgetId},succeededCallback,failedCallback,userContext); },
SaveWidgetState:function(widgetId,state,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveWidgetState',false,{widgetId:widgetId,state:state},succeededCallback,failedCallback,userContext); },
ChangeWidgetTitle:function(widgetId,newTitle,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ChangeWidgetTitle',false,{widgetId:widgetId,newTitle:newTitle},succeededCallback,failedCallback,userContext); }}
Dropthings.Web.Framework.WidgetService.registerClass('Dropthings.Web.Framework.WidgetService',Sys.Net.WebServiceProxy);
Dropthings.Web.Framework.WidgetService._staticInstance = new Dropthings.Web.Framework.WidgetService();
Dropthings.Web.Framework.WidgetService.set_path = function(value) { Dropthings.Web.Framework.WidgetService._staticInstance.set_path(value); }
Dropthings.Web.Framework.WidgetService.get_path = function() { return Dropthings.Web.Framework.WidgetService._staticInstance.get_path(); }
Dropthings.Web.Framework.WidgetService.set_timeout = function(value) { Dropthings.Web.Framework.WidgetService._staticInstance.set_timeout(value); }
Dropthings.Web.Framework.WidgetService.get_timeout = function() { return Dropthings.Web.Framework.WidgetService._staticInstance.get_timeout(); }
Dropthings.Web.Framework.WidgetService.set_defaultUserContext = function(value) { Dropthings.Web.Framework.WidgetService._staticInstance.set_defaultUserContext(value); }
Dropthings.Web.Framework.WidgetService.get_defaultUserContext = function() { return Dropthings.Web.Framework.WidgetService._staticInstance.get_defaultUserContext(); }
Dropthings.Web.Framework.WidgetService.set_defaultSucceededCallback = function(value) { Dropthings.Web.Framework.WidgetService._staticInstance.set_defaultSucceededCallback(value); }
Dropthings.Web.Framework.WidgetService.get_defaultSucceededCallback = function() { return Dropthings.Web.Framework.WidgetService._staticInstance.get_defaultSucceededCallback(); }
Dropthings.Web.Framework.WidgetService.set_defaultFailedCallback = function(value) { Dropthings.Web.Framework.WidgetService._staticInstance.set_defaultFailedCallback(value); }
Dropthings.Web.Framework.WidgetService.get_defaultFailedCallback = function() { return Dropthings.Web.Framework.WidgetService._staticInstance.get_defaultFailedCallback(); }
Dropthings.Web.Framework.WidgetService.set_path("/WidgetService.asmx");
Dropthings.Web.Framework.WidgetService.AddWidgetInstance= function(widgetId,toZone,toRow,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.AddWidgetInstance(widgetId,toZone,toRow,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.MoveWidgetInstance= function(instanceId,toZoneId,toRow,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.MoveWidgetInstance(instanceId,toZoneId,toRow,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.ResizeWidgetInstance= function(widgetId,width,height,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.ResizeWidgetInstance(widgetId,width,height,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.MaximizeWidgetInstance= function(widgetId,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.MaximizeWidgetInstance(widgetId,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.ExpandWidgetInstance= function(widgetId,postbackUrl,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.ExpandWidgetInstance(widgetId,postbackUrl,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.CollaspeWidgetInstance= function(widgetId,postbackUrl,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.CollaspeWidgetInstance(widgetId,postbackUrl,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.RestoreWidgetInstance= function(widgetId,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.RestoreWidgetInstance(widgetId,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.DeleteWidgetInstance= function(widgetId,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.DeleteWidgetInstance(widgetId,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.AssignPermission= function(widgetPermissions,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.AssignPermission(widgetPermissions,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.GetWidgetState= function(widgetId,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.GetWidgetState(widgetId,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.SaveWidgetState= function(widgetId,state,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.SaveWidgetState(widgetId,state,onSuccess,onFailed,userContext); }
Dropthings.Web.Framework.WidgetService.ChangeWidgetTitle= function(widgetId,newTitle,onSuccess,onFailed,userContext) {Dropthings.Web.Framework.WidgetService._staticInstance.ChangeWidgetTitle(widgetId,newTitle,onSuccess,onFailed,userContext); }
