Contents Up Previous Next

wxPropertyValidatorRegistry

The wxPropertyValidatorRegistry class is used for storing validators, indexed by the 'role name' of the property, by which groups of property can be identified for the purpose of validation and editing.

Members

wxPropertyValidatorRegistry::wxPropertyValidatorRegistry
wxPropertyValidatorRegistry::~wxPropertyValidatorRegistry
wxPropertyValidatorRegistry::Clear
wxPropertyValidatorRegistry::GetValidator
wxPropertyValidatorRegistry::RegisterValidator


wxPropertyValidatorRegistry::wxPropertyValidatorRegistry

void wxPropertyValidatorRegistry()

Constructor.


wxPropertyValidatorRegistry::~wxPropertyValidatorRegistry

void ~wxPropertyValidatorRegistry()

Destructor.


wxPropertyValidatorRegistry::Clear

void ClearRegistry()

Clears the registry, deleting the validators.


wxPropertyValidatorRegistry::GetValidator

wxPropertyValidator * GetValidator(wxString& roleName)

Retrieve a validator by the property role name.


wxPropertyValidatorRegistry::RegisterValidator

void RegisterValidator(wxString& roleName, wxPropertyValidator *validator)

Register a validator with the registry. roleName is a name indicating the role of the property, such as "filename''. Later, when a validator is chosen for editing a property, this role name is matched against the class names of the property, if the property does not already have a validator explicitly associated with it.