+2005-09-09 Chris Toshok <toshok@ximian.com>
+
+ * CheckBox.cs, CheckBoxList.cs, DropDownList.cs, ImageButton.cs,
+ ListBox.cs, RadioButton.cs, RadioButtonList.cs, TextBox.cs: fix up
+ LoadPostData/RaisePostDataChangedEvent.
+
2005-09-09 Chris Toshok <toshok@ximian.com>
* FontInfo.cs (IsEmpty): new internal property, used by
return (false);
}
- bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
- {
- return LoadPostData (postDataKey, postCollection);
- }
-
#if NET_2_0
- protected virtual void RaisePostDataChangedEvent ()
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
{
+#if NET_2_0
if (CausesValidation)
Page.Validate (ValidationGroup);
-
+#endif
OnCheckedChanged (EventArgs.Empty);
}
-
- void IPostBackDataHandler.RaisePostDataChangedEvent ()
+
+ bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
{
- RaisePostDataChangedEvent ();
+ return LoadPostData (postDataKey, postCollection);
}
-#else
+
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
- OnCheckedChanged (EventArgs.Empty);
+ RaisePostDataChangedEvent ();
}
-#endif
internal virtual void InternalAddAttributesToRender (HtmlTextWriter w)
{
{
throw new NotImplementedException ();
}
+#endif
- [MonoTODO]
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- protected virtual void RaisePostDataChangedEvent ()
- {
- throw new NotImplementedException ();
- }
-#endif
-
- bool IPostBackDataHandler.LoadPostData (string postDataKey,
- NameValueCollection postCollection)
+#if NET_2_0
+ protected virtual
+#endif
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
int checkbox = -1;
return false;
}
- void IPostBackDataHandler.RaisePostDataChangedEvent ()
+#if NET_2_0
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
{
OnSelectedIndexChanged (EventArgs.Empty);
}
+ bool IPostBackDataHandler.LoadPostData (string postDataKey,
+ NameValueCollection postCollection)
+ {
+ return LoadPostData (postDataKey, postCollection);
+ }
+
+ void IPostBackDataHandler.RaisePostDataChangedEvent ()
+ {
+ RaisePostDataChangedEvent ();
+ }
+
bool IRepeatInfoUser.HasFooter {
get { return false; }
}
#region Interface Methods
#if NET_2_0
- [MonoTODO]
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
+ protected virtual
+#endif
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
- throw new NotImplementedException ();
- }
-
- [MonoTODO]
- protected virtual void RaisePostDataChangedEvent ()
- {
- throw new NotImplementedException ();
- }
-#endif
-
- bool IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection) {
int index;
index = Items.IndexOf(postCollection[postDataKey]);
return false;
}
- void IPostBackDataHandler.RaisePostDataChangedEvent() {
+#if NET_2_0
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
+ {
OnSelectedIndexChanged(EventArgs.Empty);
}
+
+ bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
+ {
+ return LoadPostData (postDataKey, postCollection);
+ }
+
+ void IPostBackDataHandler.RaisePostDataChangedEvent ()
+ {
+ RaisePostDataChangedEvent ();
+ }
#endregion // Interface Methods
}
}
#if NET_2_0
- [MonoTODO]
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection psotCollection)
- {
- throw new NotImplementedException ();
- }
-
- [MonoTODO]
- protected virtual void RaisePostDataChangedEvent ()
- {
- throw new NotImplementedException ();
- }
-
- [MonoTODO]
- protected virtual void RaisePostBackEvent (string eventArgument)
- {
- throw new NotImplementedException ();
- }
+ protected virtual
#endif
-
- bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
string x, y;
return true;
}
-
-
- void IPostBackDataHandler.RaisePostDataChangedEvent ()
- {
-
- }
-
- void IPostBackEventHandler.RaisePostBackEvent (string eventArgument)
+#if NET_2_0
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
{
if (CausesValidation)
#if NET_2_0
OnClick (new ImageClickEventArgs (pos_x, pos_y));
OnCommand (new CommandEventArgs (CommandName, CommandArgument));
}
+
+ [MonoTODO]
+#if NET_2_0
+ protected virtual
+#endif
+ void RaisePostBackEvent (string eventArgument)
+ {
+ }
+
+ bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
+ {
+ return LoadPostData (postDataKey, postCollection);
+ }
+
+
+ void IPostBackDataHandler.RaisePostDataChangedEvent ()
+ {
+ RaisePostDataChangedEvent ();
+ }
+
+ void IPostBackEventHandler.RaisePostBackEvent (string eventArgument)
+ {
+ RaisePostBackEvent (eventArgument);
+ }
protected virtual void OnClick (ImageClickEventArgs e)
{
}
#if NET_2_0
- [MonoTODO]
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
- {
- throw new NotImplementedException ();
- }
-
- [MonoTODO]
- protected virtual void RaisePostDataChangedEvent ()
- {
- throw new NotImplementedException ();
- }
-#endif
-
- bool IPostBackDataHandler.LoadPostData (string postDataKey,
- NameValueCollection postCollection)
+ protected virtual
+#endif
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
string [] items = postCollection.GetValues (postDataKey) as string [];
bool res = false;
return res;
}
- void IPostBackDataHandler.RaisePostDataChangedEvent ()
+#if NET_2_0
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
{
OnSelectedIndexChanged (EventArgs.Empty);
}
+
+ bool IPostBackDataHandler.LoadPostData (string postDataKey,
+ NameValueCollection postCollection)
+ {
+ return LoadPostData (postDataKey, postCollection);
+ }
+
+ void IPostBackDataHandler.RaisePostDataChangedEvent ()
+ {
+ RaisePostDataChangedEvent ();
+ }
}
}
}
#if NET_2_0
- [MonoTODO]
- protected override bool LoadPostData (string postDataKey, NameValueCollection postCollection)
- {
- throw new NotImplementedException ();
- }
-
- [MonoTODO]
- protected override void RaisePostDataChangedEvent ()
- {
- throw new NotImplementedException ();
- }
-#endif
-
- bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
+ protected override
+#endif
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
bool old_checked = Checked;
return (false);
}
}
+
+#if NET_2_0
+ protected override
+#endif
+ void RaisePostDataChangedEvent ()
+ {
+ }
+
+ bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
+ {
+ return LoadPostData (postDataKey, postCollection);
+ }
}
}
{
throw new NotImplementedException ();
}
+#endif
- [MonoTODO]
- protected virtual Style GetItemStyle (ListItemType itemType, int repeatIndex)
+#if NET_2_0
+ protected virtual
+#endif
+ Style GetItemStyle (ListItemType itemType, int repeatIndex)
{
- throw new NotImplementedException ();
+ return null;
}
- [MonoTODO]
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
+#if NET_2_0
+ protected virtual
+#endif
+ void RenderItem (ListItemType itemType, int repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer)
{
- throw new NotImplementedException ();
+ RadioButton radio = new RadioButton ();
+ radio.Text = Items [repeatIndex].Text;
+ radio.ID = ClientID + "_" + repeatIndex;
+ radio.TextAlign = TextAlign;
+ radio.GroupName = UniqueID;
+ radio.Page = Page;
+ radio.Checked = Items [repeatIndex].Selected;
+ radio.Attributes["Value"] = Items [repeatIndex].Value;
+ radio.RenderControl (writer);
}
[MonoTODO]
- protected virtual void RaisePostDataChangedEvent ()
+#if NET_2_0
+ protected virtual
+#endif
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
- throw new NotImplementedException ();
+ return true;
}
[MonoTODO]
- protected virtual void RenderItem (ListItemType itemType, int repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer)
+#if NET_2_0
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
{
- throw new NotImplementedException ();
}
-#endif
- [MonoTODO]
+
bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
{
- return true;
+ return LoadPostData (postDataKey, postCollection);
}
- [MonoTODO]
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
-
+ RaisePostDataChangedEvent ();
}
Style IRepeatInfoUser.GetItemStyle (ListItemType itemType, int repeatIndex)
{
- return null;
+ return GetItemStyle (itemType, repeatIndex);
}
void IRepeatInfoUser.RenderItem (ListItemType itemType, int repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer)
{
- RadioButton radio = new RadioButton ();
- radio.Text = Items [repeatIndex].Text;
- radio.ID = ClientID + "_" + repeatIndex;
- radio.TextAlign = TextAlign;
- radio.GroupName = UniqueID;
- radio.Page = Page;
- radio.Checked = Items [repeatIndex].Selected;
- radio.Attributes["Value"] = Items [repeatIndex].Value;
- radio.RenderControl (writer);
+ RenderItem (itemType, repeatIndex, repeatInfo, writer);
}
#if NET_2_0
}
#if NET_2_0
- [MonoTODO]
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
+ protected virtual
+#endif
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
- throw new NotImplementedException ();
+ if (Text != postCollection [postDataKey]) {
+ Text = postCollection [postDataKey];
+ return true;
+ }
+
+ return false;
}
- [MonoTODO]
- protected virtual void RaisePostDataChangedEvent ()
+#if NET_2_0
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
{
- throw new NotImplementedException ();
+ OnTextChanged (EventArgs.Empty);
}
-#endif
- bool IPostBackDataHandler.LoadPostData (string key, NameValueCollection col)
+ bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
{
- if (Text != col [key]) {
- Text = col [key];
- return true;
- }
-
- return false;
+ return LoadPostData (postDataKey, postCollection);
}
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
- OnTextChanged (EventArgs.Empty);
+ RaisePostDataChangedEvent ();
}
#if NET_2_0