Namespace: Consultingwerk.SmartComponents.Base
Class 
SmartComponent Copy to Clipboard
Parent classes:
Consultingwerk.SmartComponents.ComponentBase

Inherits: Consultingwerk.SmartComponents.ComponentBase
Implements: System.ComponentModel.ICustomTypeDescriptor, Consultingwerk.SmartComponents.IHasDesignerVerbs
Inherited by: Consultingwerk.SmartComponents.Base.SmartDataAdapter Consultingwerk.SmartComponents.Base.SmartDatasetAdapter Consultingwerk.SmartComponents.Implementation.SmartBusinessEntityAdapter Consultingwerk.SmartComponents.Tools.OERABusinessEntityTester.SmartBusinessEntityAdapterTester Consultingwerk.SmartComponents.Implementation.SmartDatasetChildAdapter Consultingwerk.SmartComponents.Implementation.SmartDataObjectAdapter Consultingwerk.SmartComponents.Implementation.SmartTempTableAdapter Consultingwerk.SmartComponents.Implementation.SmartDesignerSupportComponent Consultingwerk.SmartComponents.Implementation.SmartRadRibbonBarController
USE-WIDGET-POOL

File:SmartComponent
Purpose:Base class for custom Component's in the SmartComponent
Library Framework.
Description:The SmartComponent inherits from the
Consultingwerk.SmartComponents.ComponentBase class. This
base class defines the "Genius" icon for the toolbox palette
and makes sure that the Component get's added to the
component container (.NET Visual Designer)
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue May 26 22:42:30 CEST 2009



Top Method Summary
Options Name Purpose
# CreateVerbs () Creates Designer Verbs based on the DesignerVerbs property
+ System.ComponentModel.AttributeCollection GetAttributes () Returns a collection of custom attributes for this instance of a component.
+ CHARACTER GetClassName () Returns the class name of this instance of a component.
+ CHARACTER GetComponentName () Returns the name of this instance of a component.
+ System.ComponentModel.TypeConverter GetConverter () Returns a type converter for this instance of a component.
+ System.ComponentModel.EventDescriptor GetDefaultEvent () Returns the default event for this instance of a component.
+ System.ComponentModel.PropertyDescriptor GetDefaultProperty () Returns the default property for this instance of a component.
+ System.Object GetEditor (Type) Returns an editor of the specified type for this instance of a component.
+ System.ComponentModel.EventDescriptorCollection GetEvents () Returns the events for this instance of a component.
+ System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[]) Returns the events for this instance of a component using the specified attribute array as a filter.
+ System.ComponentModel.PropertyDescriptorCollection GetProperties () Returns the properties for this instance of a component.
+ System.ComponentModel.PropertyDescriptorCollection GetProperties (Attribute[]) Returns the properties for this instance of a component using the attribute array as a filter.
+ System.Object GetPropertyOwner (PropertyDescriptor) Returns an object that contains the property described by the specified property descriptor.
+ OnVerbClicked (character) Event Handler method for Designer Verbs

Top Constructor Summary
Options Name Purpose
+ SmartComponent () Constructor of the SmartComponent class. Set's the DesignTime property using the LicenseManager.
+ SmartComponent (IContainer) Constructor of the SmartComponent class. Set's the DesignTime property using the LicenseManager.

Top Property Summary
Options Name Purpose
# CHARACTER BindableProperties
# CHARACTER CategorizedProperties
# CHARACTER CategoryProperties
# CHARACTER DescribedProperties
# CHARACTER DescriptionProperties
# CHARACTER DesignerVerbs
# CHARACTER DesignerVisibilityAttributes
# CHARACTER DesignerVisibilityProperties
+ LOGICAL DesignTime
# LOGICAL DesingerHostLoading
# CHARACTER HiddenProperties
# CHARACTER NonBrowsableProperties


Method Detail
Top

PROTECTED CreateVerbs ()

Purpose: Creates Designer Verbs based on the DesignerVerbs property
Notes:

Top

PUBLIC System.ComponentModel.AttributeCollection GetAttributes ()

Purpose: Returns a collection of custom attributes for this instance of a
component.
Notes:

Returns System.ComponentModel.AttributeCollection
The System.ComponentModel.AttributeCollection describing the types attributes
Top

PUBLIC CHARACTER GetClassName ()

Purpose: Returns the class name of this instance of a component.
Notes:

Returns CHARACTER
The class name of the Component
Top

PUBLIC CHARACTER GetComponentName ()

Purpose: Returns the name of this instance of a component.
Notes:

Returns CHARACTER
The Component Name of this instance
Top

PUBLIC System.ComponentModel.TypeConverter GetConverter ()

Purpose: Returns a type converter for this instance of a component.
Notes:

Returns System.ComponentModel.TypeConverter
The System.ComponentModel.TypeConverter for this instance of a component.
Top

PUBLIC System.ComponentModel.EventDescriptor GetDefaultEvent ()

Purpose: Returns the default event for this instance of a component.
Notes:

Returns System.ComponentModel.EventDescriptor
The System.ComponentModel.EventDescriptor for the default event of this component
Top

PUBLIC System.ComponentModel.PropertyDescriptor GetDefaultProperty ()

Purpose: Returns the default property for this instance of a component.
Notes:

Returns System.ComponentModel.PropertyDescriptor
The System.ComponentModel.PropertyDescriptor for the default property of the component
Top

PUBLIC System.Object GetEditor (Type)

Purpose: Returns an editor of the specified type for this instance of a
component.
Notes:

Parameters:
editorBaseType System.Type
A System.Type that represents the editor for this object.
Returns System.Object
The reference to the Editor of the type of the component instance
Top

PUBLIC System.ComponentModel.EventDescriptorCollection GetEvents ()

Purpose: Returns the events for this instance of a component.
Notes:

Returns System.ComponentModel.EventDescriptorCollection
The System.ComponentModel.EventDescriptorCollection describing the events of the component
Top

PUBLIC System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[])

Purpose: Returns the events for this instance of a component using the
specified attribute array as a filter.
Notes:

Parameters:
attributes System.Attribute[]
A System.Attribute[] that is used as a filter.
Returns System.ComponentModel.EventDescriptorCollection
The System.ComponentModel.EventDescriptorCollection describing the events of the component
Top

PUBLIC System.ComponentModel.PropertyDescriptorCollection GetProperties ()

Purpose: Returns the properties for this instance of a component.
Notes:

Returns System.ComponentModel.PropertyDescriptorCollection
A System.ComponentModel.PropertyDescriptorCollection that represents the properties for this component instance.
Top

PUBLIC System.ComponentModel.PropertyDescriptorCollection GetProperties (Attribute[])

Purpose: Returns the properties for this instance of a component using the
attribute array as a filter.
Notes:

Parameters:
attributes System.Attribute[]
A System.Attribute[] that is used as a filter.
Returns System.ComponentModel.PropertyDescriptorCollection
A System.ComponentModel.PropertyDescriptorCollection that represents the properties for this component instance.
Top

PUBLIC System.Object GetPropertyOwner (PropertyDescriptor)

Purpose: Returns an object that contains the property described by the
specified property descriptor.
Notes:

Parameters:
pd System.ComponentModel.PropertyDescriptor
A System.ComponentModel.PropertyDescriptor that represents the property whose owner is to be found.
Returns System.Object
An System.Object that represents the owner of the specified property.
Top

PUBLIC OnVerbClicked (character)

Purpose: Event Handler method for Designer Verbs
Notes: This method is intended to be overridden

Parameters:
pcVerbText CHARACTER
The label of the verb the developer clicked on in the Visual Designer


Constructor Detail
Top

PUBLIC SmartComponent ()

Purpose: Constructor of the SmartComponent class. Set's the
DesignTime property using the LicenseManager.
Notes: According to
http://dotnetfacts.blogspot.com/2009/01/identifying-run-time-and-design-mode.html
that is only possible during the constructor of the class.

Top

PUBLIC SmartComponent (IContainer)

Purpose: Constructor of the SmartComponent class. Set's the
DesignTime property using the LicenseManager.
Notes: According to
http://dotnetfacts.blogspot.com/2009/01/identifying-run-time-and-design-mode.html
that is only possible during the constructor of the class.

Parameters:
poContainer System.ComponentModel.IContainer
The IContainer to add the current BindingSource to.


Property Detail
Top

PROTECTED CHARACTER BindableProperties


Returns CHARACTER
Top

PROTECTED CHARACTER CategorizedProperties


Returns CHARACTER
Top

PROTECTED CHARACTER CategoryProperties


Returns CHARACTER
Top

PROTECTED CHARACTER DescribedProperties


Returns CHARACTER
Top

PROTECTED CHARACTER DescriptionProperties


Returns CHARACTER
Top

PROTECTED CHARACTER DesignerVerbs


Returns CHARACTER
Top

PROTECTED CHARACTER DesignerVisibilityAttributes


Returns CHARACTER
Top

PROTECTED CHARACTER DesignerVisibilityProperties


Returns CHARACTER
Top

PUBLIC LOGICAL DesignTime


Returns LOGICAL
Top

PROTECTED LOGICAL DesingerHostLoading


Returns LOGICAL
Top

PROTECTED CHARACTER HiddenProperties


Returns CHARACTER
Top

PROTECTED CHARACTER NonBrowsableProperties


Returns CHARACTER


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:16:15