3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 * Namespace : System.Web.UI.MobileControls
26 * Author : Gaurav Vaish
28 * Copyright : 2003 with Gaurav Vaish, and with
32 using System.Collections;
34 using System.Web.Mobile;
36 namespace System.Web.UI.MobileControls
38 public class List : PagedControl, INamingContainer, IListControl,
39 ITemplateable, IPostBackEventHandler
41 private static readonly object ItemDataBindEvent = new object();
42 private static readonly object ItemCommandEvent = new object();
44 private ListDecoration decoration = ListDecoration.None;
50 public event ListCommandEventHandler ItemCommand
54 Events.AddHandler(ItemCommandEvent, value);
58 Events.RemoveHandler(ItemCommandEvent, value);
62 public event ListDataBindEventHandler ItemDataBind
66 Events.AddHandler(ItemDataBindEvent, value);
70 Events.RemoveHandler(ItemDataBindEvent, value);
74 private void CreateChildControls(bool doDataBind)
78 throw new NotImplementedException();
80 ChildControlsCreated = true;
83 public virtual string DataMember
87 throw new NotImplementedException();
91 throw new NotImplementedException();
95 public virtual object DataSource
99 throw new NotImplementedException();
103 throw new NotImplementedException();
107 public string DataTextField
111 throw new NotImplementedException();
115 throw new NotImplementedException();
119 public string DataValueField
123 throw new NotImplementedException();
127 throw new NotImplementedException();
131 public ListDecoration Decoration
143 public bool HasItemCommandHandler
147 return (Events[ItemCommandEvent] != null);
151 protected override int InternalItemCount
155 throw new NotImplementedException();
159 public MobileListItemCollection Items
163 throw new NotImplementedException();
167 public bool ItemsAsLinks
171 throw new NotImplementedException();
175 throw new NotImplementedException();
179 private void CreateControlItem(MobileListItemType itemType,
180 ITemplate itemTemplate, bool doDataBind)
183 // Add control at the end of this "List".
184 throw new NotImplementedException();
187 private int TranslateVirtualItemIndex(int itemIndex)
189 throw new NotImplementedException();
192 protected override void AddParsedSubObject(object obj)
194 if(obj is LiteralControl || obj is MobileControl)
196 throw new NotImplementedException();
200 protected override void CreateChildControls()
202 CreateChildControls(true);
205 protected virtual void CreateItems(IEnumerable dataSource)
207 throw new NotImplementedException();
210 protected override void LoadViewState(object state)
212 throw new NotImplementedException();
215 protected override bool OnBubbleEvent(object sender, EventArgs e)
217 if(e is ListCommandEventArgs)
219 OnItemCommand((ListCommandEventArgs)e);
225 protected override void OnDataBinding(EventArgs e)
227 base.OnDataBinding(e);
228 throw new NotImplementedException();
231 protected void OnItemDataBind(ListDataBindEventArgs e)
233 ListDataBindEventHandler ldbeh = (ListDataBindEventHandler)(Events[ItemDataBindEvent]);
238 protected virtual void OnItemCommand(ListCommandEventArgs e)
240 ListCommandEventHandler lceh = (ListCommandEventHandler)(Events[ItemCommandEvent]);
245 protected override void OnLoadItems(LoadItemsEventArgs e)
247 throw new NotImplementedException();
250 protected override void OnPageChange(int oldPageIndex,
253 base.OnPageChange(oldPageIndex, newPageIndex);
254 throw new NotImplementedException();
257 protected override void OnPreRender(EventArgs e)
259 throw new NotImplementedException();
262 protected override object SaveViewState()
264 throw new NotImplementedException();
267 protected override void TrackViewState()
269 throw new NotImplementedException();
272 public override void CreateDefaultTemplatedUI(bool doDataBind)
274 throw new NotImplementedException();
277 public override void EnsureTemplatedUI()
279 EnsureChildControls();
282 void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
284 throw new NotImplementedException();
287 void IListControl.OnItemDataBind(ListDataBindEventArgs e)
292 bool IListControl.TrackingViewState
296 return IsTrackingViewState;