IMaskEdit


Describes minimum required functionality from MaskEdit control.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

// Validator won't be destroyed automaticaly 
class IMaskEdit :public virtual IControl
{
public:
    virtual String getText() = 0; // Return text 
    virtual String getMask() = 0; // Return mask(used in default validator and may be used in other ones). # - number symbol, * - character, all other symbols are set as is. For example, short phone number mask could be ##########, ###-###-####, (095) ### ### #### and so on 
    virtual IMaskValidator *getValidator() = 0; // Return mask validator 

    virtual bool setText(const String &value) = 0; // Set text 
    virtual bool setMask(const String &value) = 0; // Set mask 
    virtual bool setValidator(IMaskValidator *value) = 0; // Set mask validator. If nullptr, default one will be used 
};
Namespace: nitisa::standard
Include: Standard/Controls/IMaskEdit.h