2003-09-04 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / System.Web.Mobile / System.Web.UI.MobileControls / MobileControl.cs
1 /**
2  * Project   : Mono
3  * Namespace : System.Web.UI.MobileControls
4  * Class     : MobileControl
5  * Author    : Gaurav Vaish
6  *
7  * Copyright : 2003 with Gaurav Vaish, and with
8  *             Ximian Inc
9  */
10
11 using System.Drawing;
12 using System.Collections;
13 using System.Web.UI;
14 using System.Web.Mobile;
15
16 namespace System.Web.UI.MobileControls
17 {
18         public abstract class MobileControl : Control//, IAttributeAccessor
19         {
20                 private Style style;
21                 private IControlAdapter adapter;
22
23                 private bool enablePagination;
24
25                 //public abstract string GetAttribute(string key);
26                 //public abstract void   SetAttribute(string key, string value);
27
28                 protected MobileControl()
29                 {
30                 }
31
32                 public IControlAdapter Adapter
33                 {
34                         get
35                         {
36                                 IControlAdapter retVal = null;
37                                 if(adapter != null)
38                                         retVal = adapter;
39                                 else if(MobilePage != null)
40                                         retVal = MobilePage.GetControlAdapter(this);
41                                 return retVal;
42                         }
43                 }
44
45                 public Alignment Alignment
46                 {
47                         get
48                         {
49                                 throw new NotImplementedException();
50                         }
51                         set
52                         {
53                                 throw new NotImplementedException();
54                         }
55                 }
56
57                 public virtual Color BackColor
58                 {
59                         get
60                         {
61                                 throw new NotImplementedException();
62                         }
63                         set
64                         {
65                                 throw new NotImplementedException();
66                         }
67                 }
68
69                 public virtual bool BreakAfter
70                 {
71                         get
72                         {
73                                 throw new NotImplementedException();
74                         }
75                         set
76                         {
77                                 throw new NotImplementedException();
78                         }
79                 }
80
81                 public DeviceSpecific DeviceSpecific
82                 {
83                         get
84                         {
85                                 throw new NotImplementedException();
86                         }
87                         set
88                         {
89                                 throw new NotImplementedException();
90                         }
91                 }
92
93                 public int FirstPage
94                 {
95                         get
96                         {
97                                 throw new NotImplementedException();
98                         }
99                         set
100                         {
101                                 throw new NotImplementedException();
102                         }
103                 }
104
105                 public virtual FontInfo Font
106                 {
107                         get
108                         {
109                                 throw new NotImplementedException();
110                         }
111                 }
112
113                 public virtual Color ForeColor
114                 {
115                         get
116                         {
117                                 throw new NotImplementedException();
118                         }
119                         set
120                         {
121                                 throw new NotImplementedException();
122                         }
123                 }
124
125                 public Form Form
126                 {
127                         get
128                         {
129                                 throw new NotImplementedException();
130                         }
131                 }
132
133                 public virtual bool IsTemplated
134                 {
135                         get
136                         {
137                                 throw new NotImplementedException();
138                         }
139                 }
140
141                 public int LastPage
142                 {
143                         get
144                         {
145                                 throw new NotImplementedException();
146                         }
147                         set
148                         {
149                                 throw new NotImplementedException();
150                         }
151                 }
152
153                 public MobilePage MobilePage
154                 {
155                         get
156                         {
157                                 throw new NotImplementedException();
158                         }
159                 }
160
161                 public virtual Style Style
162                 {
163                         get
164                         {
165                                 if(this.style == null)
166                                 {
167                                         this.style = this.CreateStyle();
168                                 }
169                                 return this.style;
170                         }
171                 }
172
173                 public virtual string StyleReference
174                 {
175                         get
176                         {
177                                 throw new NotImplementedException();
178                         }
179                         set
180                         {
181                                 throw new NotImplementedException();
182                         }
183                 }
184
185                 public virtual int VisibleWeight
186                 {
187                         get
188                         {
189                                 throw new NotImplementedException();
190                         }
191                 }
192
193                 public virtual Wrapping Wrapping
194                 {
195                         get
196                         {
197                                 throw new NotImplementedException();
198                         }
199                         set
200                         {
201                                 throw new NotImplementedException();
202                         }
203                 }
204
205                 protected string InnerText
206                 {
207                         get
208                         {
209                                 throw new NotImplementedException();
210                         }
211                         set
212                         {
213                                 throw new NotImplementedException();
214                         }
215                 }
216
217                 protected virtual bool PaginateChildren
218                 {
219                         get
220                         {
221                                 throw new NotImplementedException();
222                         }
223                         set
224                         {
225                                 throw new NotImplementedException();
226                         }
227                 }
228
229                 public virtual void AddLinkedForms(IList linkedForms)
230                 {
231                         throw new NotImplementedException();
232                 }
233
234                 public virtual void CreateDefaultTemplatedUI(bool doDataBind)
235                 {
236                         throw new NotImplementedException();
237                 }
238
239                 public virtual void EnsureTemplatedUI()
240                 {
241                         throw new NotImplementedException();
242                 }
243
244                 public virtual ITemplate GetTemplate(string templateName)
245                 {
246                         throw new NotImplementedException();
247                 }
248
249                 public bool IsVisibleOnPage(int pageNumber)
250                 {
251                         throw new NotImplementedException();
252                 }
253
254                 public virtual void PaginateRecursive(ControlPager pager)
255                 {
256                         throw new NotImplementedException();
257                 }
258
259                 public Form ResolveFormReference(string name)
260                 {
261                         throw new NotImplementedException();
262                 }
263
264                 protected virtual Style CreateStyle()
265                 {
266                         throw new NotImplementedException();
267                 }
268
269                 protected virtual void CreatedTempaltedUI(bool doDataBind)
270                 {
271                         throw new NotImplementedException();
272                 }
273
274                 protected virtual bool isFormSubmitControl()
275                 {
276                         throw new NotImplementedException();
277                 }
278
279                 protected virtual void LoadPrivateViewState(object state)
280                 {
281                         throw new NotImplementedException();
282                 }
283
284                 protected virtual void OnPageChange(int oldIndex, int newIndex)
285                 {
286                         throw new NotImplementedException();
287                 }
288
289                 protected virtual void OnRender(HtmlTextWriter writer)
290                 {
291                         throw new NotImplementedException();
292                 }
293
294                 protected virtual object SavePrivateViewState()
295                 {
296                         throw new NotImplementedException();
297                 }
298
299                 protected virtual void CreateTemplatedUI(bool doDataBind)
300                 {
301                         throw new NotImplementedException();
302                 }
303
304                 internal static void SetControlPageRecursive(Control ctrl, int page)
305                 {
306                         throw new NotImplementedException();
307                 }
308
309                 internal bool EnablePagination
310                 {
311                         get
312                         {
313                                 return enablePagination;
314                         }
315                         set
316                         {
317                                 enablePagination = value;
318                         }
319                 }
320
321                 internal TemplateControl FindClosestTemplateControl()
322                 {
323                         throw new NotImplementedException();
324                 }
325         }
326 }