Ejemplo n.º 1
0
 public static void DefineScript()
 {
     sap.ui.define(new string[] {
         "sap/ui/Device",
         "jquery.sap.global",
         "sap/ui/core/Fragment",
         "sap/ui/core/mvc/Controller",
         "sap/ui/model/json/JSONModel",
         "sap/m/ResponsivePopover",
         "sap/m/MessagePopover",
         "sap/m/ActionSheet",
         "sap/m/Button",
         "sap/m/Link",
         "sap/m/Bar",
         "sap/ui/layout/VerticalLayout",
         "sap/m/NotificationListItem",
         "sap/m/MessagePopoverItem",
         "sap/ui/core/CustomData",
         "sap/m/MessageToast"
     },
                   new Func <sap.ui.Device, object>(
                       (Device) => {
         AppController newObj = Glue.CreateRawClassObject <AppController>();
         newObj._bExpanded    = true;
         newObj.Device        = Device;
         return(BaseController.extend(nameof(AppController), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 2
0
 public static void Script()
 {
     sap.ui.define(new string[] {
     },
                   new Func <object>(
                       () => {
         return(Glue.CreateRawClassObject <Formatter>());
     }
                       ));
 }
Ejemplo n.º 3
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/util/MockServer"
     }, new Func <MockServer>(() => {
         var newObj = Glue.CreateRawClassObject <MockServer>();
         return(newObj);
     })
                   );
 }
Ejemplo n.º 4
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/base/ManagedObject"
     },
                   new Func <object>(
                       () => {
         var newObj = Glue.CreateRawClassObject <HelloDialog>();
         return([email protected](nameof(HelloDialog), newObj));
     }
                       ));
 }
Ejemplo n.º 5
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/UIComponent",
     },
                   new Func <sap.ui.core.UIComponent, object>(
                       (UIComponent) => {
         Component newObj = Glue.CreateRawClassObject <Component>();
         return(sap.ui.core.UIComponent.extend(nameof(Component), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 6
0
 public static void DefineScript()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/mvc/Controller",
     },
                   new Func <object>(
                       () => {
         BaseController newObj = Glue.CreateRawClassObject <BaseController>();
         return(sap.ui.core.mvc.Controller.extend(nameof(BaseController), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 7
0
 public static void DefineScript()
 {
     sap.ui.define(new string[] {
         "sap/ui/test/Opa5"
     },
                   new Func <sap.ui.test.Opa5, object>(
                       (Opa5) => {
         Common newObj = Glue.CreateRawClassObject <Common>();
         return(Opa5.ToDynamic().extend(nameof(Common), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 8
0
 public static void DefineScript()
 {
     sap.ui.define(new string[] {
         "sap/ui/model/json/JSONModel",
     },
                   new Func <object, object>(
                       (Formatter) => {
         StatisticsController newObj = Glue.CreateRawClassObject <StatisticsController>();
         newObj.formatter            = Formatter;
         return(BaseController.extend(nameof(StatisticsController), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 9
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/mvc/Controller",
         "sap/m/MessageToast"
     },
                   new Func <object>(
                       () => {
         var newObj = Glue.CreateRawClassObject <HelloPanel>();
         return(sap.ui.core.mvc.Controller.extend(nameof(HelloPanel), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 10
0
 public static void DefineScript()
 {
     sap.ui.define(new string[] {
         "sap/m/MessageToast",
         "sap/ui/model/json/JSONModel"
     },
                   new Func <object, object>(
                       (Formatter) => {
         MasterSettingsController newObj = Glue.CreateRawClassObject <MasterSettingsController>();
         return(BaseController.extend(nameof(MasterSettingsController), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 11
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/mvc/Controller",
         "sap/ui/model/type/Currency"
     },
                   new Func <object>(
                       () => {
         var newObj = Glue.CreateRawClassObject <App>();
         return(sap.ui.core.mvc.Controller.extend(nameof(App), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 12
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/model/json/JSONModel",
         "sap/ui/Device"
     },
                   new Func <sap.ui.model.json.JSONModel, object, object>(
                       (Model, Device) => {
         Models newObj = Glue.CreateRawClassObject <Models>();
         newObj.Device = Device;
         return(newObj);
     }
                       )
                   );
 }
Ejemplo n.º 13
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/UIComponent",
         "sap/ui/core/tutorial/odatav4/model/models"
     },
                   new Func <sap.ui.core.UIComponent, Models, object>(
                       (UIComponent, models) => {
         Component newObj = Glue.CreateRawClassObject <Component>();
         newObj.models    = models;
         return(sap.ui.core.UIComponent.extend(nameof(Component), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 14
0
 public static void DefineScript()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/UIComponent",
         "manu/toolpageapp/fv/model/models",
         "sap/ui/model/resource/ResourceModel"
     },
                   new Func <object>(
                       () => {
         Component newObj = Glue.CreateRawClassObject <Component>();
         return(sap.ui.core.UIComponent.extend(nameof(Component), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 15
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/Control",
         "sap/m/RatingIndicator",
         "sap/m/Label",
         "sap/m/Button"
     },
                   new Func <object>(
                       () => {
         var newObj = Glue.CreateRawClassObject <ProductRating>();
         return(sap.ui.core.Control.extend(nameof(ProductRating), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 16
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/mvc/Controller",
         "sap/ui/core/routing/History",
         "sap/m/MessageToast",
         "sap/ui/model/json/JSONModel"
     },
                   new Func <object>(
                       () => {
         var newObj = Glue.CreateRawClassObject <Detail>();
         return(sap.ui.core.mvc.Controller.extend(nameof(Detail), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 17
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/Device",
         "sap/ui/core/UIComponent",
         "sap/ui/model/json/JSONModel",
         "sap/ui/model/resource/ResourceModel",
         "sap/ui/demo/walkthrough/controller/HelloDialog"
     },
                   new Func <object>(
                       () => {
         Component newObj = Glue.CreateRawClassObject <Component>();
         return(sap.ui.core.UIComponent.extend(nameof(Component), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 18
0
 public static void DefineScript()
 {
     sap.ui.define(new string[] {
         "manu/toolpageapp/fv/model/formatter",
         "sap/ui/Device",
         "sap/ui/model/json/JSONModel"
     },
                   new Func <object, sap.ui.Device, object>(
                       (Formatter, Device) => {
         HomeController newObj = Glue.CreateRawClassObject <HomeController>();
         newObj.formatter      = Formatter;
         newObj.Device         = Device;
         return(BaseController.extend(nameof(HomeController), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 19
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/mvc/Controller",
         "sap/ui/model/json/JSONModel",
         "sap/ui/demo/walkthrough/model/formatter",
         "sap/ui/model/Filter",
         "sap/ui/model/FilterOperator"
     },
                   new Func <sap.ui.core.mvc.Controller, sap.ui.model.json.JSONModel, Formatter, sap.ui.model.Filter, sap.ui.model.FilterOperator, object>(
                       (Controller, JSONModel, Formatter, Filter, FilterOperator) => {
         var newObj       = Glue.CreateRawClassObject <InvoiceList>();
         newObj.formatter = Formatter;
         return(sap.ui.core.mvc.Controller.extend(nameof(InvoiceList), newObj));
     }
                       )
                   );
 }
Ejemplo n.º 20
0
 public static void Script()
 {
     sap.ui.define(new string[] {
         "sap/ui/core/mvc/Controller",
         "sap/m/MessageToast",
         "sap/m/MessageBox",
         "sap/ui/model/Sorter",
         "sap/ui/model/Filter",
         "sap/ui/model/FilterOperator",
         "sap/ui/model/FilterType",
         "sap/ui/model/json/JSONModel"
     },
                   new Func <object>(
                       () => {
         var newObj = Glue.CreateRawClassObject <App>();
         return(sap.ui.core.mvc.Controller.extend(nameof(App), newObj));
     }
                       )
                   );
 }