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 |
|
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.