Beispiel #1
0
        public Cocoa.Object OutlineViewObjectValueForTableColumnByItem(OutlineView outlineView, TableColumn tableColumn, Cocoa.Object item)
        {
            BrowserItem bi = item as BrowserItem;

            return bi == null ? null : bi.ValueAt(tableColumn.Identifier);
        }
Beispiel #2
0
 public bool OutlineViewIsItemExpandable(OutlineView outlineView, Cocoa.Object item)
 {
     return OutlineViewNumberOfChildrenOfItem(outlineView,item) > 0;
 }
Beispiel #3
0
 public int OutlineViewNumberOfChildrenOfItem(OutlineView outlineView, Cocoa.Object item)
 {
     BrowserItem bi = item as BrowserItem;
     int count = bi != null ? bi.Count : help_tree.Nodes.Count;
     return count;
 }
Beispiel #4
0
 public BrowserItem OutlineViewChildOfItem(OutlineView outlineView, int index, Cocoa.Object item)
 {
     BrowserItem bi = item as BrowserItem;
     if (bi != null)
     bi = bi.ItemAt(index);
     else
     bi = (BrowserItem)items[index];
     return bi;
 }