47180a5b5fd15acc8086509513311d6b2381098c
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / WidgetView.cs
1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.12
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Tizen.NUI
28 {
29     using System;
30     using System.Runtime.InteropServices;
31     using Tizen.NUI.BaseComponents;
32
33     /// <summary>
34     /// The WidgetView is a class for displaying the widget image and controlling the widget.<br>
35     /// Input events that the WidgetView gets are delivered to the widget.
36     /// </summary>
37     public class WidgetView : View
38     {
39         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
40
41         internal WidgetView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.WidgetView_SWIGUpcast(cPtr), cMemoryOwn)
42         {
43             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
44         }
45
46         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetView obj)
47         {
48             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
49         }
50
51         /// <summary>
52         /// To make the Button instance be disposed.
53         /// </summary>
54         protected override void Dispose(DisposeTypes type)
55         {
56             if (disposed)
57             {
58                 return;
59             }
60
61             if (type == DisposeTypes.Explicit)
62             {
63                 //Called by User
64                 //Release your own managed resources here.
65                 //You should release all of your own disposable objects here.
66
67             }
68
69             //Release your own unmanaged resources here.
70             //You should not access any managed member here except static instance.
71             //because the execution order of Finalizes is non-deterministic.
72             if (swigCPtr.Handle != global::System.IntPtr.Zero)
73             {
74                 if (swigCMemOwn)
75                 {
76                     swigCMemOwn = false;
77                     NDalicManualPINVOKE.delete_WidgetView(swigCPtr);
78                 }
79                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
80             }
81             base.Dispose();
82         }
83
84         internal new class Property
85         {
86             internal static readonly int WIDGET_ID = NDalicManualPINVOKE.WidgetView_Property_WIDGET_ID_get();
87             internal static readonly int INSTANCE_ID = NDalicManualPINVOKE.WidgetView_Property_INSTANCE_ID_get();
88             internal static readonly int CONTENT_INFO = NDalicManualPINVOKE.WidgetView_Property_CONTENT_INFO_get();
89             internal static readonly int TITLE = NDalicManualPINVOKE.WidgetView_Property_TITLE_get();
90             internal static readonly int UPDATE_PERIOD = NDalicManualPINVOKE.WidgetView_Property_UPDATE_PERIOD_get();
91             internal static readonly int PREVIEW = NDalicManualPINVOKE.WidgetView_Property_PREVIEW_get();
92             internal static readonly int LOADING_TEXT = NDalicManualPINVOKE.WidgetView_Property_LOADING_TEXT_get();
93             internal static readonly int WIDGET_STATE_FAULTED = NDalicManualPINVOKE.WidgetView_Property_WIDGET_STATE_FAULTED_get();
94             internal static readonly int PERMANENT_DELETE = NDalicManualPINVOKE.WidgetView_Property_PERMANENT_DELETE_get();
95         }
96
97         /// <summary>
98         /// Creates a new WidgetView.
99         /// </summary>
100         /// <since_tizen> 4 </since_tizen>
101         public WidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod) : this(NDalicManualPINVOKE.WidgetView_New(widgetId, contentInfo, width, height, updatePeriod), true)
102         {
103             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104
105         }
106
107         internal new static WidgetView DownCast(BaseHandle handle)
108         {
109             WidgetView ret = new WidgetView(NDalicManualPINVOKE.WidgetView_DownCast(BaseHandle.getCPtr(handle)), true);
110             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111             return ret;
112         }
113
114         internal WidgetView(WidgetView handle) : this(NDalicManualPINVOKE.new_WidgetView__SWIG_1(WidgetView.getCPtr(handle)), true)
115         {
116             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117         }
118
119         internal WidgetView Assign(WidgetView handle)
120         {
121             WidgetView ret = new WidgetView(NDalicManualPINVOKE.WidgetView_Assign(swigCPtr, WidgetView.getCPtr(handle)), false);
122             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
123             return ret;
124         }
125
126         internal static WidgetView GetWidgetViewFromPtr(global::System.IntPtr cPtr)
127         {
128             WidgetView ret = new WidgetView(cPtr, false);
129             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130             return ret;
131         }
132
133         /// <summary>
134         /// Event arguments of the widget view.
135         /// </summary>
136         public class WidgetViewEventArgs : EventArgs
137         {
138             private WidgetView _widgetView;
139
140             /// <summary>
141             /// The widet view.
142             /// </summary>
143             /// <since_tizen> 4 </since_tizen>
144             public WidgetView WidgetView
145             {
146                 get
147                 {
148                     return _widgetView;
149                 }
150                 set
151                 {
152                     _widgetView = value;
153                 }
154             }
155         }
156
157         private EventHandler<WidgetViewEventArgs> _widgetAddedEventHandler;
158         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
159         private delegate void WidgetAddedEventCallbackType(IntPtr data);
160         private WidgetAddedEventCallbackType _widgetAddedEventCallback;
161
162         /// <summary>
163         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br>
164         /// This signal is emitted after all resources required by a control are loaded and ready.<br>
165         /// Most resources are only loaded when the control is placed on the stage.<br>
166         /// </summary>
167         /// <since_tizen> 3 </since_tizen>
168         public event EventHandler<WidgetViewEventArgs> WidgetAdded
169         {
170             add
171             {
172                 if (_widgetAddedEventHandler == null)
173                 {
174                     _widgetAddedEventCallback = OnWidgetAdded;
175                     WidgetAddedSignal().Connect(_widgetAddedEventCallback);
176                 }
177
178                 _widgetAddedEventHandler += value;
179             }
180
181             remove
182             {
183                 _widgetAddedEventHandler -= value;
184
185                 if (_widgetAddedEventHandler == null && WidgetAddedSignal().Empty() == false)
186                 {
187                     WidgetAddedSignal().Disconnect(_widgetAddedEventCallback);
188                 }
189             }
190         }
191
192         // Callback for WidgetView WidgetAdded signal
193         private void OnWidgetAdded(IntPtr data)
194         {
195             WidgetViewEventArgs e = new WidgetViewEventArgs();
196             if(data != null)
197             {
198                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
199             }
200
201             if (_widgetAddedEventHandler != null)
202             {
203                 _widgetAddedEventHandler(this, e);
204             }
205         }
206
207         private EventHandler<WidgetViewEventArgs> _widgetDeletedEventHandler;
208         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
209         private delegate void WidgetDeletedEventCallbackType(IntPtr data);
210         private WidgetDeletedEventCallbackType _widgetDeletedEventCallback;
211
212         /// <summary>
213         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br>
214         /// This signal is emitted after all resources required by a control are loaded and ready.<br>
215         /// Most resources are only loaded when the control is placed on the stage.<br>
216         /// </summary>
217         /// <since_tizen> 4 </since_tizen>
218         public event EventHandler<WidgetViewEventArgs> WidgetDeleted
219         {
220             add
221             {
222                 if (_widgetDeletedEventHandler == null)
223                 {
224                     _widgetDeletedEventCallback = OnWidgetDeleted;
225                     WidgetDeletedSignal().Connect(_widgetDeletedEventCallback);
226                 }
227
228                 _widgetDeletedEventHandler += value;
229             }
230
231             remove
232             {
233                 _widgetDeletedEventHandler -= value;
234
235                 if (_widgetDeletedEventHandler == null && WidgetDeletedSignal().Empty() == false)
236                 {
237                     WidgetDeletedSignal().Disconnect(_widgetDeletedEventCallback);
238                 }
239             }
240         }
241
242         // Callback for WidgetView WidgetDeleted signal
243         private void OnWidgetDeleted(IntPtr data)
244         {
245             WidgetViewEventArgs e = new WidgetViewEventArgs();
246             if(data != null)
247             {
248                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
249             }
250
251             if (_widgetDeletedEventHandler != null)
252             {
253                 _widgetDeletedEventHandler(this, e);
254             }
255         }
256
257         private EventHandler<WidgetViewEventArgs> _widgetCreationAbortedEventHandler;
258         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
259         private delegate void WidgetCreationAbortedEventCallbackType(IntPtr data);
260         private WidgetCreationAbortedEventCallbackType _widgetCreationAbortedEventCallback;
261
262         /// <summary>
263         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br>
264         /// This signal is emitted after all resources required by a control are loaded and ready.<br>
265         /// Most resources are only loaded when the control is placed on the stage.<br>
266         /// </summary>
267         /// <since_tizen> 4 </since_tizen>
268         public event EventHandler<WidgetViewEventArgs> WidgetCreationAborted
269         {
270             add
271             {
272                 if (_widgetCreationAbortedEventHandler == null)
273                 {
274                     _widgetCreationAbortedEventCallback = OnWidgetCreationAborted;
275                     WidgetCreationAbortedSignal().Connect(_widgetCreationAbortedEventCallback);
276                 }
277
278                 _widgetCreationAbortedEventHandler += value;
279             }
280
281             remove
282             {
283                 _widgetCreationAbortedEventHandler -= value;
284
285                 if (_widgetCreationAbortedEventHandler == null && WidgetCreationAbortedSignal().Empty() == false)
286                 {
287                     WidgetCreationAbortedSignal().Disconnect(_widgetCreationAbortedEventCallback);
288                 }
289             }
290         }
291
292         // Callback for WidgetView WidgetCreationAborted signal
293         private void OnWidgetCreationAborted(IntPtr data)
294         {
295             WidgetViewEventArgs e = new WidgetViewEventArgs();
296             if(data != null)
297             {
298                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
299             }
300
301             if (_widgetCreationAbortedEventHandler != null)
302             {
303                 _widgetCreationAbortedEventHandler(this, e);
304             }
305         }
306
307         private EventHandler<WidgetViewEventArgs> _widgetContentUpdatedEventHandler;
308         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
309         private delegate void WidgetContentUpdatedEventCallbackType(IntPtr data);
310         private WidgetContentUpdatedEventCallbackType _widgetContentUpdatedEventCallback;
311
312         /// <summary>
313         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br>
314         /// This signal is emitted after all resources required by a control are loaded and ready.<br>
315         /// Most resources are only loaded when the control is placed on the stage.<br>
316         /// </summary>
317         /// <since_tizen> 4 </since_tizen>
318         public event EventHandler<WidgetViewEventArgs> WidgetContentUpdated
319         {
320             add
321             {
322                 if (_widgetContentUpdatedEventHandler == null)
323                 {
324                     _widgetContentUpdatedEventCallback = OnWidgetContentUpdated;
325                     WidgetContentUpdatedSignal().Connect(_widgetContentUpdatedEventCallback);
326                 }
327
328                 _widgetContentUpdatedEventHandler += value;
329             }
330
331             remove
332             {
333                 _widgetContentUpdatedEventHandler -= value;
334
335                 if (_widgetContentUpdatedEventHandler == null && WidgetContentUpdatedSignal().Empty() == false)
336                 {
337                     WidgetContentUpdatedSignal().Disconnect(_widgetContentUpdatedEventCallback);
338                 }
339             }
340         }
341
342         // Callback for WidgetView WidgetContentUpdated signal
343         private void OnWidgetContentUpdated(IntPtr data)
344         {
345             WidgetViewEventArgs e = new WidgetViewEventArgs();
346             if(data != null)
347             {
348                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
349             }
350
351             if (_widgetContentUpdatedEventHandler != null)
352             {
353                 _widgetContentUpdatedEventHandler(this, e);
354             }
355         }
356
357         private EventHandler<WidgetViewEventArgs> _widgetUpdatePeriodChangedEventHandler;
358         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
359         private delegate void WidgetUpdatePeriodChangedEventCallbackType(IntPtr data);
360         private WidgetUpdatePeriodChangedEventCallbackType _widgetUpdatePeriodChangedEventCallback;
361
362         /// <summary>
363         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br>
364         /// This signal is emitted after all resources required by a control are loaded and ready.<br>
365         /// Most resources are only loaded when the control is placed on the stage.<br>
366         /// </summary>
367         /// <since_tizen> 4 </since_tizen>
368         public event EventHandler<WidgetViewEventArgs> WidgetUpdatePeriodChanged
369         {
370             add
371             {
372                 if (_widgetUpdatePeriodChangedEventHandler == null)
373                 {
374                     _widgetUpdatePeriodChangedEventCallback = OnWidgetUpdatePeriodChanged;
375                     WidgetUpdatePeriodChangedSignal().Connect(_widgetUpdatePeriodChangedEventCallback);
376                 }
377
378                 _widgetUpdatePeriodChangedEventHandler += value;
379             }
380
381             remove
382             {
383                 _widgetUpdatePeriodChangedEventHandler -= value;
384
385                 if (_widgetUpdatePeriodChangedEventHandler == null && WidgetUpdatePeriodChangedSignal().Empty() == false)
386                 {
387                     WidgetUpdatePeriodChangedSignal().Disconnect(_widgetUpdatePeriodChangedEventCallback);
388                 }
389             }
390         }
391
392         // Callback for WidgetView WidgetUpdatePeriodChanged signal
393         private void OnWidgetUpdatePeriodChanged(IntPtr data)
394         {
395             WidgetViewEventArgs e = new WidgetViewEventArgs();
396             if(data != null)
397             {
398                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
399             }
400
401             if (_widgetUpdatePeriodChangedEventHandler != null)
402             {
403                 _widgetUpdatePeriodChangedEventHandler(this, e);
404             }
405         }
406
407         private EventHandler<WidgetViewEventArgs> _widgetFaultedEventHandler;
408         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
409         private delegate void WidgetFaultedEventCallbackType(IntPtr data);
410         private WidgetFaultedEventCallbackType _widgetFaultedEventCallback;
411
412         /// <summary>
413         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br>
414         /// This signal is emitted after all resources required by a control are loaded and ready.<br>
415         /// Most resources are only loaded when the control is placed on the stage.<br>
416         /// </summary>
417         /// <since_tizen> 4 </since_tizen>
418         public event EventHandler<WidgetViewEventArgs> WidgetFaulted
419         {
420             add
421             {
422                 if (_widgetFaultedEventHandler == null)
423                 {
424                     _widgetFaultedEventCallback = OnWidgetFaulted;
425                     WidgetFaultedSignal().Connect(_widgetFaultedEventCallback);
426                 }
427
428                 _widgetFaultedEventHandler += value;
429             }
430
431             remove
432             {
433                 _widgetFaultedEventHandler -= value;
434
435                 if (_widgetFaultedEventHandler == null && WidgetFaultedSignal().Empty() == false)
436                 {
437                     WidgetFaultedSignal().Disconnect(_widgetFaultedEventCallback);
438                 }
439             }
440         }
441
442         // Callback for WidgetView WidgetFaulted signal
443         private void OnWidgetFaulted(IntPtr data)
444         {
445             WidgetViewEventArgs e = new WidgetViewEventArgs();
446             if(data != null)
447             {
448                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
449             }
450
451             if (_widgetFaultedEventHandler != null)
452             {
453                 _widgetFaultedEventHandler(this, e);
454             }
455         }
456
457         /// <summary>
458         /// Pauses a given widget.
459         /// </summary>
460         /// <returns>True on success, false otherwise.</returns>
461         /// <since_tizen> 4 </since_tizen>
462         public bool PauseWidget()
463         {
464             bool ret = NDalicManualPINVOKE.WidgetView_PauseWidget(swigCPtr);
465             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466             return ret;
467         }
468
469         /// <summary>
470         /// Resumes a given widget.
471         /// </summary>
472         /// <returns>True on success, false otherwise.</returns>
473         /// <since_tizen> 4 </since_tizen>
474         public bool ResumeWidget()
475         {
476             bool ret = NDalicManualPINVOKE.WidgetView_ResumeWidget(swigCPtr);
477             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478             return ret;
479         }
480
481         /// <summary>
482         /// Cancels the touch event procedure.
483         /// If you call this function after feed the touch down event, the widget will get ON_HOLD events.
484        ///  If a widget gets ON_HOLD event, it will not do anything even if you feed touch up event.
485         /// </summary>
486         /// <returns>True on success, false otherwise.</returns>
487         /// <since_tizen> 4 </since_tizen>
488         public bool CancelTouchEvent()
489         {
490             bool ret = NDalicManualPINVOKE.WidgetView_CancelTouchEvent(swigCPtr);
491             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492             return ret;
493         }
494
495         /// <summary>
496         /// Activates a widget in the faulted state.
497         /// A widget in faulted state must be activated before adding the widget.
498         /// </summary>
499         /// <since_tizen> 4 </since_tizen>
500         public void ActivateFaultedWidget()
501         {
502             NDalicManualPINVOKE.WidgetView_ActivateFaultedWidget(swigCPtr);
503             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504         }
505
506         internal WidgetViewSignal WidgetAddedSignal()
507         {
508             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetAddedSignal(swigCPtr), false);
509             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510             return ret;
511         }
512
513         internal WidgetViewSignal WidgetDeletedSignal()
514         {
515             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetDeletedSignal(swigCPtr), false);
516             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
517             return ret;
518         }
519
520         internal WidgetViewSignal WidgetCreationAbortedSignal()
521         {
522             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetCreationAbortedSignal(swigCPtr), false);
523             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524             return ret;
525         }
526
527         internal WidgetViewSignal WidgetContentUpdatedSignal()
528         {
529             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetContentUpdatedSignal(swigCPtr), false);
530             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531             return ret;
532         }
533
534         internal WidgetViewSignal WidgetUpdatePeriodChangedSignal()
535         {
536             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetUpdatePeriodChangedSignal(swigCPtr), false);
537             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538             return ret;
539         }
540
541         internal WidgetViewSignal WidgetFaultedSignal()
542         {
543             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetFaultedSignal(swigCPtr), false);
544             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545             return ret;
546         }
547
548         /// <summary>
549         /// Gets the ID of the widget.
550         /// </summary>
551         /// <since_tizen> 4 </since_tizen>
552         public string WidgetID
553         {
554             get
555             {
556                 string temp;
557                 GetProperty(WidgetView.Property.WIDGET_ID).Get(out temp);
558                 return temp;
559             }
560         }
561
562         /// <summary>
563         /// Gets the ID of the instance.
564         /// </summary>
565         /// <since_tizen> 4 </since_tizen>
566         public string InstanceID
567         {
568             get
569             {
570                 string temp;
571                 GetProperty(WidgetView.Property.INSTANCE_ID).Get(out temp);
572                 return temp;
573             }
574         }
575
576         /// <summary>
577         /// Gets the content info.
578         /// </summary>
579         /// <since_tizen> 4 </since_tizen>
580         public string ContentInfo
581         {
582             get
583             {
584                 string temp;
585                 GetProperty(WidgetView.Property.CONTENT_INFO).Get(out temp);
586                 return temp;
587             }
588         }
589
590         /// <summary>
591         /// Gets the title.
592         /// </summary>
593         /// <since_tizen> 4 </since_tizen>
594         public string Title
595         {
596             get
597             {
598                 string temp;
599                 GetProperty(WidgetView.Property.TITLE).Get(out temp);
600                 return temp;
601             }
602         }
603
604         /// <summary>
605         /// Gets the update peroid.
606         /// </summary>
607         /// <since_tizen> 4 </since_tizen>
608         public float UpdatePeriod
609         {
610             get
611             {
612                 float temp;
613                 GetProperty(WidgetView.Property.UPDATE_PERIOD).Get(out temp);
614                 return temp;
615             }
616         }
617
618         /// <summary>
619         /// Gets or sets the preview.
620         /// </summary>
621         /// <since_tizen> 4 </since_tizen>
622         public bool Preview
623         {
624             get
625             {
626                 bool temp;
627                 GetProperty(WidgetView.Property.PREVIEW).Get(out temp);
628                 return temp;
629             }
630             set
631             {
632                 SetProperty(WidgetView.Property.PREVIEW, new Tizen.NUI.PropertyValue(value));
633             }
634         }
635
636         /// <summary>
637         /// Gets or sets the loading text.
638         /// </summary>
639         /// <since_tizen> 4 </since_tizen>
640         public bool LoadingText
641         {
642             get
643             {
644                 bool temp;
645                 GetProperty(WidgetView.Property.LOADING_TEXT).Get(out temp);
646                 return temp;
647             }
648             set
649             {
650                 SetProperty(WidgetView.Property.LOADING_TEXT, new Tizen.NUI.PropertyValue(value));
651             }
652         }
653
654         /// <summary>
655         /// Gets or sets whether the widget state is faulted or not.
656         /// </summary>
657         /// <since_tizen> 4 </since_tizen>
658         public bool WidgetStateFaulted
659         {
660             get
661             {
662                 bool temp;
663                 GetProperty(WidgetView.Property.WIDGET_STATE_FAULTED).Get(out temp);
664                 return temp;
665             }
666             set
667             {
668                 SetProperty(WidgetView.Property.WIDGET_STATE_FAULTED, new Tizen.NUI.PropertyValue(value));
669             }
670         }
671
672         /// <summary>
673         /// Gets or sets whether the widget is to delete permanently or not.
674         /// </summary>
675         /// <since_tizen> 4 </since_tizen>
676         public bool PermanentDelete
677         {
678             get
679             {
680                 bool temp;
681                 GetProperty(WidgetView.Property.PERMANENT_DELETE).Get(out temp);
682                 return temp;
683             }
684             set
685             {
686                 SetProperty(WidgetView.Property.PERMANENT_DELETE, new Tizen.NUI.PropertyValue(value));
687             }
688         }
689
690     }
691
692 }