C# 클래스 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
상속: Habanero.Base.HabaneroApp
파일 보기 프로젝트 열기: Chillisoft/habanero.faces

보호된 프로퍼티들

프로퍼티 타입 설명
_privateKey string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetXmlClassDefsLoader ( ) : Habanero.BO.Loaders.XmlClassDefsLoader

Gets the loader for the xml class definitions

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

메소드 상세

HabaneroAppUI() 보호된 메소드

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
리턴 System

SetPrivateKey() 공개 메소드

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
리턴 void

SetupClassDefs() 보호된 메소드

Loads the class definitions
protected SetupClassDefs ( ) : void
리턴 void

SetupControlFactory() 보호된 추상적인 메소드

Sets the control factory used to create controls
protected abstract SetupControlFactory ( ) : void
리턴 void

SetupDateDisplaySettings() 보호된 메소드

Sets up the class that stores the date display settings
protected SetupDateDisplaySettings ( ) : void
리턴 void

SetupUISettings() 보호된 메소드

Sets up the class that stores the user interface settings
protected SetupUISettings ( ) : void
리턴 void

Startup() 공개 메소드

public Startup ( ) : bool
리턴 bool

프로퍼티 상세

_privateKey 보호되어 있는 프로퍼티

The application's private key
protected string _privateKey
리턴 string