C# Class Habanero.Faces.Base.HabaneroAppUI

Provides a template for a standard Habanero application, including standard fields and initialisations. Specific details covered are:
  • The class definitions that define how the data is represented and limited
  • The database configuration, connection and settings
  • A logger to record debugging and error messages
  • An exception notifier to communicate exceptions to the user
  • Automatic version upgrades when an application is out-of-date
  • A synchronisation controller
  • A control factory to create controls
  • A data accessor that specifies what type of data source is used (DB by default)
To set up and launch an application:
  1. Instantiate the application with the constructor
  2. Specify any individual settings as required
  3. Call the Startup() method to launch the application
Inheritance: Habanero.Base.HabaneroApp
Afficher le fichier Open project: Chillisoft/habanero.faces

Protected Properties

Свойство Type Description
_privateKey string

Méthodes publiques

Méthode Description
SetPrivateKey ( string xmlPrivateKey ) : void

Sets the private key used to decrypt the database password. If your database password as supplied is in plaintext then this is not necessary. If you supply the DatabaseConfig object you can also set the private key on that instead.

Startup ( ) : bool

Méthodes protégées

Méthode Description
HabaneroAppUI ( string appName, string appVersion ) : System

Constructor to initialise a new application with basic application information. Use the Startup() method to launch the application.

SetupClassDefs ( ) : void

Loads the class definitions

SetupControlFactory ( ) : void

Sets the control factory used to create controls

SetupDateDisplaySettings ( ) : void

Sets up the class that stores the date display settings

SetupUISettings ( ) : void

Sets up the class that stores the user interface settings

Private Methods

Méthode Description
GetXmlClassDefsLoader ( ) : Habanero.BO.Loaders.XmlClassDefsLoader

Gets the loader for the xml class definitions

LogAppStartingInfo ( IHabaneroLogger log ) : void
SetupHabaneroAppUI ( ) : void

Method Details

HabaneroAppUI() protected méthode

Constructor to initialise a new application with basic application information. Use the Startup() method to launch the application.
protected HabaneroAppUI ( string appName, string appVersion ) : System
appName string The application name
appVersion string The application version
Résultat System

SetPrivateKey() public méthode

Sets the private key used to decrypt the database password. If your database password as supplied is in plaintext then this is not necessary. If you supply the DatabaseConfig object you can also set the private key on that instead.
public SetPrivateKey ( string xmlPrivateKey ) : void
xmlPrivateKey string The private key (RSA) in xml format
Résultat void

SetupClassDefs() protected méthode

Loads the class definitions
protected SetupClassDefs ( ) : void
Résultat void

SetupControlFactory() protected abstract méthode

Sets the control factory used to create controls
protected abstract SetupControlFactory ( ) : void
Résultat void

SetupDateDisplaySettings() protected méthode

Sets up the class that stores the date display settings
protected SetupDateDisplaySettings ( ) : void
Résultat void

SetupUISettings() protected méthode

Sets up the class that stores the user interface settings
protected SetupUISettings ( ) : void
Résultat void

Startup() public méthode

public Startup ( ) : bool
Résultat bool

Property Details

_privateKey protected_oe property

The application's private key
protected string _privateKey
Résultat string