Пример #1
0
 protected override void SetOwner(JetListViewColumnCollection value)
 {
     base.SetOwner(value);
     if (value != null && value.OwnerControl != null)
     {
         value.OwnerControl.NodeCollection.NodeAdded   += HandleStructureChanged;
         value.OwnerControl.NodeCollection.NodeRemoved += HandleStructureChanged;
     }
 }
Пример #2
0
 public AutoPreviewRowRenderer(RowRendererBase baseRowRenderer, JetListViewPreviewColumn previewColumn,
                               JetListViewColumnCollection columnCollection)
 {
     _baseRowRenderer = baseRowRenderer;
     _baseRowRenderer.ScrollRangeChanged += new EventHandler(HandleBaseScrollRangeChanged);
     _baseRowRenderer.Invalidate         += new EventHandler(HandleBaseInvalidate);
     _baseRowRenderer.RequestScroll      += new RequestScrollEventHandler(HandleBaseRequestScroll);
     _previewColumn                       = previewColumn;
     _previewColumn.Owner                 = columnCollection;
     _previewColumn.RowHeightChanged     += new RowHeightChangedEventHandler(HandlePreviewRowHeightChanged);
     _previewColumn.AllRowsHeightChanged += new EventHandler(HandlePreviewAllRowsHeightChanged);
 }
Пример #3
0
        protected RowRendererBase(JetListViewColumnCollection columnCollection)
        {
            _columnCollection = columnCollection;

            _columnCollection.ColumnAdded   += new ColumnEventHandler(HandleColumnAdded);
            _columnCollection.ColumnRemoved += new ColumnEventHandler(HandleColumnRemoved);

            foreach (JetListViewColumn col in _columnCollection)
            {
                HookColumn(col);
            }
        }
Пример #4
0
        private HashMap _sizeToContentItemWidths = new HashMap();  // JLVColumn -> IntHashTable<object, width>

        public SingleLineRowRenderer(JetListViewColumnCollection columnCollection,
                                     JetListViewNodeCollection nodeCollection) : base(columnCollection)
        {
            _columnCollection = columnCollection;
            _nodeCollection   = nodeCollection;
            _columnCollection.BatchUpdateStarted += HandleBatchUpdateStarted;
            _columnCollection.BatchUpdated       += HandleBatchUpdated;
            _nodeCollection.VisibleNodeAdded     += HandleNodeAdded;
            _nodeCollection.VisibleNodeRemoved   += HandleNodeRemoved;
            _nodeCollection.NodeChanged          += HandleNodeChanged;
            _nodeCollection.NodeMoved            += HandleNodeChanged;
            CountAutoSizeColumns();
        }
Пример #5
0
 public MultiLineRowRenderer(JetListViewColumnCollection columnCollection)
     : base(columnCollection)
 {
 }
Пример #6
0
 protected virtual void SetOwner(JetListViewColumnCollection value)
 {
     _owner = value;
 }
Пример #7
0
 internal ColumnWidthEnumerator(JetListViewColumnCollection columns, JetListViewNode node)
 {
     _node     = node;
     _columns  = columns;
     _colIndex = -1;
 }