コード例 #1
0
 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);
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
 /// <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)
 {
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 private protected virtual void ValidateEmptyCellView(IFocusCellViewTreeContext context, IFocusEmptyCellView emptyCellView)
 {
     Debug.Assert(emptyCellView.StateView == context.StateView);
     IFocusCellViewCollection ParentCellView = emptyCellView.ParentCellView;
 }
コード例 #7
0
 private protected override void ValidateEmbeddingCellView(IFrameCellViewTreeContext context, IFrameCellViewCollection embeddingCellView)
 {
     Debug.Assert(((IFocusCellViewCollection)embeddingCellView).StateView == ((IFocusCellViewTreeContext)context).StateView);
     IFocusCellViewCollection ParentCellView = ((IFocusCellViewCollection)embeddingCellView).ParentCellView;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
 /// <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)
 {
 }
コード例 #10
0
 /// <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)
 {
 }
コード例 #11
0
 /// <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));
 }
コード例 #12
0
 /// <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));
 }
コード例 #13
0
 /// <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)
 {
 }
コード例 #14
0
 /// <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)
 {
 }
コード例 #15
0
 /// <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));
 }
コード例 #16
0
 /// <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)
 {
 }