3 * Namespace : System.Web.UI.MobileControls
4 * Class : MobileListItemCollection
5 * Author : Gaurav Vaish
7 * Copyright : 2003 with Gaurav Vaish, and with
12 using System.Collections;
15 namespace System.Web.UI.MobileControls
17 public class MobileListItemCollection : ArrayListCollectionBase,
20 private int baseIndex = 0;
22 private bool marked = false;
23 private bool saveAll = false;
24 private bool saveSel = false;
26 public MobileListItemCollection()
30 public MobileListItemCollection(ArrayList items) : base(items)
34 void IStateManager.LoadViewState(object state)
36 throw new NotImplementedException();
39 object IStateManager.SaveViewState()
41 throw new NotImplementedException();
44 void IStateManager.TrackViewState()
47 throw new NotImplementedException();
50 bool IStateManager.IsTrackingViewState
58 public void Add(string item)
60 Add(new MobileListItem(item));
63 public void Add(MobileListItem item)
65 throw new NotImplementedException();
68 public MobileListItem this[int index]
72 return (MobileListItem)base.Items[index];
83 public bool Contains(MobileListItem item)
85 return Items.Contains(item);
88 public MobileListItem[] GetAll()
90 MobileListItem[] retVal = new MobileListItem[Items.Count];
92 Items.CopyTo(0, retVal, 0, Items.Count);
96 public int IndexOf(MobileListItem item)
98 return Items.IndexOf(item);
101 public virtual void Insert(int index, string item)
103 Insert(index, new MobileListItem(item));
106 public void Insert(int index, MobileListItem item)
108 Items.Insert(index, item);
109 throw new NotImplementedException();
112 public void Remove(string item)
114 RemoveAt(IndexOf(new MobileListItem(item)));
117 public void Remove(MobileListItem item)
119 RemoveAt(IndexOf(item));
122 public void RemoveAt(int index)
126 Items.RemoveAt(index);
127 throw new NotImplementedException();
131 public void SetAll(MobileListItem[] items)
133 throw new NotImplementedException();
140 return this.baseIndex;
144 this.baseIndex = value;
148 public bool SaveSelection
156 this.saveSel = value;