GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
TWebMenuItem Class Reference

#include <TWebMenuItem.h>

+ Inheritance diagram for TWebMenuItem:

Public Member Functions

 TWebMenuItem (const std::string &name, const std::string &title)
 
 TWebMenuItem (const TWebMenuItem &rhs)
 
virtual ~TWebMenuItem ()=default
 
void SetExec (const std::string &exec)
 
void SetClassName (const std::string &clname)
 
const std::string & GetName () const
 
const std::string & GetExec () const
 

Protected Attributes

std::string fName
 
std::string fTitle
 
std::string fExec
 
std::string fClassName
 

Detailed Description

Class contains info for producing menu item on the JS side.

Definition at line 27 of file TWebMenuItem.h.

Constructor & Destructor Documentation

TWebMenuItem::TWebMenuItem ( const std::string &  name,
const std::string &  title 
)
inline

Definition at line 35 of file TWebMenuItem.h.

TWebMenuItem::TWebMenuItem ( const TWebMenuItem rhs)
inline

Definition at line 36 of file TWebMenuItem.h.

virtual TWebMenuItem::~TWebMenuItem ( )
virtualdefault

Member Function Documentation

const std::string& TWebMenuItem::GetExec ( ) const
inline

Returns execution string for the menu item

Definition at line 50 of file TWebMenuItem.h.

References fExec.

const std::string& TWebMenuItem::GetName ( ) const
inline

Returns menu item name

Definition at line 47 of file TWebMenuItem.h.

References fName.

void TWebMenuItem::SetClassName ( const std::string &  clname)
inline

Set class name, to which method belons to

Definition at line 44 of file TWebMenuItem.h.

Referenced by TWebMenuItems::AddChkMenuItem(), TWebMenuItems::AddMenuItem(), and TWebMenuItems::PopulateObjectMenu().

void TWebMenuItem::SetExec ( const std::string &  exec)
inline

Set execution string with all required arguments, which will be executed when menu item is selected

Definition at line 41 of file TWebMenuItem.h.

Referenced by TWebMenuItems::AddChkMenuItem(), TWebMenuItems::AddMenuItem(), and TWebMenuItems::PopulateObjectMenu().

Member Data Documentation

std::string TWebMenuItem::fClassName
protected

Definition at line 32 of file TWebMenuItem.h.

std::string TWebMenuItem::fExec
protected

Definition at line 31 of file TWebMenuItem.h.

Referenced by GetExec().

std::string TWebMenuItem::fName
protected

Definition at line 29 of file TWebMenuItem.h.

Referenced by GetName().

std::string TWebMenuItem::fTitle
protected

Definition at line 30 of file TWebMenuItem.h.


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