Jamba C++ API  5.1.1
ViewAttribute Class Referenceabstract

Base abstract class for an attribute of a view. More...

#include <CustomViewCreator.h>

Inherited by TCustomViewCreator< TView >::TAttribute< T, TGetter, TSetter >.

Public Member Functions

virtual bool apply (CView *iView, const UIAttributes &iAttributes, const IUIDescription *iDescription)=0
 Extracts the value from iAttributes for getName() attribute and "apply" it on the view provided. More...
 
std::string getName () const
 Name of the attribute (which ends up being an attribute in the xml file) Ex: <view back-color="~ BlackCColor" .../> => back-color. More...
 
virtual IViewCreator::AttrType getType ()=0
 
 ViewAttribute (std::string iName)
 

Private Attributes

std::string fName
 

Detailed Description

Base abstract class for an attribute of a view.

Constructor & Destructor Documentation

◆ ViewAttribute()

ViewAttribute ( std::string  iName)
inlineexplicit

Member Function Documentation

◆ apply()

virtual bool apply ( CView *  iView,
const UIAttributes &  iAttributes,
const IUIDescription *  iDescription 
)
pure virtual

Extracts the value from iAttributes for getName() attribute and "apply" it on the view provided.

Subclass will handle the extraction based on type.

Returns
false if view is not of the right type or could not extract

Implemented in TCustomViewCreator< TView >::TAttribute< T, TGetter, TSetter >.

◆ getName()

std::string getName ( ) const
inline

Name of the attribute (which ends up being an attribute in the xml file) Ex: <view back-color="~ BlackCColor" .../> => back-color.

◆ getType()

Member Data Documentation

◆ fName

std::string fName
private

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