C# Класс ComponentFactory.Krypton.Navigator.ViewBuilderItemBase

Base class for implementation of various check button modes.
Наследование: ViewBuilderBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_buttonManager ButtonSpecManagerBase
_drawGroup ComponentFactory.Krypton.Toolkit.ViewDrawCanvas
_drawPanel ComponentFactory.Krypton.Toolkit.ViewDrawPanel
_layoutBar ViewLayoutBar
_layoutBarDocker ComponentFactory.Krypton.Toolkit.ViewLayoutDocker
_layoutBarViewport ComponentFactory.Krypton.Toolkit.ViewLayoutViewport
_newRoot ViewBase
_oldRoot ViewBase
_pageLookup PageToNavCheckItem

Private Properties

Свойство Тип Описание
BringPageIntoView void
CreateNavCheckItems void
DestructCheckButtons void
DestructNavCheckItems void
OnCheckButtonDragOffset void
OnCheckButtonDragRect void
OnItemPageInserted void
OnItemPageRemoved void
OnItemPagesCleared void
OnNavigatorEnabledChanged void
OnNavigatorRightToLeftChanged void
OnViewportAnimation void
RecreateView void
RefreshButtons void
UpdateButtonsAndPalette void
UpdateCheckItemStyle void
UpdateSelectedPageFocus void

Открытые методы

Метод Описание
ButtonSpecFromView ( ViewBase element ) : ButtonSpec

Gets the ButtonSpec associated with the provided view element.

Construct ( KryptonNavigator navigator, ViewManager manager, PaletteRedirect redirector ) : void

Construct the view appropriate for this builder.

DesignerGetHitTest ( Point pt ) : bool

Is the provided over a part of the view that wants the mouse.

Destruct ( ) : void

Destruct the previously created view.

GetContextShowPoint ( ) : Point

Gets the screen coorindates for showing a context action menu.

GetFixedButtonLocation ( ButtonSpecNavFixed buttonSpec ) : HeaderLocation

Gets the appropriate display location for the button.

GiveNavigatorFocus ( ViewBase element ) : bool

Should this element cause the navigator to gain the focus.

GotFocus ( ) : void

Occurs when the navigator takes the focus.

LostFocus ( ) : void

Occurs when the navigator loses the focus.

NextActionEnabled ( DirectionButtonAction action ) : ButtonEnabled

Calculate the enabled state of the next button based on the required action.

PageAppearanceChanged ( KryptonPage page, string property ) : void

Notification that a krypton page appearance property has changed.

PageCollectionChanged ( ) : void

Change has occured to the collection of pages.

PageEnabledStateChanged ( KryptonPage page ) : void

Process a change in the enabled state for a page.

PageFromView ( ViewBase element ) : KryptonPage

Gets the KryptonPage associated with the provided view element.

PageVisibleStateChanged ( KryptonPage page ) : void

Process a change in the visible state for a page.

PerformNextAction ( DirectionButtonAction action, KryptonPage page ) : void

Peform the next button action requested.

PerformPreviousAction ( DirectionButtonAction action, KryptonPage page ) : void

Peform the previous button action requested.

PostLayout ( ) : void

Perform post layout operations.

PreviousActionEnabled ( DirectionButtonAction action ) : ButtonEnabled

Calculate the enabled state of the previous button based on the required action.

ProcessDialogKey ( Keys keyData ) : bool

Process a dialog key in a manner appropriate for the view.

SelectedPageChanged ( ) : void

Process a change in the selected page

UpdateStatePalettes ( ) : void

Ensure the correct state palettes are being used.

Защищенные методы

Метод Описание
ConvertButtonBorderBackOrientation ( ) : VisualOrientation

Gets the visual orientation of the check butttons border and background.

ConvertButtonContentOrientation ( ) : VisualOrientation

Gets the visual orientation of the check butttons content.

CreateButtonSpecManager ( ) : void

Create a manager for handling the button specifications.

CreateCheckItem ( KryptonPage page, VisualOrientation orientation ) : INavCheckItem

Create a new check item with initial settings.

CreateCheckItemView ( ) : void

Create the view hierarchy for this view mode.

DestructButtonSpecManager ( ) : void

Destruct the button manager instance.

DestructCheckItemView ( ) : void

Destruct the view hierarchy for this mode.

OnViewBuilderPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Process the change in a property that might effect the view builder.

PostCreate ( ) : void

Perform post create tasks.

ResolveButtonContentOrientation ( VisualOrientation orientation ) : VisualOrientation

Convert the item orientation using the requested parent orientation.

UpdateItemOrientation ( ) : void

Update the orientation of the individual items.

UpdateOrientation ( ) : void

Update the bar orientation.

Приватные методы

Метод Описание
BringPageIntoView ( KryptonPage page ) : void
CreateNavCheckItems ( ) : void
DestructCheckButtons ( ) : void
DestructNavCheckItems ( ) : void
OnCheckButtonDragOffset ( object sender, ButtonDragOffsetEventArgs e ) : void
OnCheckButtonDragRect ( object sender, ButtonDragRectangleEventArgs e ) : void
OnItemPageInserted ( object sender, TypedCollectionEventArgs e ) : void
OnItemPageRemoved ( object sender, TypedCollectionEventArgs e ) : void
OnItemPagesCleared ( object sender, EventArgs e ) : void
OnNavigatorEnabledChanged ( object sender, EventArgs e ) : void
OnNavigatorRightToLeftChanged ( object sender, EventArgs e ) : void
OnViewportAnimation ( object sender, EventArgs e ) : void
RecreateView ( ) : void
RefreshButtons ( ) : void
UpdateButtonsAndPalette ( ) : void
UpdateCheckItemStyle ( ) : void
UpdateSelectedPageFocus ( ) : void

Описание методов

ButtonSpecFromView() публичный Метод

Gets the ButtonSpec associated with the provided view element.
public ButtonSpecFromView ( ViewBase element ) : ButtonSpec
element ViewBase Element to search against.
Результат ComponentFactory.Krypton.Toolkit.ButtonSpec

Construct() публичный Метод

Construct the view appropriate for this builder.
public Construct ( KryptonNavigator navigator, ViewManager manager, PaletteRedirect redirector ) : void
navigator KryptonNavigator Reference to navigator instance.
manager ComponentFactory.Krypton.Toolkit.ViewManager Reference to current manager.
redirector ComponentFactory.Krypton.Toolkit.PaletteRedirect Palette redirector.
Результат void

ConvertButtonBorderBackOrientation() защищенный Метод

Gets the visual orientation of the check butttons border and background.
protected ConvertButtonBorderBackOrientation ( ) : VisualOrientation
Результат VisualOrientation

ConvertButtonContentOrientation() защищенный Метод

Gets the visual orientation of the check butttons content.
protected ConvertButtonContentOrientation ( ) : VisualOrientation
Результат VisualOrientation

CreateButtonSpecManager() защищенный Метод

Create a manager for handling the button specifications.
protected CreateButtonSpecManager ( ) : void
Результат void

CreateCheckItem() защищенный Метод

Create a new check item with initial settings.
protected CreateCheckItem ( KryptonPage page, VisualOrientation orientation ) : INavCheckItem
page KryptonPage Page for which the check button is to be created.
orientation VisualOrientation Initial orientation of the check button.
Результат INavCheckItem

CreateCheckItemView() защищенный Метод

Create the view hierarchy for this view mode.
protected CreateCheckItemView ( ) : void
Результат void

DesignerGetHitTest() публичный Метод

Is the provided over a part of the view that wants the mouse.
public DesignerGetHitTest ( Point pt ) : bool
pt Point Mouse point.
Результат bool

Destruct() публичный Метод

Destruct the previously created view.
public Destruct ( ) : void
Результат void

DestructButtonSpecManager() защищенный Метод

Destruct the button manager instance.
protected DestructButtonSpecManager ( ) : void
Результат void

DestructCheckItemView() защищенный Метод

Destruct the view hierarchy for this mode.
protected DestructCheckItemView ( ) : void
Результат void

GetContextShowPoint() публичный Метод

Gets the screen coorindates for showing a context action menu.
public GetContextShowPoint ( ) : Point
Результат Point

GetFixedButtonLocation() публичный Метод

Gets the appropriate display location for the button.
public GetFixedButtonLocation ( ButtonSpecNavFixed buttonSpec ) : HeaderLocation
buttonSpec ButtonSpecNavFixed ButtonSpec instance.
Результат HeaderLocation

GiveNavigatorFocus() публичный Метод

Should this element cause the navigator to gain the focus.
public GiveNavigatorFocus ( ViewBase element ) : bool
element ViewBase Element that is being activated.
Результат bool

GotFocus() публичный Метод

Occurs when the navigator takes the focus.
public GotFocus ( ) : void
Результат void

LostFocus() публичный Метод

Occurs when the navigator loses the focus.
public LostFocus ( ) : void
Результат void

NextActionEnabled() публичный Метод

Calculate the enabled state of the next button based on the required action.
public NextActionEnabled ( DirectionButtonAction action ) : ButtonEnabled
action DirectionButtonAction Requested action.
Результат ButtonEnabled

OnViewBuilderPropertyChanged() защищенный Метод

Process the change in a property that might effect the view builder.
protected OnViewBuilderPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object Source of the event.
e System.ComponentModel.PropertyChangedEventArgs Property changed details.
Результат void

PageAppearanceChanged() публичный Метод

Notification that a krypton page appearance property has changed.
public PageAppearanceChanged ( KryptonPage page, string property ) : void
page KryptonPage Page that has changed.
property string Name of property that has changed.
Результат void

PageCollectionChanged() публичный Метод

Change has occured to the collection of pages.
public PageCollectionChanged ( ) : void
Результат void

PageEnabledStateChanged() публичный Метод

Process a change in the enabled state for a page.
public PageEnabledStateChanged ( KryptonPage page ) : void
page KryptonPage Page that has changed enabled state.
Результат void

PageFromView() публичный Метод

Gets the KryptonPage associated with the provided view element.
public PageFromView ( ViewBase element ) : KryptonPage
element ViewBase Element to search against.
Результат KryptonPage

PageVisibleStateChanged() публичный Метод

Process a change in the visible state for a page.
public PageVisibleStateChanged ( KryptonPage page ) : void
page KryptonPage Page that has changed visible state.
Результат void

PerformNextAction() публичный Метод

Peform the next button action requested.
public PerformNextAction ( DirectionButtonAction action, KryptonPage page ) : void
action DirectionButtonAction Requested action.
page KryptonPage Selected page at time of action request.
Результат void

PerformPreviousAction() публичный Метод

Peform the previous button action requested.
public PerformPreviousAction ( DirectionButtonAction action, KryptonPage page ) : void
action DirectionButtonAction Requested action.
page KryptonPage Selected page at time of action request.
Результат void

PostCreate() защищенный Метод

Perform post create tasks.
protected PostCreate ( ) : void
Результат void

PostLayout() публичный Метод

Perform post layout operations.
public PostLayout ( ) : void
Результат void

PreviousActionEnabled() публичный Метод

Calculate the enabled state of the previous button based on the required action.
public PreviousActionEnabled ( DirectionButtonAction action ) : ButtonEnabled
action DirectionButtonAction Requested action.
Результат ButtonEnabled

ProcessDialogKey() публичный Метод

Process a dialog key in a manner appropriate for the view.
public ProcessDialogKey ( Keys keyData ) : bool
keyData Keys Key data.
Результат bool

ResolveButtonContentOrientation() защищенный Метод

Convert the item orientation using the requested parent orientation.
protected ResolveButtonContentOrientation ( VisualOrientation orientation ) : VisualOrientation
orientation VisualOrientation
Результат VisualOrientation

SelectedPageChanged() публичный Метод

Process a change in the selected page
public SelectedPageChanged ( ) : void
Результат void

UpdateItemOrientation() защищенный Метод

Update the orientation of the individual items.
protected UpdateItemOrientation ( ) : void
Результат void

UpdateOrientation() защищенный абстрактный Метод

Update the bar orientation.
protected abstract UpdateOrientation ( ) : void
Результат void

UpdateStatePalettes() публичный Метод

Ensure the correct state palettes are being used.
public UpdateStatePalettes ( ) : void
Результат void

Описание свойств

_buttonManager защищенное свойство

protected ButtonSpecManagerBase _buttonManager
Результат ButtonSpecManagerBase

_drawGroup защищенное свойство

protected ViewDrawCanvas,ComponentFactory.Krypton.Toolkit _drawGroup
Результат ComponentFactory.Krypton.Toolkit.ViewDrawCanvas

_drawPanel защищенное свойство

protected ViewDrawPanel,ComponentFactory.Krypton.Toolkit _drawPanel
Результат ComponentFactory.Krypton.Toolkit.ViewDrawPanel

_layoutBar защищенное свойство

protected ViewLayoutBar,ComponentFactory.Krypton.Navigator _layoutBar
Результат ViewLayoutBar

_layoutBarDocker защищенное свойство

protected ViewLayoutDocker,ComponentFactory.Krypton.Toolkit _layoutBarDocker
Результат ComponentFactory.Krypton.Toolkit.ViewLayoutDocker

_layoutBarViewport защищенное свойство

protected ViewLayoutViewport,ComponentFactory.Krypton.Toolkit _layoutBarViewport
Результат ComponentFactory.Krypton.Toolkit.ViewLayoutViewport

_newRoot защищенное свойство

protected ViewBase _newRoot
Результат ViewBase

_oldRoot защищенное свойство

protected ViewBase _oldRoot
Результат ViewBase

_pageLookup защищенное свойство

protected PageToNavCheckItem _pageLookup
Результат PageToNavCheckItem