| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- /**
- * Namespace: System.Web.UI.WebControls
- * Class: BaseDataList
- *
- * Author: Gaurav Vaish
- * Contact: <[email protected]>, <[email protected]>
- * Status: 20%
- *
- * (C) Gaurav Vaish (2001)
- */
- using System;
- using System.Web;
- using System.Web.UI;
- namespace System.Web.UI.WebControls
- {
- public abstract class BaseDataList: WebControl
- {
- private int cellPadding = -1;
- private int cellSpacing = 0;
- private object dataSource = null;
- private string dataKeyField = String.Empty;
- private DataKeyCollection dataKeys; // TODO: From where do get the values into it?
- private string dataMember = String.Empty;
- private GridLines gridLines = GridLines.Both;
- private HorizontalAlign hAlign = HorizontalAlign.NotSet;
-
- public BaseDataList()
- {
- // TODO Something
- }
-
- public static bool IsBindableType(Type type)
- {
- //TODO: To see what has to be here
- return false; //for the time being, to be able to make it compile
- }
-
- public virtual int CellPadding
- {
- get
- {
- return cellPadding;
- }
- set
- {
- cellPadding = value;
- }
- }
-
- public virtual int CellSpacing
- {
- get
- {
- return cellSpacing;
- }
- set
- {
- cellSpacing = value;
- }
- }
-
- public virtual string DataKeyField
- {
- get
- {
- return dataKeyField;
- }
- set
- {
- dataKeyField = value;
- }
- }
-
- public DataKeysCollection DataKeys
- {
- get
- {
- return dataKeys;
- }
- }
-
- public string DataMember
- {
- get
- {
- return dataMember;
- }
- set
- {
- dataMember = value;
- }
- }
-
- public virtual object DataSource
- {
- get
- {
- return dataSource;
- }
- set
- {
- dataSource = value;
- }
- }
-
- public virtual GridLines GridLines
- {
- get
- {
- return gridLines;
- }
- set
- {
- gridLines = value;
- }
- }
-
- public virtual HorizontalAlign HorizontalAlign
- {
- get
- {
- return hAlign;
- }
- set
- {
- hAlign = value;
- }
- }
-
- public override void DataBind()
- {
- // TODO: have to write the implementation
- // I am not sure of whether it will be of any use here since
- // I am an abstract class, and have no identity of myself.
- }
-
- //TODO: Check - where are the following abstract methods?
- /*
- * CreateControlHierarchy(bool)
- * PrepareControlHierarchy()
- */
- }
- }
|