]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/propregv.tex
*** empty log message ***
[wxWidgets.git] / docs / latex / wx / propregv.tex
... / ...
CommitLineData
1\section{\class{wxPropertyValidatorRegistry}}\label{wxpropertyvalidatorregistry}
2
3The {\bf wxPropertyValidatorRegistry} class is used for storing validators,
4indexed by the `role name' of the property, by which groups of property
5can be identified for the purpose of validation and editing.
6
7\membersection{wxPropertyValidatorRegistry::wxPropertyValidatorRegistry}
8
9\func{void}{wxPropertyValidatorRegistry}{\void}
10
11Constructor.
12
13\membersection{wxPropertyValidatorRegistry::\destruct{wxPropertyValidatorRegistry}}
14
15\func{void}{\destruct{wxPropertyValidatorRegistry}}{\void}
16
17Destructor.
18
19\membersection{wxPropertyValidatorRegistry::Clear}
20
21\func{void}{ClearRegistry}{\void}
22
23Clears the registry, deleting the validators.
24
25\membersection{wxPropertyValidatorRegistry::GetValidator}
26
27\func{wxPropertyValidator *}{GetValidator}{\param{wxString\& }{roleName}}
28
29Retrieve a validator by the property role name.
30
31\membersection{wxPropertyValidatorRegistry::RegisterValidator}\label{wxpropertyvalidatorregistervalidator}
32
33\func{void}{RegisterValidator}{\param{wxString\& }{roleName}, \param{wxPropertyValidator *}{validator}}
34
35Register a validator with the registry. {\it roleName} is a name indicating the
36role of the property, such as ``filename''. Later, when a validator is chosen for
37editing a property, this role name is matched against the class names of the property,
38if the property does not already have a validator explicitly associated with it.
39
40