3 * Namespace : System.Web.UI.MobileControls
5 * Author : Gaurav Vaish
7 * Copyright : 2003 with Gaurav Vaish, and with
11 using System.Collections;
13 using System.Web.Mobile;
15 namespace System.Web.UI.MobileControls
17 public class List : PagedControl, INamingContainer, IListControl,
18 ITemplateable, IPostBackEventHandler
20 private static readonly object ItemDataBindEvent = new object();
21 private static readonly object ItemCommandEvent = new object();
23 private ListDecoration decoration = ListDecoration.None;
29 public event ListCommandEventHandler ItemCommand
33 Events.AddHandler(ItemCommandEvent, value);
37 Events.RemoveHandler(ItemCommandEvent, value);
41 public event ListDataBindEventHandler ItemDataBind
45 Events.AddHandler(ItemDataBindEvent, value);
49 Events.RemoveHandler(ItemDataBindEvent, value);
53 private void CreateChildControls(bool doDataBind)
57 throw new NotImplementedException();
59 ChildControlsCreated = true;
62 public virtual string DataMember
66 throw new NotImplementedException();
70 throw new NotImplementedException();
74 public virtual object DataSource
78 throw new NotImplementedException();
82 throw new NotImplementedException();
86 public string DataTextField
90 throw new NotImplementedException();
94 throw new NotImplementedException();
98 public string DataValueField
102 throw new NotImplementedException();
106 throw new NotImplementedException();
110 public ListDecoration Decoration
122 public bool HasItemCommandHandler
126 return (Events[ItemCommandEvent] != null);
130 protected override int InternalItemCount
134 throw new NotImplementedException();
138 public MobileListItemCollection Items
142 throw new NotImplementedException();
146 public bool ItemsAsLinks
150 throw new NotImplementedException();
154 throw new NotImplementedException();
158 private void CreateControlItem(MobileListItemType itemType,
159 ITemplate itemTemplate, bool doDataBind)
162 // Add control at the end of this "List".
163 throw new NotImplementedException();
166 private int TranslateVirtualItemIndex(int itemIndex)
168 throw new NotImplementedException();
171 protected override void AddParsedSubObject(object obj)
173 if(obj is LiteralControl || obj is MobileControl)
175 throw new NotImplementedException();
179 protected override void CreateChildControls()
181 CreateChildControls(true);
184 protected virtual void CreateItems(IEnumerable dataSource)
186 throw new NotImplementedException();
189 protected override void LoadViewState(object state)
191 throw new NotImplementedException();
194 protected override bool OnBubbleEvent(object sender, EventArgs e)
196 if(e is ListCommandEventArgs)
198 OnItemCommand((ListCommandEventArgs)e);
204 protected override void OnDataBinding(EventArgs e)
206 base.OnDataBinding(e);
207 throw new NotImplementedException();
210 protected void OnItemDataBind(ListDataBindEventArgs e)
212 ListDataBindEventHandler ldbeh = (ListDataBindEventHandler)(Events[ItemDataBindEvent]);
217 protected virtual void OnItemCommand(ListCommandEventArgs e)
219 ListCommandEventHandler lceh = (ListCommandEventHandler)(Events[ItemCommandEvent]);
224 protected override void OnLoadItems(LoadItemsEventArgs e)
226 throw new NotImplementedException();
229 protected override void OnPageChange(int oldPageIndex,
232 base.OnPageChange(oldPageIndex, newPageIndex);
233 throw new NotImplementedException();
236 protected override void OnPreRender(EventArgs e)
238 throw new NotImplementedException();
241 protected override object SaveViewState()
243 throw new NotImplementedException();
246 protected override void TrackViewState()
248 throw new NotImplementedException();
251 public override void CreateDefaultTemplatedUI(bool doDataBind)
253 throw new NotImplementedException();
256 public override void EnsureTemplatedUI()
258 EnsureChildControls();
261 void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
263 throw new NotImplementedException();
266 void IListControl.OnItemDataBind(ListDataBindEventArgs e)
271 bool IListControl.TrackingViewState
275 return IsTrackingViewState;