CMS 3D CMS Logo

ConfigBox Class Reference

This is the class that should be instantiated in case the user wants to have a box that resets the configuration of the DQM client. More...

#include <DQM/TrackerCommon/interface/ConfigBox.h>

Inheritance diagram for ConfigBox:

WebElement WebElement

List of all members.

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


Detailed Description

This is the class that should be instantiated in case the user wants to have a box that resets the configuration of the DQM client.

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.


Constructor & Destructor Documentation

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]

Definition at line 28 of file ConfigBox.h.

00029     {
00030     }

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]

Definition at line 28 of file ConfigBox.h.

00029     {
00030     }


Member Function Documentation

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 }


Member Data Documentation

std::string ConfigBox::callback [private]

Definition at line 20 of file ConfigBox.h.

Referenced by ConfigBox().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:44 2009 for CMSSW by  doxygen 1.5.4