rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Studio Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvStIValidator Class Referenceabstract

Inspector class. More...

#include <ivstudio/inspectors/inspvali.h>

Inheritance diagram for IlvStIValidator:
IlvStNamedObject IlvStIRangeValidator

Public Member Functions

 IlvStIValidator (const char *name=0, IlBoolean validateOnApp=IlTrue)
 Initializes an instance of IlvStIValidator. More...
 
virtual IlvStIErrorcheck (const IlvStIProperty *prop) const =0
 Returns an error if the value of the property is not valid. More...
 
IlBoolean getValidateOnApply () const
 Returns the validation mode status. More...
 
void lock ()
 Locks the validator once. More...
 
void setValidateOnApply (IlBoolean validate)
 Sets the validation mode. More...
 
void unLock ()
 Unlocks the validator once. More...
 
- Public Member Functions inherited from IlvStNamedObject
const char * getName () const
 Returns the name of the object. More...
 
virtual void setName (const char *name)
 Sets the name of the object. More...
 

Detailed Description

Inspector class.

Library: ivstudio

This class is used by the accessors to test whether the values entered by the user are valid.

See Also
IlvStIPropertyAccessor.

Constructor & Destructor Documentation

IlvStIValidator::IlvStIValidator ( const char *  name = 0,
IlBoolean  validateOnApp = IlTrue 
)

Initializes an instance of IlvStIValidator.

Parameters
nameThe validator name.
validateOnAppIf 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.

Member Function Documentation

virtual IlvStIError* IlvStIValidator::check ( const IlvStIProperty prop) const
pure virtual

Returns an error if the value of the property is not valid.

Parameters
propThe property.
Returns
An error if the value of the property is not valid.

Implemented in IlvStIRangeValidator.

IlBoolean IlvStIValidator::getValidateOnApply ( ) const

Returns the validation mode status.

Returns
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.

Parameters
validateIf 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.