Пример #1
0
 public IncrementalSearcher(JetListViewNodeCollection nodeCollection,
                            RowListRenderer rowListRenderer, SelectionModel selection)
 {
     _nodeCollection  = nodeCollection;
     _rowListRenderer = rowListRenderer;
     SelectionModel   = selection;
 }
Пример #2
0
 private void HandleRowHeightChanged(object sender, RowHeightChangedEventArgs e)
 {
     if (JetListViewNodeCollection.IsNodeVisible(e.Row))
     {
         SetScrollRange(_scrollRange - e.OldHeight + e.NewHeight);
         InvalidateBelow(0);
     }
 }
Пример #3
0
 public NodeGroupCollection(JetListViewNodeCollection nodeCollection, IGroupProvider groupProvider)
 {
     _nodeCollection = nodeCollection;
     _groupProvider  = groupProvider;
     _nodeCollection.ViewNodeRemoving += HandleViewNodeRemoving;
     _nodeCollection.NodeMoving       += HandleNodeMoving;
     _nodeCollection.NodeChanged      += HandleNodeChanged;
     _nodeCollection.NodesCollapsed   += ForwardNodesCollapsed;
 }
Пример #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 bool IsNodeVisible(IViewNode node)
        {
            if (node is GroupHeaderNode)
            {
                return(true);
            }
            JetListViewNode lvNode = node as JetListViewNode;

            if (!JetListViewNodeCollection.IsNodeVisible(lvNode))
            {
                return(false);
            }
            return(GetNodeGroupHeader(lvNode).Expanded);
        }
Пример #6
0
        public RowListRenderer(JetListViewNodeCollection collection, SelectionModel selectionModel)
        {
            _nodeCollection = collection;
            _nodeCollection.VisibleNodeAdded     += new JetListViewNodeEventHandler(HandleVisibleNodeAdded);
            _nodeCollection.VisibleNodeRemoving  += new JetListViewNodeEventHandler(HandleVisibleNodeRemoving);
            _nodeCollection.VisibleNodeRemoved   += new JetListViewNodeEventHandler(HandleVisibleNodeRemoved);
            _nodeCollection.NodeMoving           += new JetListViewNodeEventHandler(HandleNodeMoving);
            _nodeCollection.NodeMoved            += new JetListViewNodeEventHandler(HandleNodeMoved);
            _nodeCollection.MultipleNodesChanged += new MultipleNodesChangedEventHandler(HandleMultipleNodesChanged);
            _nodeCollection.FilterListChanged    += new EventHandler(HandleFilterListChanged);
            _nodeCollection.NodeExpandChanged    += new JetListViewNodeEventHandler(HandleNodeExpandChanged);
            _nodeCollection.NodeChanged          += new JetListViewNodeEventHandler(HandleNodeChanged);
            _nodeCollection.Sorted += new EventHandler(HandleNodesSorted);
            _visibleNodeCollection  = _nodeCollection;

            SelectionModel = selectionModel;
            _topNode       = null;
        }
Пример #7
0
 internal JetListViewNode(JetListViewNodeCollection owner, object data)
 {
     _owner = owner;
     _data  = data;
     SetFiltersAccept(true);
 }
Пример #8
0
 public SingleSelectionModel(JetListViewNodeCollection nodeCollection)
     : base(nodeCollection)
 {
     _selectedNodesEnumerable = new SelectedNodesEnumerable(this);
 }
Пример #9
0
 internal SelectionModel(JetListViewNodeCollection nodeCollection)
 {
     _nodeCollection = nodeCollection;
     _nodeCollection.MultipleNodesChanged += new MultipleNodesChangedEventHandler(HandleMultipleNodesChanged);
     VisibleNodeCollection = _nodeCollection;
 }
Пример #10
0
 internal MultipleSelectionModel(JetListViewNodeCollection nodeCollection)
     : base(nodeCollection)
 {
     _selectedNodes           = new HashSet();
     _selectedNodesEnumerable = new SelectedNodesEnumerable(this);
 }