![]() |
![]() |
#include <DQM/TrackerCommon/interface/ContentViewer.h>
Public Member Functions | |
ContentViewer (std::string the_url, std::string top, std::string left) | |
position of the widget | |
ContentViewer (std::string the_url, std::string top, std::string left) | |
position of the widget | |
void | printHTML (xgi::Output *out) |
void | printHTML (xgi::Output *out) |
void | printSelectHTML (xgi::Output *out, std::string name, std::string onchange) |
void | printSelectHTML (xgi::Output *out, std::string name, std::string onchange) |
~ContentViewer () | |
~ContentViewer () |
Definition at line 14 of file ContentViewer.h.
ContentViewer::ContentViewer | ( | std::string | the_url, | |
std::string | top, | |||
std::string | left | |||
) | [inline] |
position of the widget
top | url of the application |
Definition at line 20 of file ContentViewer.h.
00022 : WebElement(the_url, top, left) 00023 { 00024 }
ContentViewer::~ContentViewer | ( | ) | [inline] |
ContentViewer::ContentViewer | ( | std::string | the_url, | |
std::string | top, | |||
std::string | left | |||
) | [inline] |
position of the widget
top | url of the application |
Definition at line 20 of file ContentViewer.h.
00022 : WebElement(the_url, top, left) 00023 { 00024 }
ContentViewer::~ContentViewer | ( | ) | [inline] |
void ContentViewer::printHTML | ( | xgi::Output * | out | ) | [virtual] |
Implements WebElement.
void ContentViewer::printHTML | ( | xgi::Output * | out | ) | [virtual] |
Implements WebElement.
Definition at line 4 of file ContentViewer.cc.
References lat::endl(), WebElement::get_pix_left(), WebElement::get_pix_top(), printSelectHTML(), and edm::table.
00005 { 00006 std::string open_command = "makeContentViewerRequest()"; 00007 std::string view_or_unview_command = "updateContentViewerNoRequest()"; 00008 std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top(); 00009 00010 *out << cgicc::div().set("style", position.c_str()) << std::endl; 00011 *out << cgicc::form().set("name", "ContentViewerForm").set("id", "ContentViewerForm") << std::endl; 00012 *out << cgicc::table() << std::endl; 00013 00014 printSelectHTML(out, "Open", open_command); 00015 printSelectHTML(out, "View", view_or_unview_command); 00016 printSelectHTML(out, "Unview", view_or_unview_command); 00017 00018 *out << cgicc::table() << std::endl; 00019 *out << cgicc::form() << std::endl; 00020 *out << cgicc::div() << std::endl; 00021 }
void ContentViewer::printSelectHTML | ( | xgi::Output * | out, | |
std::string | name, | |||
std::string | onchange | |||
) |
void ContentViewer::printSelectHTML | ( | xgi::Output * | out, | |
std::string | name, | |||
std::string | onchange | |||
) |
Definition at line 23 of file ContentViewer.cc.
References lat::endl(), btag::LeptonSelector::option(), dummy::select(), and getDQMSummary::td.
Referenced by printHTML().
00024 { 00025 *out << cgicc::tr() << std::endl 00026 << cgicc::td() << std::endl 00027 << name << ":" << std::endl 00028 << cgicc::td() << std::endl; 00029 00030 *out << cgicc::td() << std::endl; 00031 00032 // if this is the "Open" menu, it should contain a "top" option 00033 if (name == "Open") 00034 { 00035 *out << cgicc::select().set("name", name).set("id", name).set("onchange", onchange) << std::endl; 00036 *out << cgicc::option().set("value", "").set("selected") << cgicc::option() << std::endl; 00037 *out << cgicc::option().set("value", "top") << "top" << cgicc::option() << std::endl; 00038 *out << cgicc::select() << std::endl; 00039 } 00040 else if (name != "Open") 00041 { 00042 *out << cgicc::select().set("name", name).set("id", name).set("onchange", onchange) << std::endl; 00043 *out << cgicc::option().set("value", "").set("selected") << cgicc::option() << std::endl; 00044 *out << cgicc::select() << std::endl; 00045 } 00046 00047 *out << cgicc::td() << std::endl; 00048 00049 *out << cgicc::tr() << std::endl; 00050 }