rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Studio Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvStIValidator Class Reference

Inspector class. More...

#include <ivstudio/inspectors/inspvali.h>

Inheritance diagram for IlvStIValidator:
IlvStNamedObject IlvStIRangeValidator

List of all members.

Public Member Functions

 IlvStIValidator (const char *name=0, IlBoolean validateOnApp=IlTrue)
 Initializes an instance of IlvStIValidator.
virtual IlvStIErrorcheck (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.

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

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:
prop The 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:
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.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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