Namespace: Consultingwerk.SmartComponents.Implementation
Class 
SmartToolbarStateController Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:SmartToolbarStateController
Purpose:State controller for SmartToolbarController and
SmartRadRibbonController. Extracted the state handling logic
from the SmartToolbarController to ensure the same state
model is implemented in both Ribbon style Smart Toolbars
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Apr 08 11:31:38 CEST 2015
Notes:This class is for internal use only!



Top Method Summary
Options Name Purpose
+ ActivateSmartNavigationTarget (ISmartNavigationTarget) Activate the given SmartNavigationTarget if it is registered with the SmartNavigationSource.
+ ActivateSmartTableIOTarget (ISmartTableIOTarget) Activate the given SmartTableIOTarget if it is registered as a SmartTableIOSource.
# CHARACTER ControlName (Object) Returns the Name or class name of the provided control
+ DeregisterSmartCommitTarget (ISmartCommitTarget) Registers a new SmartCommitTarget
+ DeregisterSmartNavigationTarget (ISmartNavigationTarget) Deregisters a SmartNavigationTarget from the SmartNavigationSource.
+ DeregisterSmartTableIOTarget (ISmartTableIOTarget) Deregisters a SmartTableIOTarget with the SmartTableIOSource.
+ DesignTimeDisposedHandler () Handles disposing of the Toolbar Control during design time
+ LOGICAL DisableTool (character) Disables the tool with the given Key when it exists in this instance. Invoked by DisableTools.
+ DisableTools (character) Disables a list of tools when they exist in this instance. This Method is called from within the Toolbar depending on what action has been performed and what actions are possible with the current SmartTableIOTarget and SmartNavigationTarget.
+ LOGICAL EnableTool (character) Enables the tool with the given Key when it exists in this instance.
+ EnableTools (character) Enables a list of tools when they exist in this instance.
+ LOGICAL GetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum) Allows to permanently disable TableIO Tools in the SmartToolbarController
# Consultingwerk.SmartComponents.Implementation.TableIOTargetControl GetTableIOTargetControl (ISmartTableIOTarget) Returns the TableIOTargetControl for the given SmartTableIOTarget
+ HandleToolClick (character) Handles the Click event of a Tool
+ LOGICAL IsToolRestricted (character) Returns if the given tool is restricted by the IToolbarItemSecurityService
+ PerformToolbarSecurity () Performs Toolbar Security for non standard tools
+ PerformToolbarSecurity (ISmartTableIOTarget) Performs Toolbar Security
+ PerformToolbarSecurity (Form) Performs Toolbar Security for non standard tools
+ LOGICAL RaiseToolbarAction (Object, ToolClickEventArgs, character) Raises a Toolbar action in a links ISmartToolbarTarget
+ RegisterSmartCommitTarget (ISmartCommitTarget) Registers a new SmartCommitTarget
+ RegisterSmartNavigationTarget (ISmartNavigationTarget) Registers a SmartNavigationTarget with the SmartNavigationSource.
+ RegisterSmartTableIOTarget (ISmartTableIOTarget) Registers a SmartTableIOTarget with the SmartTableIOSource.
+ RegisterSmartToolbarTarget (ISmartToolbarTarget) Register a SmartToolbarTarget with the SmartToolbarSource. This Method is called by Classes implementing the ISmartToolbarTarget Interface when a new SmartToolbarSource is set.
+ SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, logical) Allows to permanently disable TableIO Tools in the SmartToolbarController
+ SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, logical) Allows to permanently disable TableIO Tools in the SmartToolbarController
+ SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, logical) Allows to permanently disable TableIO Tools in the SmartToolbarController
+ SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, logical) Allows to permanently disable TableIO Tools in the SmartToolbarController
+ SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, logical) Allows to permanently disable TableIO Tools in the SmartToolbarController
+ SmartTransactionStateChangedHandler (Object, EventArgs) Event handler for the SmartTransactionStateChanged event of the SmartCommitTarget
+ UpdateSmartNavigationTargetPosition (ISmartNavigationTarget, character) Handles the update of a Position from the SmartNavigationTarget. This Method is called from the SmartDataAdapter derived Classes if the PositionChangedHandler is executed or from inside the ISmartNavigationSource implementing class when the Method UpdateSmartNavigationTargetState or RegisterSmartNavigationTarget are executed.
+ UpdateSmartNavigationTargetPosition (Object, SmartNavigationTargetPositionChangedEventArgs) Event handler for the SmartNavigationTargetPositionChanged event of the SmartNavigationTarget
+ UpdateSmartNavigationTargetState (ISmartNavigationTarget, character) Handles the update of a State from the SmartNavigationTarget. This Method is called from the SmartDataAdapter derived Classes if the Property setter of SmartDataSourceState is executed.
+ UpdateSmartNavigationTargetState (Object, SmartNavigationTargetStateChangedEventArgs) Event handler for the SmartNavigationTargetStateChanged event
+ UpdateSmartTableIOState (ISmartTableIOTarget, character) Handles the update of a State from the SmartTableIOTarget. This Method is called from the SmartViewerControl derived Classes if the Property setter of SmartTableIOState is executed.
+ UpdateSmartTableIOState (Object, SmartTableIOStateChangedEventArgs) Event handler for the SmartTableIOStateChange event of the TableIO Target
+ UpdateTransactionState () Updates the Buttons based on the TransactionState of the current SmartCommitTarget

Top Constructor Summary
Options Name Purpose
+ SmartToolbarStateController (ISmartToolbarControl) Constructor for the SmartToolbarStateController class

Top Property Summary
Options Name Purpose
+ Consultingwerk.SmartComponents.Interfaces.ISmartCommitTarget ActiveSmartCommitTarget
+ Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget ActiveSmartNavigationTarget
+ Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget ActiveSmartTableIOTarget
+ Consultingwerk.SmartComponents.Implementation.ListTableIOTargetControl ListTableIOTargetControl
+ Consultingwerk.SmartComponents.Base.ListISmartTableIOTarget SmartTableIOTargets
+ Consultingwerk.SmartComponents.Implementation.ListISmartToolbarTarget SmartToolbarTargets
+ Consultingwerk.SmartComponents.Interfaces.ISmartToolbarControl Toolbar


Method Detail
Top

PUBLIC ActivateSmartNavigationTarget (ISmartNavigationTarget)

Purpose: Activate the given SmartNavigationTarget if it is registered with
the SmartNavigationSource.
Notes: This Method has to be called if one Toolbar handles two or more
SmartDataSources at a time.
Enforced by Interface ISmartNavigationSource.

Parameters:
poSmartNavigationTarget Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget
The ISmartNavigationTarget instance to activate
Top

PUBLIC ActivateSmartTableIOTarget (ISmartTableIOTarget)

Purpose: Activate the given SmartTableIOTarget if it is registered as a
SmartTableIOSource.
Notes: This Method has to be called if one Toolbar handles two or more
SmartDataSources at a time.
Enforced by the Interface ISmartTableIOSource.

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The ISmartTableIOTarget to activate
Top

PROTECTED CHARACTER ControlName (Object)

Purpose: Returns the Name or class name of the provided control
Notes:

Parameters:
poControl Progress.Lang.Object
The reference to the Control
Returns CHARACTER
The name or class name of the provided control
Top

PUBLIC DeregisterSmartCommitTarget (ISmartCommitTarget)

Purpose: Registers a new SmartCommitTarget
Notes:

Parameters:
poTarget Consultingwerk.SmartComponents.Interfaces.ISmartCommitTarget
The ISmartCommitTarget to add to this SmartToolbarController
Top

PUBLIC DeregisterSmartNavigationTarget (ISmartNavigationTarget)

Purpose: Deregisters a SmartNavigationTarget from the SmartNavigationSource.
Notes:

Parameters:
poSmartNavigationTarget Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget
The ISmartNavigationTarget to deregister
Top

PUBLIC DeregisterSmartTableIOTarget (ISmartTableIOTarget)

Purpose: Deregisters a SmartTableIOTarget with the SmartTableIOSource.
Notes:

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The ISmartTableIOTarget to deregister
Top

PUBLIC DesignTimeDisposedHandler ()

Purpose: Handles disposing of the Toolbar Control during design time
Notes:

Top

PUBLIC LOGICAL DisableTool (character)

Purpose: Disables the tool with the given Key when it exists in this instance.
Invoked by DisableTools.
Notes:

Parameters:
pcToolKey CHARACTER
Returns LOGICAL
True if the Tool exists, False if the Tool does not Exist
Top

PUBLIC DisableTools (character)

Purpose: Disables a list of tools when they exist in this instance.
This Method is called from within the Toolbar depending on what
action has been performed and what actions are possible with the
current SmartTableIOTarget and SmartNavigationTarget.
Notes:

Parameters:
pcToolKeys CHARACTER
Comma delimited list of ButtonTool Keys to be disabled
Top

PUBLIC LOGICAL EnableTool (character)

Purpose: Enables the tool with the given Key when it exists in this instance.
Notes: Invoked by EnableTools.

Parameters:
pcToolKey CHARACTER
Returns LOGICAL
True if the Tool exists, False if the Tool does not Exist
Top

PUBLIC EnableTools (character)

Purpose: Enables a list of tools when they exist in this instance.
Notes: This Method is called from within the Toolbar depending on what
action has been performed and what actions are possible with the
current SmartTableIOTarget and SmartNavigationTarget.

Parameters:
pcToolKeys CHARACTER
Comma delimited list of ButtonTool Keys to be disabled
Top

PUBLIC LOGICAL GetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum)

Purpose: Allows to permanently disable TableIO Tools in the SmartToolbarController
Notes: Useful for applying security settings to the toolbar
https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET //consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET
See http://jira.consultingwerkcloud.com/browse/SCL-442 for details on
extending this for custom buttons

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the ISmartTableIOTarget for this an action should be disabled
poTableIOAction Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
Returns LOGICAL
Logical value indicating if the tool should be disabled. Set to FALSE to enable the tool
Top

PROTECTED Consultingwerk.SmartComponents.Implementation.TableIOTargetControl GetTableIOTargetControl (ISmartTableIOTarget)

Purpose: Returns the TableIOTargetControl for the given SmartTableIOTarget
Notes: Only calls into the ListTableIOTargetControl when we do not yet have the reference here

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the TableIO Target for which to return the TableIOTargetControl
Returns Consultingwerk.SmartComponents.Implementation.TableIOTargetControl
The TableIOTargetControl
Top

PUBLIC HandleToolClick (character)

Purpose: Handles the Click event of a Tool
Notes: Depending on which ButtonTool has been clicked the corresponding
action is performed by calling a routine in the active
SmartNavigationTarget or SmartTableIOTarget.
This Method is executed as the Handler if the ToolClick Event of
the base class is fired.

Parameters:
pcToolKey CHARACTER
The key of the Tool that has been clicked
Top

PUBLIC LOGICAL IsToolRestricted (character)

Purpose: Returns if the given tool is restricted by the IToolbarItemSecurityService
Notes: Requires EndInit() to be executed first, not applicable to the
TableIO Tools as they are maintained on a per SmartTableIOTarget base

Parameters:
pcToolKey CHARACTER
The key of the tool to test
Returns LOGICAL
Logical value indicating of the given tool is restricted by the IToolbarItemSecurityService service
Top

PUBLIC PerformToolbarSecurity ()

Purpose: Performs Toolbar Security for non standard tools
Notes:

Top

PUBLIC PerformToolbarSecurity (ISmartTableIOTarget)

Purpose: Performs Toolbar Security
Notes:

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The ISmartTableIOTarget to perform authorization for
Top

PUBLIC PerformToolbarSecurity (Form)

Purpose: Performs Toolbar Security for non standard tools
Notes:

Parameters:
poForm System.Windows.Forms.Form
The reference to the form that contains the toolbar
Top

PUBLIC LOGICAL RaiseToolbarAction (Object, ToolClickEventArgs, character)

Purpose: Raises a Toolbar action in a links ISmartToolbarTarget
Notes:

Parameters:
sender System.Object
The reference to the control that raised the ToolClick event
e Infragistics.Win.UltraWinToolbars.ToolClickEventArgs
The ToolClickEventArgs with the data for the ToolClick event
pcToolbarAction CHARACTER
The ToolbarAction to raise
Returns LOGICAL
Logical value indicating if the action was executed
Top

PUBLIC RegisterSmartCommitTarget (ISmartCommitTarget)

Purpose: Registers a new SmartCommitTarget
Notes:

Parameters:
poTarget Consultingwerk.SmartComponents.Interfaces.ISmartCommitTarget
The ISmartCommitTarget to register
Top

PUBLIC RegisterSmartNavigationTarget (ISmartNavigationTarget)

Purpose: Registers a SmartNavigationTarget with the SmartNavigationSource.
Notes: This Method is invoked by the SmartDataAdapter in the setter of
the Property SmartNavigationSource.
Enforced by the Interface ISmartNavigationSource.

Parameters:
poSmartNavigationTarget Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget
The ISmartNavigationTarget to register
Top

PUBLIC RegisterSmartTableIOTarget (ISmartTableIOTarget)

Purpose: Registers a SmartTableIOTarget with the SmartTableIOSource.
Notes: This Method is invoked by the SmartDataAdapter in the setter of
the Property SmartTableIOSource.
Enforced by the Interface ISmartTableIOSource.

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The ISmartTableIOTarget to register
Top

PUBLIC RegisterSmartToolbarTarget (ISmartToolbarTarget)

Purpose: Register a SmartToolbarTarget with the SmartToolbarSource.
This Method is called by Classes implementing the ISmartToolbarTarget
Interface when a new SmartToolbarSource is set.
Notes:

Parameters:
poSmartToolbarTarget Consultingwerk.SmartComponents.Interfaces.ISmartToolbarTarget
The reference to the ISmartToolbarTarget to add to this SmartToolbarAdapter
Top

PUBLIC SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, logical)

Purpose: Allows to permanently disable TableIO Tools in the SmartToolbarController
Notes: Useful for applying security settings to the toolbar
https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET //consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET
See http://jira.consultingwerkcloud.com/browse/SCL-442 for details on
extending this for custom buttons

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the ISmartTableIOTarget for this an action should be disabled
poTableIOAction Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
plDisabled LOGICAL
Logical value indicating if the tool should be disabled. Set to FALSE to enable the tool
Top

PUBLIC SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, logical)

Purpose: Allows to permanently disable TableIO Tools in the SmartToolbarController
Notes: Useful for applying security settings to the toolbar
https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET //consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET
See http://jira.consultingwerkcloud.com/browse/SCL-442 for details on
extending this for custom buttons

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the ISmartTableIOTarget for this an action should be disabled
poTableIOAction Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction2 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
plDisabled LOGICAL
Logical value indicating if the tool should be disabled. Set to FALSE to enable the tool
Top

PUBLIC SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, logical)

Purpose: Allows to permanently disable TableIO Tools in the SmartToolbarController
Notes: Useful for applying security settings to the toolbar
https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET //consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET
See http://jira.consultingwerkcloud.com/browse/SCL-442 for details on
extending this for custom buttons

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the ISmartTableIOTarget for this an action should be disabled
poTableIOAction Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction2 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction3 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
plDisabled LOGICAL
Logical value indicating if the tool should be disabled. Set to FALSE to enable the tool
Top

PUBLIC SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, logical)

Purpose: Allows to permanently disable TableIO Tools in the SmartToolbarController
Notes: Useful for applying security settings to the toolbar
https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET //consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET
See http://jira.consultingwerkcloud.com/browse/SCL-442 for details on
extending this for custom buttons

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the ISmartTableIOTarget for this an action should be disabled
poTableIOAction Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction2 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction3 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction4 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
plDisabled LOGICAL
Logical value indicating if the tool should be disabled. Set to FALSE to enable the tool
Top

PUBLIC SetTableIOActionDisabled (ISmartTableIOTarget, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, TableIOActionEnum, logical)

Purpose: Allows to permanently disable TableIO Tools in the SmartToolbarController
Notes: Useful for applying security settings to the toolbar
https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET //consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094803/Using+Toolbarsecurity+with+a+Security+Framework+like+Dynamics+Dynamics4.NET
See http://jira.consultingwerkcloud.com/browse/SCL-442 for details on
extending this for custom buttons

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the ISmartTableIOTarget for this an action should be disabled
poTableIOAction Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction2 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction3 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction4 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
poTableIOAction5 Consultingwerk.SmartComponents.Enum.TableIOActionEnum
The TableIOActionEnum member identifying the action to enable/disable
plDisabled LOGICAL
Logical value indicating if the tool should be disabled. Set to FALSE to enable the tool
Top

PUBLIC SmartTransactionStateChangedHandler (Object, EventArgs)

Purpose: Event handler for the SmartTransactionStateChanged event of the SmartCommitTarget
Notes:

Parameters:
sender System.Object
The object the raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PUBLIC UpdateSmartNavigationTargetPosition (ISmartNavigationTarget, character)

Purpose: Handles the update of a Position from the SmartNavigationTarget.
This Method is called from the SmartDataAdapter derived Classes
if the PositionChangedHandler is executed or from inside the
ISmartNavigationSource implementing class when the Method
UpdateSmartNavigationTargetState or RegisterSmartNavigationTarget
are executed.
Notes: Enforced by Interface ISmartNavigationSource.

Parameters:
poSmartNavigationTarget Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget
The reference to the current SmartNavigationTarget
pcPosition CHARACTER
The RecordPositionEnum member indicating the new navigation target position
Top

PUBLIC UpdateSmartNavigationTargetPosition (Object, SmartNavigationTargetPositionChangedEventArgs)

Purpose: Event handler for the SmartNavigationTargetPositionChanged event of the SmartNavigationTarget
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e Consultingwerk.SmartComponents.Base.SmartNavigationTargetPositionChangedEventArgs
The SmartNavigationTargetPositionChangedEventArgs instance with the data for this event
Top

PUBLIC UpdateSmartNavigationTargetState (ISmartNavigationTarget, character)

Purpose: Handles the update of a State from the SmartNavigationTarget.
This Method is called from the SmartDataAdapter derived Classes
if the Property setter of SmartDataSourceState is executed.
Notes: Enforced by Interface ISmartNavigationSource.

Parameters:
poSmartNavigationTarget Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget
The reference to the current SmartNavigationTarget
pcState CHARACTER
The RecordPositionEnum member indicating the new navigation target state, Updating or Navigatable
Top

PUBLIC UpdateSmartNavigationTargetState (Object, SmartNavigationTargetStateChangedEventArgs)

Purpose: Event handler for the SmartNavigationTargetStateChanged event
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e Consultingwerk.SmartComponents.Base.SmartNavigationTargetStateChangedEventArgs
The SmartNavigationTargetStateChangedEventArgs instance with the data for this event
Top

PUBLIC UpdateSmartTableIOState (ISmartTableIOTarget, character)

Purpose: Handles the update of a State from the SmartTableIOTarget.
This Method is called from the SmartViewerControl derived Classes
if the Property setter of SmartTableIOState is executed.
Notes: Enforced by Interface ISmartTableIOSource.

Parameters:
poSmartTableIOTarget Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
The reference to the current ISmartTableIOTarget
pcSmartTableIOState CHARACTER
The current state of the SmartTableIOTarget instance, e.g. AddCopyAllowed, FieldsDisabled, FieldsEnabled, ModifyingData, NoDataSource
Top

PUBLIC UpdateSmartTableIOState (Object, SmartTableIOStateChangedEventArgs)

Purpose: Event handler for the SmartTableIOStateChange event of the TableIO
Target
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e Consultingwerk.SmartComponents.Base.SmartTableIOStateChangedEventArgs
The SmartTableIOStateChangedEventArgs instance with the data for this event
Top

PUBLIC UpdateTransactionState ()

Purpose: Updates the Buttons based on the TransactionState of the current SmartCommitTarget
Notes:



Constructor Detail
Top

PUBLIC SmartToolbarStateController (ISmartToolbarControl)

Purpose: Constructor for the SmartToolbarStateController class
Notes:

Parameters:
poToolbar Consultingwerk.SmartComponents.Interfaces.ISmartToolbarControl
The reference to the SmartToolbarController or SmartRadRibbonController to work with


Property Detail
Top

PUBLIC Consultingwerk.SmartComponents.Interfaces.ISmartCommitTarget ActiveSmartCommitTarget


Returns Consultingwerk.SmartComponents.Interfaces.ISmartCommitTarget
Top

PUBLIC Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget ActiveSmartNavigationTarget


Returns Consultingwerk.SmartComponents.Interfaces.ISmartNavigationTarget
Top

PUBLIC Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget ActiveSmartTableIOTarget


Returns Consultingwerk.SmartComponents.Interfaces.ISmartTableIOTarget
Top

PUBLIC Consultingwerk.SmartComponents.Implementation.ListTableIOTargetControl ListTableIOTargetControl


Returns Consultingwerk.SmartComponents.Implementation.ListTableIOTargetControl
Top

PUBLIC Consultingwerk.SmartComponents.Base.ListISmartTableIOTarget SmartTableIOTargets


Returns Consultingwerk.SmartComponents.Base.ListISmartTableIOTarget
Top

PUBLIC Consultingwerk.SmartComponents.Implementation.ListISmartToolbarTarget SmartToolbarTargets


Returns Consultingwerk.SmartComponents.Implementation.ListISmartToolbarTarget
Top

PUBLIC Consultingwerk.SmartComponents.Interfaces.ISmartToolbarControl Toolbar


Returns Consultingwerk.SmartComponents.Interfaces.ISmartToolbarControl


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:54:54