#include <DQM/TrackerCommon/interface/ConfigBox.h>
Public Member Functions | |
ConfigBox (std::string the_url, std::string top, std::string left) | |
ConfigBox (std::string the_url, std::string top, std::string left) | |
void | printHTML (xgi::Output *out) |
void | printHTML (xgi::Output *out) |
~ConfigBox () | |
~ConfigBox () | |
Private Attributes | |
std::string | callback |
Submitting the information of this box should result in an attempt to connect to a new collector according to the information submitted.
Definition at line 16 of file ConfigBox.h.
ConfigBox::ConfigBox | ( | std::string | the_url, | |
std::string | top, | |||
std::string | left | |||
) | [inline] |
Definition at line 24 of file ConfigBox.h.
References callback.
00024 : WebElement(the_url, top, left) 00025 { 00026 callback = "Configure"; 00027 }
ConfigBox::~ConfigBox | ( | ) | [inline] |
ConfigBox::ConfigBox | ( | std::string | the_url, | |
std::string | top, | |||
std::string | left | |||
) | [inline] |
Definition at line 24 of file ConfigBox.h.
References callback.
00024 : WebElement(the_url, top, left) 00025 { 00026 callback = "Configure"; 00027 }
ConfigBox::~ConfigBox | ( | ) | [inline] |
void ConfigBox::printHTML | ( | xgi::Output * | out | ) | [virtual] |
Implements WebElement.
void ConfigBox::printHTML | ( | xgi::Output * | out | ) | [virtual] |
Implements WebElement.
Definition at line 3 of file ConfigBox.cc.
References lat::endl(), WebElement::get_pix_left(), WebElement::get_pix_top(), WebElement::get_url(), iggi_31X_cfg::input, edm::table, and getDQMSummary::td.
00004 { 00005 std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top(); 00006 *out << cgicc::div().set("style", position.c_str()) << std::endl; 00007 *out << cgicc::form().set("name", "ConfigurationForm") << std::endl; 00008 *out << cgicc::table().set("border", "0") << std::endl; 00009 *out << cgicc::tr() 00010 << cgicc::td() << "Hostname:" << cgicc::td() 00011 << cgicc::td() << cgicc::input().set("type", "text").set("name", "Hostname") << cgicc::td() 00012 << cgicc::tr() << std::endl; 00013 *out << cgicc::tr() 00014 << cgicc::td() << "Port:" << cgicc::td() 00015 << cgicc::td() << cgicc::input().set("type", "text").set("name", "Port") << cgicc::td() 00016 << cgicc::tr() << std::endl; 00017 *out << cgicc::tr() 00018 << cgicc::td() << "Client Name:" << cgicc::td() 00019 << cgicc::td() << cgicc::input().set("type", "text").set("name", "Name") << cgicc::td() 00020 << cgicc::tr() << std::endl; 00021 00022 std::string js_command = "submitConfigure('" + get_url() + "', form)"; 00023 *out << cgicc::tr() 00024 << cgicc::td() << cgicc::input().set("type", "button").set("value", "(Re)configure!").set("onClick", js_command) << cgicc::td() 00025 << cgicc::tr() << std::endl; 00026 *out << cgicc::table() << std::endl; 00027 *out << cgicc::form() << std::endl; 00028 *out << cgicc::div() << std::endl; 00029 }
std::string ConfigBox::callback [private] |