OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::LineEditCfg Class Reference

#include "LineEditCfg.h"

Inheritance diagram for ot::LineEditCfg:
ot::WidgetBaseCfg ot::Serializable

Public Member Functions

 LineEditCfg ()
 
 LineEditCfg (const std::string &_name, const std::string &_text)
 
 LineEditCfg (const LineEditCfg &)=default
 
 LineEditCfg (LineEditCfg &&)=default
 
virtual ~LineEditCfg ()
 
LineEditCfgoperator= (const LineEditCfg &)=default
 
LineEditCfgoperator= (LineEditCfg &&)=default
 
virtual std::string getWidgetBaseTypeString (void) const override
 
virtual void addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const override
 Add the object contents to the provided JSON object.
 
virtual void setFromJsonObject (const ot::ConstJsonObject &_object) override
 Set the object contents from the provided JSON object.
 
void setReadOnly (bool _isReadOnly)
 
bool getReadOnly (void) const
 
void setText (const std::string &_text)
 
const std::string & getText (void) const
 
void setPlaceholderText (const std::string &_text)
 
const std::string & getPlaceholderText (void) const
 
- Public Member Functions inherited from ot::WidgetBaseCfg
 WidgetBaseCfg ()
 
 WidgetBaseCfg (const std::string &_name)
 
 WidgetBaseCfg (const WidgetBaseCfg &)=default
 
 WidgetBaseCfg (WidgetBaseCfg &&)=default
 
virtual ~WidgetBaseCfg ()
 
WidgetBaseCfgoperator= (const WidgetBaseCfg &)=default
 
WidgetBaseCfgoperator= (WidgetBaseCfg &&)=default
 
void setName (const std::string &_name)
 
const std::string & getName (void) const
 
void setToolTip (const std::string &_toolTip)
 
const std::string & getToolTip (void) const
 
- Public Member Functions inherited from ot::Serializable
 Serializable ()
 
virtual ~Serializable ()
 

Static Public Member Functions

static std::string getLineEditCfgTypeString (void)
 
- Static Public Member Functions inherited from ot::WidgetBaseCfg
static std::string typeStringJsonKey (void)
 

Constructor & Destructor Documentation

◆ LineEditCfg() [1/4]

ot::LineEditCfg::LineEditCfg ( )

◆ LineEditCfg() [2/4]

ot::LineEditCfg::LineEditCfg ( const std::string & _name,
const std::string & _text )

◆ LineEditCfg() [3/4]

ot::LineEditCfg::LineEditCfg ( const LineEditCfg & )
default

◆ LineEditCfg() [4/4]

ot::LineEditCfg::LineEditCfg ( LineEditCfg && )
default

◆ ~LineEditCfg()

ot::LineEditCfg::~LineEditCfg ( )
virtual

Member Function Documentation

◆ addToJsonObject()

void ot::LineEditCfg::addToJsonObject ( ot::JsonValue & _object,
ot::JsonAllocator & _allocator ) const
overridevirtual

Add the object contents to the provided JSON object.

Parameters
_objectJson object reference to write the data to.
_allocatorAllocator.

Reimplemented from ot::WidgetBaseCfg.

◆ getLineEditCfgTypeString()

static std::string ot::LineEditCfg::getLineEditCfgTypeString ( void )
inlinestatic

◆ getPlaceholderText()

const std::string & ot::LineEditCfg::getPlaceholderText ( void ) const
inline

◆ getReadOnly()

bool ot::LineEditCfg::getReadOnly ( void ) const
inline

◆ getText()

const std::string & ot::LineEditCfg::getText ( void ) const
inline

◆ getWidgetBaseTypeString()

virtual std::string ot::LineEditCfg::getWidgetBaseTypeString ( void ) const
inlineoverridevirtual

Implements ot::WidgetBaseCfg.

◆ operator=() [1/2]

LineEditCfg & ot::LineEditCfg::operator= ( const LineEditCfg & )
default

◆ operator=() [2/2]

LineEditCfg & ot::LineEditCfg::operator= ( LineEditCfg && )
default

◆ setFromJsonObject()

void ot::LineEditCfg::setFromJsonObject ( const ot::ConstJsonObject & _object)
overridevirtual

Set the object contents from the provided JSON object.

Parameters
_objectThe JSON object containing the information.
Exceptions
Maythrow an exception if the provided object is not valid (members missing or invalid types).

Reimplemented from ot::WidgetBaseCfg.

◆ setPlaceholderText()

void ot::LineEditCfg::setPlaceholderText ( const std::string & _text)
inline

◆ setReadOnly()

void ot::LineEditCfg::setReadOnly ( bool _isReadOnly)
inline

◆ setText()

void ot::LineEditCfg::setText ( const std::string & _text)
inline

The documentation for this class was generated from the following files: