Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Inspector class. More...
#include <ivstudio/inspectors/inspvali.h>
Public Member Functions | |
IlvStIValidator (const char *name=0, IlBoolean validateOnApp=IlTrue) | |
Initializes an instance of IlvStIValidator . | |
virtual IlvStIError * | check (const IlvStIProperty *prop) const =0 |
Returns an error if the value of the property is not valid. | |
IlBoolean | getValidateOnApply () const |
Returns the validation mode status. | |
void | lock () |
Locks the validator once. | |
void | setValidateOnApply (IlBoolean validate) |
Sets the validation mode. | |
void | unLock () |
Unlocks the validator once. |
Inspector class.
Library: ivstudio
This class is used by the accessors to test whether the values entered by the user are valid.
IlvStIValidator::IlvStIValidator | ( | const char * | name = 0 , |
|
IlBoolean | validateOnApp = IlTrue | |||
) |
Initializes an instance of IlvStIValidator
.
name | The validator name. | |
validateOnApp | If IlTrue , the test must be run when the user clicks on Apply. Otherwise, it must be run immediately after the changes have been made. This parameter is not directly used by the validator, but by the accessor that holds it. |
virtual IlvStIError* IlvStIValidator::check | ( | const IlvStIProperty * | prop | ) | const [pure virtual] |
Returns an error if the value of the property is not valid.
prop | The property. |
Implemented in IlvStIRangeValidator.
IlBoolean IlvStIValidator::getValidateOnApply | ( | ) | const |
Returns the validation mode status.
IlTrue
if the test must be run when the user clicks on Apply. void IlvStIValidator::lock | ( | ) |
Locks the validator once.
Call this method if you want this object to be shared among different objects.
void IlvStIValidator::setValidateOnApply | ( | IlBoolean | validate | ) |
Sets the validation mode.
validate | If IlTrue , the test must be run when the user clicks on Apply. |
void IlvStIValidator::unLock | ( | ) |
Unlocks the validator once.
The accessor is destroyed when it is no longer locked.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.