コード例 #1
0
ファイル: TableColumn.cs プロジェクト: bangush/server-1
		/// <summary>
		/// Constructs a single-cellrow table column.
		/// </summary>
		/// <param name="columnName">The identifying name of the column.</param>
		/// <param name="columnDisplayName">The display name of the column.</param>
		/// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
		/// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
		/// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param>
		/// <param name="comparison">A custom comparison operator that is used for sorting based on this column.</param>
		public TableColumn(
			string columnName, [param : Localizable(true)] string columnDisplayName,
			GetColumnValueDelegate<TItem, TColumn> valueGetter,
			SetColumnValueDelegate<TItem, TColumn> valueSetter,
			float widthFactor,
			Comparison<TItem> comparison)
			: this(columnName, columnDisplayName, valueGetter, valueSetter, widthFactor, comparison, 0) {}
コード例 #2
0
ファイル: TableColumn.cs プロジェクト: bangush/server-1
		/// <summary>
		/// Constructs a Multi-cellrow table column with specific width factor but no comparison delegate.
		/// </summary>
		/// <param name="columnName">The identifying name of the column.</param>
		/// <param name="columnDisplayName">The display name of the column.</param>
		/// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
		/// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
		/// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param>
		/// <param name="cellRow">The cell row this column will be displayed in.</param>
		public TableColumn(
			string columnName, [param : Localizable(true)] string columnDisplayName,
			GetColumnValueDelegate<TItem, TColumn> valueGetter,
			SetColumnValueDelegate<TItem, TColumn> valueSetter,
			float widthFactor,
			int cellRow)
			: this(columnName, columnDisplayName, valueGetter, valueSetter, widthFactor, null, cellRow) {}
コード例 #3
0
 /// <summary>
 /// Constructs a single-cellrow table column with specific width factor but no comparison delegate.
 /// </summary>
 /// <param name="columnName">The identifying name of the column.</param>
 /// <param name="columnDisplayName">The display name of the column.</param>
 /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
 /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
 /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param>
 public TableColumn(
     string columnName, string columnDisplayName,
     GetColumnValueDelegate <TItem, TColumn> valueGetter,
     SetColumnValueDelegate <TItem, TColumn> valueSetter,
     float widthFactor)
     : this(columnName, columnDisplayName, valueGetter, valueSetter, widthFactor, null)
 {
 }
コード例 #4
0
ファイル: TableColumn.cs プロジェクト: ronmark1/ClearCanvas-1
 /// <summary>
 /// Constructs a single-cellrow table column with specific width factor but no comparison delegate.
 /// </summary>
 /// <param name="columnName">The name of the column.</param>
 /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
 /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
 /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param>
 public TableColumn(
     [param: Localizable(true)] string columnName,
     GetColumnValueDelegate <TItem, TColumn> valueGetter,
     SetColumnValueDelegate <TItem, TColumn> valueSetter,
     float widthFactor)
     : this(columnName, valueGetter, valueSetter, widthFactor, null)
 {
 }
コード例 #5
0
 /// <summary>
 /// Constructs a single-cellrow table column.
 /// </summary>
 /// <param name="columnName">The name of the column.</param>
 /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
 /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
 /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param>
 /// <param name="comparison">A custom comparison operator that is used for sorting based on this column.</param>
 public TableColumn(
     string columnName,
     GetColumnValueDelegate <TItem, TColumn> valueGetter,
     SetColumnValueDelegate <TItem, TColumn> valueSetter,
     float widthFactor,
     Comparison <TItem> comparison)
     : this(columnName, valueGetter, valueSetter, widthFactor, comparison, 0)
 {
 }
コード例 #6
0
 /// <summary>
 /// Constructs a Multi-cellrow table column with specific width factor but no comparison delegate.
 /// </summary>
 /// <param name="columnName">The name of the column.</param>
 /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
 /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
 /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param>
 /// <param name="cellRow">The cell row this column will be displayed in.</param>
 public TableColumn(
     string columnName,
     GetColumnValueDelegate <TItem, TColumn> valueGetter,
     SetColumnValueDelegate <TItem, TColumn> valueSetter,
     float widthFactor,
     int cellRow)
     : this(columnName, valueGetter, valueSetter, widthFactor, null, cellRow)
 {
 }
コード例 #7
0
 /// <summary>
 /// Constructs a multi-cellrow table column.
 /// </summary>
 /// <param name="columnName">The identifying name of the column.</param>
 /// <param name="columnDisplayName">The display name of the column.</param>
 /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
 /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
 /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param>
 /// <param name="comparison">A custom comparison operator that is used for sorting based on this column.</param>
 /// <param name="cellRow">The cell row this column will be displayed in.</param>
 public TableColumn(
     string columnName, string columnDisplayName,
     GetColumnValueDelegate <TItem, TColumn> valueGetter,
     SetColumnValueDelegate <TItem, TColumn> valueSetter,
     float widthFactor,
     Comparison <TItem> comparison,
     int cellRow)
     : base(columnName, columnDisplayName, typeof(TColumn), widthFactor, comparison, cellRow)
 {
     _valueGetter = valueGetter;
     _valueSetter = valueSetter;
 }
コード例 #8
0
 /// <summary>
 /// Constructs a single-cellrow table column with no comparison delegate.
 /// </summary>
 /// <param name="columnName">The identifying name of the column.</param>
 /// <param name="columnDisplayName">The display name of the column.</param>
 /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
 /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
 public TableColumn(string columnName, string columnDisplayName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter)
     : this(columnName, columnDisplayName, valueGetter, valueSetter, 1.0f, null)
 {
 }
コード例 #9
0
 /// <summary>
 /// Constructs a Multi-cellrow table column with no comparison delegate.
 /// </summary>
 /// <param name="columnName">The name of the column.</param>
 /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
 /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
 /// <param name="cellRow">The cell row this column will be displayed in.</param>
 public TableColumn(string columnName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter, int cellRow)
     : this(columnName, valueGetter, valueSetter, 1.0f, null, cellRow)
 {
 }
コード例 #10
0
ファイル: TableColumn.cs プロジェクト: bangush/server-1
		/// <summary>
		/// Constructs a Multi-cellrow table column with no comparison delegate.
		/// </summary>
		/// <param name="columnName">The name of the column.</param>
		/// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param>
		/// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item.  May be null if the column is read-only.</param>
		/// <param name="cellRow">The cell row this column will be displayed in.</param>
		public TableColumn([param : Localizable(true)] string columnName, GetColumnValueDelegate<TItem, TColumn> valueGetter, SetColumnValueDelegate<TItem, TColumn> valueSetter, int cellRow)
			: this(columnName, valueGetter, valueSetter, 1.0f, null, cellRow) {}