Class GenericAssetTableListView<T1, T2>
Inheritance
System.Object
GenericAssetTableListView<T1, T2>
Syntax
public abstract class GenericAssetTableListView<T1, T2> : TreeView where T1 : LocalizedTable where T2 : GenericAssetTableTreeViewItem, new ()
Type Parameters
Constructors
GenericAssetTableListView()
Declaration
protected GenericAssetTableListView()
Properties
NewKey
Declaration
protected string NewKey { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Tables
Declaration
public List<T1> Tables { get; set; }
Property Value
| Type |
Description |
| List<T1> |
|
totalHeight
Declaration
public virtual float totalHeight { get; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
AddNewKey(String)
Declaration
protected virtual void AddNewKey(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
BuildRoot()
Declaration
protected override TreeViewItem BuildRoot()
Returns
| Type |
Description |
| TreeViewItem |
|
BuildRows(TreeViewItem)
Declaration
protected override IList<TreeViewItem> BuildRows(TreeViewItem root)
Parameters
| Type |
Name |
Description |
| TreeViewItem |
root |
|
Returns
| Type |
Description |
| IList<TreeViewItem> |
|
CanMultiSelect(TreeViewItem)
Declaration
protected override bool CanMultiSelect(TreeViewItem item)
Parameters
| Type |
Name |
Description |
| TreeViewItem |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
CreateTreeViewItem(Int32, String)
Declaration
protected virtual T2 CreateTreeViewItem(int index, string itemKey)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.String |
itemKey |
|
Returns
DoesItemMatchSearch(TreeViewItem, String)
Declaration
protected override bool DoesItemMatchSearch(TreeViewItem item, string search)
Parameters
| Type |
Name |
Description |
| TreeViewItem |
item |
|
| System.String |
search |
|
Returns
| Type |
Description |
| System.Boolean |
|
DrawItemField(Rect, Int32, T2, T1)
Declaration
protected abstract void DrawItemField(Rect cellRect, int col, T2 item, T1 table)
Parameters
| Type |
Name |
Description |
| Rect |
cellRect |
|
| System.Int32 |
col |
|
| T2 |
item |
|
| T1 |
table |
|
DrawKeyField(Rect, T2)
Declaration
protected virtual void DrawKeyField(Rect cellRect, T2 keyItem)
Parameters
| Type |
Name |
Description |
| Rect |
cellRect |
|
| T2 |
keyItem |
|
DrawNewKeyField(Rect)
Draws a field for adding a new key.
Declaration
protected virtual void DrawNewKeyField(Rect cellRect)
Parameters
| Type |
Name |
Description |
| Rect |
cellRect |
|
DrawSearchField(Rect)
Declaration
protected virtual Rect DrawSearchField(Rect rect)
Parameters
| Type |
Name |
Description |
| Rect |
rect |
|
Returns
Initialize()
Declaration
public virtual void Initialize()
InitializeColumns()
Declaration
protected virtual void InitializeColumns()
IsKeyUsed(String)
Is the key already used in one or more of the tables?
Declaration
public bool IsKeyUsed(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Returns
| Type |
Description |
| System.Boolean |
|
OnGUI(Rect)
Declaration
public override void OnGUI(Rect rect)
Parameters
| Type |
Name |
Description |
| Rect |
rect |
|
RowGUI(RowGUIArgs)
Declaration
protected override void RowGUI(RowGUIArgs args)
Parameters
| Type |
Name |
Description |
| RowGUIArgs |
args |
|