C# Класс Habanero.BO.ClassDefinition.UIGridColumn

Manages property definitions for a column in a user interface grid, usually as specified in the class definitions xml file. The UIGridColumn can be for
  • A Reflective Property e.g. an Order BO may have a property "CustomerName" that is declared on the Order BO class directly but is derived from the Customer class and therefore does not have a PropDef associated with it.
  • A Defined Property i.e. a normal property of the BO that is mapped to a column in the database e.g. for Order BO an OrderNumber. This property will have a PropDef.
  • A Related Property Habanero has the ability to define a property for a grid etc. via its relationships e.g. for a grid showing order details we may want to show the CustomerName and CustomerCode. We could define these as properties on the Order BO and use Reflective Properties (as above) or we could declare the Related Properties i.e. Customer.CustomerName and Customer.CustomerCode. Habanero will then find the PropDef for the Related Property via its defined relationships. A Related Property can be defined via any of the Business Objects single Relationships.
  • Наследование: IUIGridColumn
    Показать файл Открыть проект Примеры использования класса

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

    Свойство Тип Описание
    _propDef IPropDef

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

    Метод Описание
    Clone ( ) : IUIGridColumn

    Clones the collection of ui columns this performs a copy of all uicolumns but does not copy the uiFormFields.

    Equals ( object obj ) : bool

    Determines whether the specified is equal to the current .

    GetHashCode ( ) : int

    Returns the hash code for this object.

    GetHeading ( ) : string

    Gets the heading for this grid column.

    GetParameterValue ( string parameterName ) : object

    Returns the parameter value for the name provided

    GetPropertyType ( ) : Type

    Gets the heading for this grid column.

    UIGridColumn ( string heading, string propertyName, String gridControlTypeName, String gridControlAssembly, bool editable, int width, PropAlignment alignment, Hashtable parameters ) : System

    Constructor to initialise a new definition

    UIGridColumn ( string heading, string propertyName, Type gridControlType, bool editable, int width, PropAlignment alignment, Hashtable parameters ) : System

    Constructor to initialise a new definition

    operator ( ) : bool

    overloads the operator ==

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

    Метод Описание
    DetermineIsEditable ( ) : bool

    Updates the isEditable flag and updates the control according to the current state

    DoesVirtualPropertyHaveSetter ( ) : bool
    GetHeading ( IClassDef classDef ) : string
    IsPropertyReflective ( ) : bool
    PropDefIsEditable ( ) : bool
    PropDefIsReadOnly ( ) : bool

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

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

    Clones the collection of ui columns this performs a copy of all uicolumns but does not copy the uiFormFields.
    public Clone ( ) : IUIGridColumn
    Результат IUIGridColumn

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

    Determines whether the specified is equal to the current .
    public Equals ( object obj ) : bool
    obj object The to compare with the current .
    Результат bool

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

    Returns the hash code for this object.
    public GetHashCode ( ) : int
    Результат int

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

    Gets the heading for this grid column.
    public GetHeading ( ) : string
    Результат string

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

    Returns the parameter value for the name provided
    public GetParameterValue ( string parameterName ) : object
    parameterName string The parameter name
    Результат object

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

    Gets the heading for this grid column.
    public GetPropertyType ( ) : Type
    Результат System.Type

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

    Constructor to initialise a new definition
    public UIGridColumn ( string heading, string propertyName, String gridControlTypeName, String gridControlAssembly, bool editable, int width, PropAlignment alignment, Hashtable parameters ) : System
    heading string The heading
    propertyName string The property name
    gridControlTypeName String The Name of the Grid Control Type
    gridControlAssembly String The Assembly Name of the Grid Control Type
    editable bool Whether the grid is read-only (cannot be /// edited directly)
    width int The width
    alignment PropAlignment The horizontal alignment
    parameters System.Collections.Hashtable The parameters for the column
    Результат System

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

    Constructor to initialise a new definition
    public UIGridColumn ( string heading, string propertyName, Type gridControlType, bool editable, int width, PropAlignment alignment, Hashtable parameters ) : System
    heading string The heading
    propertyName string The property name
    gridControlType System.Type The grid control type. This cannot be null - /// if you need to supply null type parameters use the constructor that supplies /// specific type and assembly names and set these as null.
    editable bool Whether the grid is read-only (cannot be /// edited directly)
    width int The width
    alignment PropAlignment The horizontal alignment
    parameters System.Collections.Hashtable The parameters for the column
    Результат System

    operator() публичный статический Метод

    overloads the operator ==
    public static operator ( ) : bool
    Результат bool

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

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

    The IPropDef this column is related to.
    protected IPropDef _propDef
    Результат IPropDef