Logo ROOT  
Reference Guide
TWebMenuItem Class Reference

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

Definition at line 30 of file TWebMenuItem.h.

Public Member Functions

 TWebMenuItem (const std::string &name, const std::string &title)
 
 TWebMenuItem (const TWebMenuItem &rhs)
 
virtual ~TWebMenuItem ()=default
 
const std::string & GetExec () const
 Returns execution string for the menu item. More...
 
const std::string & GetName () const
 Returns menu item name. More...
 
void SetClassName (const std::string &clname)
 Set class name, to which method belons to
More...
 
void SetExec (const std::string &exec)
 Set execution string with all required arguments, which will be executed when menu item is selected
More...
 

Protected Attributes

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

#include <TWebMenuItem.h>

Inheritance diagram for TWebMenuItem:
[legend]

Constructor & Destructor Documentation

◆ TWebMenuItem() [1/2]

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

Definition at line 38 of file TWebMenuItem.h.

◆ TWebMenuItem() [2/2]

TWebMenuItem::TWebMenuItem ( const TWebMenuItem rhs)
inline

Definition at line 39 of file TWebMenuItem.h.

◆ ~TWebMenuItem()

virtual TWebMenuItem::~TWebMenuItem ( )
virtualdefault

Member Function Documentation

◆ GetExec()

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

Returns execution string for the menu item.

Definition at line 53 of file TWebMenuItem.h.

◆ GetName()

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

Returns menu item name.

Definition at line 50 of file TWebMenuItem.h.

◆ SetClassName()

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

Set class name, to which method belons to

Definition at line 47 of file TWebMenuItem.h.

◆ SetExec()

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 44 of file TWebMenuItem.h.

Member Data Documentation

◆ fClassName

std::string TWebMenuItem::fClassName
protected

Definition at line 35 of file TWebMenuItem.h.

◆ fExec

std::string TWebMenuItem::fExec
protected

Definition at line 34 of file TWebMenuItem.h.

◆ fName

std::string TWebMenuItem::fName
protected

Definition at line 32 of file TWebMenuItem.h.

◆ fTitle

std::string TWebMenuItem::fTitle
protected

Definition at line 33 of file TWebMenuItem.h.

Libraries for TWebMenuItem:
[legend]

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