private protected override void ValidateDiscreteContentFocusableCellView(IFrameCellViewTreeContext context, IFrameKeywordFrame keywordFrame, IFrameDiscreteContentFocusableCellView cellView) { Debug.Assert(((IFocusDiscreteContentFocusableCellView)cellView).StateView == ((IFocusCellViewTreeContext)context).StateView); Debug.Assert(((IFocusDiscreteContentFocusableCellView)cellView).Frame == this); Debug.Assert(((IFocusDiscreteContentFocusableCellView)cellView).KeywordFrame == (IFocusKeywordFrame)keywordFrame); IFocusCellViewCollection ParentCellView = ((IFocusDiscreteContentFocusableCellView)cellView).ParentCellView; }
/// <summary> /// Create cells for the provided state view. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> public override IFrameCellView BuildBlockCells(IFrameCellViewTreeContext context, IFrameCellViewCollection parentCellView) { ((IFocusCellViewTreeContext)context).AddOrReplaceSelectors(Selectors, out Type OldSelectorType, out string OldSelectorName); IFocusCellViewCollection EmbeddingCellView = base.BuildBlockCells(context, parentCellView) as IFocusCellViewCollection; Debug.Assert(EmbeddingCellView != null); ((IFocusCellViewTreeContext)context).RemoveOrRestoreSelectors(Selectors, OldSelectorType, OldSelectorName); return(EmbeddingCellView); }
/// <summary> /// Create cells for the provided state view. /// </summary> /// <param name="context">Context used to build the cell view tree.</param> /// <param name="parentCellView">The parent cell view.</param> public override IFrameCellView BuildNodeCells(IFrameCellViewTreeContext context, IFrameCellViewCollection parentCellView) { ((IFocusCellViewTreeContext)context).UpdateNodeFrameVisibility(this, out bool OldFrameVisibility); ((IFocusCellViewTreeContext)context).AddSelectors(Selectors); IFocusCellViewCollection EmbeddingCellView = base.BuildNodeCells(context, parentCellView) as IFocusCellViewCollection; Debug.Assert(EmbeddingCellView != null); ((IFocusCellViewTreeContext)context).RemoveSelectors(Selectors); ((IFocusCellViewTreeContext)context).RestoreFrameVisibility(OldFrameVisibility); return(EmbeddingCellView); }
/// <summary> /// Initializes a new instance of the <see cref="FocusColumn"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> /// <param name="cellViewList">The list of child cell views.</param> /// <param name="frame">The frame that was used to create this cell. Can be null.</param> public FocusColumn(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, IFocusCellViewList cellViewList, IFocusFrame frame) : base(stateView, parentCellView, cellViewList, frame) { }
/// <summary> /// Creates a IxxxEmptyCellView object. /// </summary> private protected virtual IFocusEmptyCellView CreateEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) { ControllerTools.AssertNoOverride(this, Type.FromTypeof <FocusDiscreteFrame>()); return(new FocusEmptyCellView(stateView, parentCellView)); }
private protected virtual void ValidateEmptyCellView(IFocusCellViewTreeContext context, IFocusEmptyCellView emptyCellView) { Debug.Assert(emptyCellView.StateView == context.StateView); IFocusCellViewCollection ParentCellView = emptyCellView.ParentCellView; }
private protected override void ValidateEmbeddingCellView(IFrameCellViewTreeContext context, IFrameCellViewCollection embeddingCellView) { Debug.Assert(((IFocusCellViewCollection)embeddingCellView).StateView == ((IFocusCellViewTreeContext)context).StateView); IFocusCellViewCollection ParentCellView = ((IFocusCellViewCollection)embeddingCellView).ParentCellView; }
private protected override void ValidateVisibleCellView(IFrameCellViewTreeContext context, IFrameVisibleCellView cellView) { Debug.Assert(((IFocusVisibleCellView)cellView).StateView == ((IFocusCellViewTreeContext)context).StateView); Debug.Assert(((IFocusVisibleCellView)cellView).Frame == this); IFocusCellViewCollection ParentCellView = ((IFocusVisibleCellView)cellView).ParentCellView; }
/// <summary> /// Initializes a new instance of the <see cref="FocusContentFocusableCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> /// <param name="frame">The frame that created this cell view.</param> /// <param name="propertyName">Property corresponding to the component of the node.</param> public FocusContentFocusableCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, IFocusFrame frame, string propertyName) : base(stateView, parentCellView, frame, propertyName) { }
/// <summary> /// Initializes a new instance of the <see cref="FocusContainerCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view.</param> /// <param name="childStateView">The state view of the state associated to this cell.</param> /// <param name="frame">The frame that was used to create this cell.</param> public FocusContainerCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, IFocusNodeStateView childStateView, IFrameFrame frame) : base(stateView, parentCellView, childStateView, frame) { }
/// <summary> /// Creates a IxxxEmptyCellView object. /// </summary> private protected override IFocusEmptyCellView CreateEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) { ControllerTools.AssertNoOverride(this, typeof(LayoutDiscreteFrame)); return(new LayoutEmptyCellView((ILayoutNodeStateView)stateView, (ILayoutCellViewCollection)parentCellView)); }
/// <summary> /// Creates a IxxxEmptyCellView object. /// </summary> private protected virtual IFocusEmptyCellView CreateEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) { ControllerTools.AssertNoOverride(this, typeof(FocusSymbolFrame)); return(new FocusEmptyCellView(stateView, parentCellView)); }
/// <summary> /// Initializes a new instance of the <see cref="FocusCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> public FocusCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) : base(stateView, parentCellView) { }
/// <summary> /// Initializes a new instance of the <see cref="FocusFocusableCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> /// <param name="frame">The frame that created this cell view.</param> public FocusFocusableCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, IFocusFrame frame) : base(stateView, parentCellView, frame) { }
/// <summary> /// Creates a IxxxEmptyCellView object. /// </summary> private protected override IFocusEmptyCellView CreateEmptyCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView) { ControllerTools.AssertNoOverride(this, Type.FromTypeof <LayoutKeywordFrame>()); return(new LayoutEmptyCellView((ILayoutNodeStateView)stateView, (ILayoutCellViewCollection)parentCellView)); }
/// <summary> /// Initializes a new instance of the <see cref="FocusCommentCellView"/> class. /// </summary> /// <param name="stateView">The state view containing the tree with this cell.</param> /// <param name="parentCellView">The collection of cell views containing this view. Null for the root of the cell tree.</param> /// <param name="frame">The frame that created this cell view.</param> /// <param name="documentation">The comment this cell is displaying.</param> public FocusCommentCellView(IFocusNodeStateView stateView, IFocusCellViewCollection parentCellView, IFocusFrame frame, IDocument documentation) : base(stateView, parentCellView, frame, documentation) { }