[NUI] remove input method dependency from View.ControlState (#1585)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / NUIFrameComponent.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Text;
5 using Tizen.Applications;
6 using Tizen.Applications.ComponentBased.Common;
7 using Tizen.NUI;
8
9 namespace Tizen.NUI
10 {
11     /// <summary>
12     /// The class for showing UI module
13     /// </summary>
14     /// <since_tizen> 6 </since_tizen>
15     [EditorBrowsable(EditorBrowsableState.Never)]
16     public class NUIFrameComponent : FrameComponent
17     {
18         internal NUIWindowInfo NUIWindowInfo
19         {
20             get;
21             set;
22         }
23
24         [EditorBrowsable(EditorBrowsableState.Never)]
25         public Window Window
26         {
27             get;
28             set;
29         }
30
31         /// <summary>
32         /// Overrides this method to create window. It will be called before OnCreate method.
33         /// </summary>
34         /// <returns>Window object to use</returns>
35         [EditorBrowsable(EditorBrowsableState.Never)]
36         public override IWindowInfo CreateWindowInfo()
37         {
38             ComponentApplication instance = ComponentApplication.Instance as ComponentApplication;
39             if(instance)
40             {
41                 instance.RegisterFrameComponent(this);
42                 if(instance.GetFrameComponentCount() == 1)
43                 {
44                     Window = instance.GetWindow();
45                 }
46                 else
47                 {
48                     Window = new Window();
49                 }
50             }
51             NUIWindowInfo = new NUIWindowInfo(Window);
52             return NUIWindowInfo;
53         }
54
55         /// <summary>
56         /// Overrides this method to handle behavior when the component is launched.
57         /// </summary>
58         /// <returns>True if a service component is successfully created</returns>
59         [EditorBrowsable(EditorBrowsableState.Never)]
60         public override bool OnCreate()
61         {
62             return true;
63         }
64
65         /// <summary>
66         /// Overrides this method if want to handle behavior when the component receives the appcontrol message.
67         /// </summary>
68         /// <param name="appControl">appcontrol object</param>
69         /// <param name="restarted">True if it was restarted</param>
70         [EditorBrowsable(EditorBrowsableState.Never)]
71         public override void OnStart(AppControl appControl, bool restarted)
72         {
73             base.OnStart(appControl, restarted);
74         }
75
76         /// <summary>
77         /// Overrides this method if you want to handle the behavior when the component is resumed.
78         /// </summary>
79         [EditorBrowsable(EditorBrowsableState.Never)]
80         public override void OnResume()
81         {
82             base.OnResume();
83         }
84
85         /// <summary>
86         /// Overrides this method if you want to handle the behavior when the component is paused.
87         /// </summary>
88         [EditorBrowsable(EditorBrowsableState.Never)]
89         public override void OnPause()
90         {
91             base.OnPause();
92         }
93
94         /// <summary>
95         /// Overrides this method if you want to handle the behavior when the component is stopped.
96         /// </summary>
97         [EditorBrowsable(EditorBrowsableState.Never)]
98         public override void OnStop()
99         {
100             base.OnStop();
101         }
102
103         /// <summary>
104         /// Overrides this method if want to handle behavior when the component is destroyed.
105         /// </summary>
106         [EditorBrowsable(EditorBrowsableState.Never)]
107         public override void OnDestroy()
108         {
109             base.OnDestroy();
110         }
111     }
112 }
113