Commit 4170b1c7 authored by bpandey's avatar bpandey

Implement view option as per client


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@34886 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4880bb69
.dataGridWidget {
/* border: solid 1px black; */
width: 100%;
line-height: 29px;
text-align: left;
border-collapse: separate;
border-spacing: 0;
border-radius: 2px;
background-color: white;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.dataGridFirstColumn {
border-left: 1px solid #d2d2d2;
}
.dataGridLastColumn {
border-right-color: #d2d2d2;
}
.dataGridFooter {
/*height: 1px;*/
/*border-top: 2px solid #6f7277;*/
height: 0px;
border: none;
padding: 3px 15px;
text-align: left;
color: #4b4a4a;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
white-space: nowrap;
}
.dataGridHeader {
line-height: 29px;
padding: 0 10px;
color: white;
text-shadow: 0 1px rgba(0, 0, 0, 0.2);
border-width: 1px 1px 1px 0px;
border-style: solid;
border-color: #4bc1d2 #13AEC4 #5CCADA;
background-color: #4bc1d2;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(0.6, #4BC1D2), color-stop(1, #5ADAEC) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
text-rendering: optimizeLegibility;
font-size: 12px;
}
.dataGridCell {
line-height: 29px;
padding: 0 10px;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
text-shadow: 0 1px white;
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridFirstColumnFooter {
}
.dataGridFirstColumnHeader {
border-left-width: 1px;
border-top-left-radius: 3px;
}
.dataGridLastColumnFooter {
}
.dataGridLastColumnHeader {
border-top-right-radius: 3px;
}
.dataGridSortableHeader {
cursor: pointer;
}
.dataGridSortableHeader:hover {
color: white;
}
.dataGridSortedHeaderAscending {
}
.dataGridSortedHeaderDescending {
}
.dataGridEvenRow {
/* background: #ffffff; */
background-color: #f9f9f9;
}
.dataGridEvenRowCell {
/* border: selectionBorderWidth solid #ffffff; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridOddRow {
background: #ffffff;
}
.dataGridOddRowCell {
/* border: selectionBorderWidth solid #f3f7fb; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridHoveredRow {
/* background: #d7dde8; */
background-color: #F4F4F4;
}
.dataGridHoveredRowCell {
/* border: selectionBorderWidth solid #eee; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridKeyboardSelectedRow {
background: #4EBD4A repeat-x 0 -100px !important;
}
.dataGridKeyboardSelectedRowCell {
/* border: selectionBorderWidth solid #ffc; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridSelectedRow {
background-color: blue;/*swati #2087fc*/
color: white !important;
cursor: pointer;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
/* text-shadow: 0 1px 1px rgba(255, 255, 255, .5); */
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridSelectedRowCell {
border: none;
color: white !important;
}
.dataGridKeyboardSelectedCell {
/* border: selectionBorderWidth solid #d7dde8; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
/*For temp CSS*/
.dataGridSelectedRow div,
.dataGridSelectedRow td {
color: white !important;
}
.dataGridSortableHeader div,
.dataGridSortableHeader td,
.dataGridSortableHeader:hover div,
.dataGridSortableHeader:hover td {
color: white !important;
}
\ No newline at end of file
.dataGridWidget {
/* border: solid 1px black; */
width: 100%;
line-height: 29px;
text-align: left;
border-collapse: separate;
border-spacing: 0;
border-radius: 2px;
background-color: white;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.dataGridFirstColumn {
border-left: 1px solid #d2d2d2;
}
.dataGridLastColumn {
border-right-color: #d2d2d2;
}
.dataGridFooter {
/*height: 1px;*/
/*border-top: 2px solid #6f7277;*/
height: 0px;
border: none;
padding: 3px 15px;
text-align: left;
color: #4b4a4a;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
white-space: nowrap;
}
.dataGridHeader {
line-height: 29px;
padding: 0 10px;
/*color: #2087fc;*/
color:rgb(70, 70, 70) !important;
/*text-shadow: 0 1px rgba(0, 0, 0, 0.2);*/
text-shadow: 0 1px rgba(255,255,255,0.2);
border-width: 1px 1px 1px 0px;
border-style: solid;
border-color: #D3D3D3 #DBDBDB #EBE9E9;
background-color: #DBDBDB;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#E2E2E2 60%"), literal("#FFFFFF 100%") );
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top,literal("#E2E2E2 60%"), literal("#FFFFFF 100%") );
/* Opera */
background-image: -o-linear-gradient(top, literal("#E2E2E2 60%"), literal("#FFFFFF 100%") );
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(.60, #E2E2E2), color-stop(1, #FFFFFF));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#E2E2E2 60%"), literal("#FFFFFF 100%") );
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#E2E2E2 60%"), literal("#FFFFFF 100%") );
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
text-rendering: optimizeLegibility;
font-size: 12px;
}
.dataGridCell {
line-height: 29px;
padding: 0 10px;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
text-shadow: 0 1px white;
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridFirstColumnFooter {
}
.dataGridFirstColumnHeader {
border-left-width: 1px;
border-top-left-radius: 3px;
}
.dataGridLastColumnFooter {
}
.dataGridLastColumnHeader {
border-top-right-radius: 3px;
}
.dataGridSortableHeader {
cursor: pointer;
}
.dataGridSortableHeader:hover {
/*color: #2087fc;*/
color:rgb(70, 70, 70) !important;
}
.dataGridSortedHeaderAscending {
}
.dataGridSortedHeaderDescending {
}
.dataGridEvenRow {
/* background: #ffffff; */
background-color: #f9f9f9;
}
.dataGridEvenRowCell {
/* border: selectionBorderWidth solid #ffffff; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridOddRow {
background: #ffffff;
}
.dataGridOddRowCell {
/* border: selectionBorderWidth solid #f3f7fb; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridHoveredRow {
/* background: #d7dde8; */
background-color: #f4f4f4;
//background-color: red;
}
.dataGridHoveredRowCell {
/* border: selectionBorderWidth solid #eee; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridKeyboardSelectedRow {
/* background: #ffc; */
}
.dataGridKeyboardSelectedRowCell {
/* border: selectionBorderWidth solid #ffc; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridSelectedRow {
background-color: #2087fc;
color: white !important;
cursor: pointer;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
/* text-shadow: 0 1px 1px rgba(255, 255, 255, .5); */
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridSelectedRowCell {
border: none;
color: white !important;
}
.dataGridKeyboardSelectedCell {
/* border: selectionBorderWidth solid #d7dde8; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
/*For temp CSS*/
.dataGridSelectedRow div,
.dataGridSelectedRow td {
color: white !important;
}
.dataGridSortableHeader div,
.dataGridSortableHeader td,
.dataGridSortableHeader:hover div,
.dataGridSortableHeader:hover td {
/*color: #2087fc !important;*/
color:rgb(70, 70, 70) !important;
}
\ No newline at end of file
.dataGridWidget {
/* border: solid 1px black; */
width: 100%;
line-height: 29px;
text-align: left;
border-collapse: separate;
border-spacing: 0;
border-radius: 2px;
background-color: white;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.dataGridFirstColumn {
border-left: 1px solid #d2d2d2;
}
.dataGridLastColumn {
border-right-color: #d2d2d2;
}
.dataGridFooter {
/* Changed by Reema on 16/05/14[Theme implementation] */
/* height: 1px; */
height: 0px;
border: none;
padding: 3px 15px;
text-align: left;
color: #4b4a4a;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
white-space: nowrap;
/* Changed by Reema on 16/05/14[Theme implementation]-End */
}
.dataGridHeader {
line-height: 29px;
padding: 0 10px;
color: white;
text-shadow: 0 1px rgba(0, 0, 0, 0.2);
border-width: 1px 1px 1px 0px;
border-style: solid;
/* Changed by Reema on 16/05/14[Theme implementation] */
border-color: #40cf40 #7FF87F #baffba !important;
background-color: #40cf40 !important;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#40CF40 60%"), literal("#baffba 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#40CF40 60%"), literal("#baffba 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#40CF40 60%"), literal("#baffba 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(0.6, #40CF40), color-stop(1, #baffba) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#40CF40 60%"), literal("#baffba 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#40CF40 60%"), literal("#baffba 100%"));
/* Changed by Reema on 16/05/14[Theme implementation]-End */
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
text-rendering: optimizeLegibility;
font-size: 12px;
}
.dataGridCell {
line-height: 29px;
padding: 0 10px;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
text-shadow: 0 1px white;
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridFirstColumnFooter {
}
.dataGridFirstColumnHeader {
border-left-width: 1px;
border-top-left-radius: 3px;
}
.dataGridLastColumnFooter {
}
.dataGridLastColumnHeader {
border-top-right-radius: 3px;
}
.dataGridSortableHeader {
cursor: pointer;
}
.dataGridSortableHeader:hover {
color: white;
}
.dataGridSortedHeaderAscending {
}
.dataGridSortedHeaderDescending {
}
.dataGridEvenRow {
/* background: #ffffff; */
background-color: #f9f9f9;
}
.dataGridEvenRowCell {
/* border: selectionBorderWidth solid #ffffff; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridOddRow {
background: #ffffff;
}
.dataGridOddRowCell {
/* border: selectionBorderWidth solid #f3f7fb; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridHoveredRow {
/* background: #d7dde8; */
background-color: #f4f4f4;
}
.dataGridHoveredRowCell {
/* border: selectionBorderWidth solid #eee; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridKeyboardSelectedRow {
/* background: #ffc; */
}
.dataGridKeyboardSelectedRowCell {
/* border: selectionBorderWidth solid #ffc; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridSelectedRow {
background-color: #2087fc;
color: white !important;
cursor: pointer;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
/* text-shadow: 0 1px 1px rgba(255, 255, 255, .5); */
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridSelectedRowCell {
border: none;
color: white !important;
}
.dataGridKeyboardSelectedCell {
/* border: selectionBorderWidth solid #d7dde8; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
/*For temp CSS*/
.dataGridSelectedRow div,
.dataGridSelectedRow td {
color: white !important;
}
.dataGridSortableHeader div,
.dataGridSortableHeader td,
.dataGridSortableHeader:hover div,
.dataGridSortableHeader:hover td {
color: white !important;
}
\ No newline at end of file
.dataGridWidget {
/* border: solid 1px black; */
width: 100%;
line-height: 29px;
text-align: left;
border-collapse: separate;
border-spacing: 0;
border-radius: 2px;
background-color: white;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.dataGridFirstColumn {
border-left: 1px solid #d2d2d2;
}
.dataGridLastColumn {
border-right-color: #d2d2d2;
}
.dataGridFooter {
/* Changed by Reema on 16/05/14[Theme implementation] */
/* height: 1px; */
height: 0px;
border: none;
padding: 3px 15px;
text-align: left;
color: #4b4a4a;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
white-space: nowrap;
/* Changed by Reema on 16/05/14[Theme implementation]-End */
}
.dataGridHeader {
line-height: 29px;
padding: 0 10px;
color: white;
text-shadow: 0 1px rgba(0, 0, 0, 0.2);
border-width: 1px 1px 1px 0px;
border-style: solid;
/* Changed by Reema on 16/05/14[Theme implementation] */
border-color: #FFE3AB #FDE8BF #FDEFD6 !important;
background-color: #FFB222 !important;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#FFB222 60%"), literal("#FFEBC0 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#FFB222 60%"), literal("#FFEBC0 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#FFB222 60%"), literal("#FFEBC0 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(0.6, #FFB222), color-stop(1, #FFEBC0) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#FFB222 60%"), literal("#FFEBC0 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#FFB222 60%"), literal("#FFEBC0 100%"));
/* Changed by Reema on 16/05/14[Theme implementation] */
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px rgba(0, 0, 0, 0.04);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
text-rendering: optimizeLegibility;
font-size: 12px;
}
.dataGridCell {
line-height: 29px;
padding: 0 10px;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
text-shadow: 0 1px white;
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridFirstColumnFooter {
}
.dataGridFirstColumnHeader {
border-left-width: 1px;
border-top-left-radius: 3px;
}
.dataGridLastColumnFooter {
}
.dataGridLastColumnHeader {
border-top-right-radius: 3px;
}
.dataGridSortableHeader {
cursor: pointer;
}
.dataGridSortableHeader:hover {
color: white;
}
.dataGridSortedHeaderAscending {
}
.dataGridSortedHeaderDescending {
}
.dataGridEvenRow {
/* background: #ffffff; */
background-color: #f9f9f9;
}
.dataGridEvenRowCell {
/* border: selectionBorderWidth solid #ffffff; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridOddRow {
background: #ffffff;
}
.dataGridOddRowCell {
/* border: selectionBorderWidth solid #f3f7fb; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridHoveredRow {
/* background: #d7dde8; */
background-color: #f4f4f4;
}
.dataGridHoveredRowCell {
/* border: selectionBorderWidth solid #eee; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridKeyboardSelectedRow {
/* background: #ffc; */
}
.dataGridKeyboardSelectedRowCell {
/* border: selectionBorderWidth solid #ffc; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
.dataGridSelectedRow {
background-color: #2087fc;
color: white !important;
cursor: pointer;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
/* text-shadow: 0 1px 1px rgba(255, 255, 255, .5); */
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-rendering: optimizeLegibility;
}
.dataGridSelectedRowCell {
border: none;
color: white !important;
}
.dataGridKeyboardSelectedCell {
/* border: selectionBorderWidth solid #d7dde8; */
border: none;
border-right: 1px solid #eee;
border-right-color: rgba(0, 0, 0, 0.07);
}
/*For temp CSS*/
.dataGridSelectedRow div,
.dataGridSelectedRow td {
color: white !important;
}
.dataGridSortableHeader div,
.dataGridSortableHeader td,
.dataGridSortableHeader:hover div,
.dataGridSortableHeader:hover td {
color: white !important;
}
\ No newline at end of file
@CHARSET "UTF-8";
table
{
width: 100% ;
}
.verticalSpaceHeading, .verticalSpaceGrap, .verticalSpaceFLTTbl
{
/* height: 10px; */
}
.heading
{
text-align: center;
font-weight: bold;
height: 100%;
padding-top: 5px;
}
.headingContainer
{
height: 25px;
background-color: #E7E7E7;
}
.mainGrpContnr
{
padding: 15px;
/* width: 30%; */
}
.fltTblContainer
{
padding: 20px;
}
.groupContainer
{
border-left: 1px solid #E7E7E7;
border-right: 1px solid #E7E7E7;
border-bottom: 1px solid #E7E7E7;
}
.filterContainer
{
height: 45px;
background-color: #CECECE;
}
.dockPanel
{
/*border: 1px solid #CECECE;*/
}
.filterAndScopeContainer
{
width: 100%;
height: 100%;
}
.filterTxt
{
width: 100%;
height: 20px;
}
.filterTxtContainer
{
padding-left: 10px;
}
* {
font-family: Helvetica sans-serif;
font-weight: bold;
/*font-size: 17pt;*/
font-size: normal;
}
.SliderPanel {
background: white;
}
.parentPanel {
}
.feedTableParent{
}
.feedTableVisible{
}
.feedTableHidden{
width: 0px;
}
.tabletDashBoardHeader{
width: 100%;
}
.tabletDashboardContainer{
width: 100%;
}
.dashboardComponent{
padding: 5px;
/*margin: 10px;
border: 1px solid rgba(0,0,0,0.5);
border-radius: 10px 10px 10px 10px;
background: rgba(0,0,0,0.25);
box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
-o-box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
-moz-box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
*/
}
.PanelLabel {
border-bottom: 1px solid rgb(217, 217, 217);
width:auto;
height: auto;
padding: 10px 2px 10px 2px;
table-layout: fixed;
}
.PanelLabel * {
white-space: nowrap;
overflow: visible;
text-overflow: ellipsis;
}
.PanelLabel table {
table-layout: fixed;
}
.FeedSelectPanel b {
font-size: inherit !important;
font-weight: inherit !important;
}
.last {
padding-bottom: 14px !important;
}
/*
@sprite .backButton {
gwt-image:'iPhoneBackButton';
}
@sprite .goButton {
gwt-image:'iPhoneButton';
size:auto;
}
*/
.button {
cursor: pointer;
font-size: 9pt;
font-weight: normal;
vertical-align: middle;
text-align:center;
padding-left:2px;
height: 29px;
line-height: 29px;
}
.busy {
background: url('%spinner%') no-repeat right !important;
}
.externalLink {
color: blue;
cursor: pointer;
text-decoration: underline;
}
.hasCommand {
background-color:white;
vertical-align:middle;
cursor: pointer;
width: auto;
}
.htmlViewFrameStyle {
width:100%;
border:thin;
background-color:grey;
overflow:scroll;
}
.wfpanelRefSeriesnRefId
{
font-size: large;
font-style: normal;
text-align:left;
}
.wfpanelSignFor{
font-size: small;
font-weight: 100;
text-align:left;
}
.wfpanelCreateDate{
font-size: large;
font-style: normal;
font-weight: bold;
text-align:right;
}
.wfpanelrow{
width:100%;
height:auto;
padding:0px;
margin:0px;
}
.labelInApproval
{
font-size: medium;
font-style: normal;
/*PPR 3-9-2011*/
color:black;
}
.dateLabelInApproval
{
font-size: medium;
font-style: normal;
color:black;
text-align: right;
}
.closeDialog
{
background:url(CloseButton.png) no-repeat;
height: 15px;
}
.entryVertPanelStyle{
height:40px;
width:100%;
padding:2px;
}
.wfpanel-Footer{
padding: 2px;
}
.labelSignFor{
font-size: small;
font-weight:lighter;
float:left;
position:absolute;
/*PPR 3-9-2011*/
color:black;
}
.loginText{
font-size: medium;
font-style: normal;
}
.loginText1{
font-size: medium;
font-style: normal;
}
.loginButton {
float: right;
border-radius: 8px;
}
.loginButton:HOVER {
background-color: #2E5C8A;
color: #ffffff;
cursor: pointer;
}
.E12favourite-list{
max-width:100%;
white-space:nowrap;
font-size:12pt;
cursor:pointer;
list-style: square;
padding-left:0px;
}
.E12favourite-list1{
max-width:100%;
white-space:nowrap;
font-size:8pt;
cursor:pointer;
list-style: square;
padding-left:0px;
font-weight:normal;
}
@sprite .iconListImage
{
gwt-image: 'logo';
}
.htmlData {
font-weight:lighter;
font-size: small;
font: lighter;
}
.label1{
font-weight:lighter;
font-size: medium;
text-align: left;
color:black;
}
.label2{
font-weight:lighter;
font-size: medium;
text-align: left;
color:black;
}
.textBox1{
font-weight:lighter;
font-size: small;
width: 100px;
border-style: solid;
}
.textBox2{
font-weight:lighter;
font-size: small;
width: 215px;
border-style: solid;
}
.textBox3{
font-weight:lighter;
font-size: small;
width: 330px;
border-style: solid;
}
.textBox4{
font-weight:lighter;
font-size: small;
width: 440px;
border-style: solid;
}
.textBox5{
font-weight:lighter;
font-size: small;
width: 552px;
border-style: solid;
}
.textReadOnly1{
font-weight:lighter;
font-size: small;
width: 100px;
border-style: solid;
color: blue;
}
.textReadOnly2{
font-weight:lighter;
font-size: small;
width: 215px;
border-style: solid;
color: blue;
}
.textReadOnly3{
font-weight:lighter;
font-size: small;
width: 330px;
border-style: solid;
color: blue;
}
.textReadOnly4{
font-weight:lighter;
font-size: small;
width: 440px;
border-style: solid;
color: blue;
}
.textReadOnly5{
font-weight:lighter;
font-size: small;
width: 552px;
border-style: solid;
color: blue;
}
.feedVertPnl
{
width: 100%;
}
.mainfeedStyle
{
font-size: medium;
font-style: normal;
font-weight:bold;
}
.subfeedStyle
{
font-size: small;
font-style: italic;
font-weight: bold ;
}
.dateBoxStyle
{
font-size: small;
font-style: normal;
font-weight:bold;
}
.widgetStyleDisable
{
font-size: small;
font-style: normal;
font-weight:bold;
color: blue;
}
.textBoxStyle
{
font-size: small;
font-style: normal;
font-weight:bold;
color: blue;
}
.listBoxStyle
{
font-size: small;
font-style: normal;
/*font-weight:bold;*/
}
.nonEditableStyle
{
background-color: #BEBEBE;
}
.gwt-ScrollTable
{
border-color: #aaa;
border-style: solid;
border-width: 1px 0px 1px 1px;
}
.gwt-ScrollTable .headerTable td
{
font-size: large;
font-style: normal;
font-weight:bold; /*#4682B4; #7198BA #8E9EB4 #B0C4DE*/
background: #8E9EB4
}
.gwt-ScrollTable .dataTable td,
.gwt-ScrollTable .headerTable td,
.gwt-ScrollTable .footerTable td
{
border-color: #100;
white-space: nowrap;
overflow: hidden;
}
.gwt-ScrollTable .headerTable td,
.gwt-ScrollTable .footerTable td
{
color: #fff;
font-size:15px;
white-space: nowrap;
clear: both;
width: 60px;
}
.gwt-ScrollTable .dataTable tr,
.gwt-ScrollTable .dataTable td
{
font-size:15px;
line-height:5px;
}
.gwt-ScrollTable .dataWrapper
{
height:10px;
}
.gwt-ScrollTable .dataTable tr.highlighted
{
background: #C3D9FF;
}
.gwt-ScrollTable .dataTable td.highlighted
{
background: #C3D9FF;
cursor: hand;
cursor: pointer;
}
.gwt-ScrollTable .dataTable tr.selected td
{
background: #FFFFAA; /**/
}
.formtitle
{
background-color : #E7E7E7 ; /*gray*/
font-size : Medium;
/*
font-color: #FF8F18 ; /*orange*/
vertical-align: middle;
horizontal-align: center;
margin-left:auto;
margin-right:auto;
}
.titleLabel
{
font-family: Helvetica sans-serif;
font-size: 17pt;
font-weight: bold;
color : #ffffff;
}
.authenTitle
{
font-family: Helvetica sans-serif;
font-size: 17pt;
font-weight: bold;
}
.feedTableHeader
{
font-size: large;
}
.titlePanelInFeed
{
font-size : large;
}
.advFeedTitle
{
font-size : small;
}
.brandsPanel{
border-bottom: 1px solid rgb(217, 217, 217);
border-left:0px;
border-right:0px;
border-top:0px;
width:auto;
height: auto;
padding: 5px 2px 5px 2px;
table-layout: fixed;
}
.brandsName{
font-family: Helvetica sans-serif;
font-size: 10pt;
font-weight: bold;
}
.feedBackLabel{
font-family: Helvetica sans-serif;
font-size: 10pt;
font-weight: lighter;
font-style: italic;
}
.gwt-Label
{
color : #ffffff;
}
.popHelpLabel
{
/*word-wrap : break-word;*/
font-size : small;
text-align: center;
}
.scanInputPadding-Detail
{
padding: 10px 10px 0px 0px;
}
.scanInputPadding-Feeds
{
padding: 10px 10px 0px;
}
.filterOptionContainerPanel
{
padding: 10px;
}
.filterOptionsButton
{
width: 100%;
background-color:#DDD;
border: 1px outset #DDD;
border-radius:3px;
}
.searchbox
{
height:44px;margin:0;width:100%;
background:
-webkit-gradient(linear,literal("0% 0%"),literal("0% 100%"),from(#f1f3f4),color-stop(3%,#e0e4e7),color-stop(50%,#c7cfd4),color-stop(51%,#bec7cd),color-stop(97%,#b4bec6),to(#8999a5));
background:
-moz-linear-gradient(top, #f1f3f4, literal("#e0e4e7 3%"), literal("#c7cfd4 50%"), literal("#bec7cd 51%"), literal("#b4bec6 97%"),#8999a5);
background:
-o-linear-gradient(top, #f1f3f4, literal("#e0e4e7 3%"), literal("#c7cfd4 50%"), literal("#bec7cd 51%"), literal("#b4bec6 97%"),#8999a5);
}
.searchboxform
{
height:24px;width:85%;border-width:4px 14px 1px 24px;display:block;position:relative;top:8px;margin:auto;
-webkit-border-image:url(images/searchBG.png) 4 14 1 24 ;
-moz-border-image:url(images/searchBG.png) 4 14 1 24 ;
-o-border-image:url(images/searchBG.png) 4 14 1 24 ;
}
.searchboxinput
{
border:0;height:18px;float:left;font-size:13px;padding:0;position:relative;top:2px;left:2px;width:100%;
-webkit-appearance:none;
}
.scanboxinput
{
background:transparent;border:0;height:18px;float:left;font-size:13px;padding:0;position:relative;top:2px;left:2px;width:100%;
-webkit-appearance:none;
}
.searchboxinputWaterMark
{
border:0;height:18px;float:left;font-size:13px;padding:0;position:absolute;top:2px;left:2px;width:100%;
-webkit-appearance:none;
color: #FF0000;
}
.searchboxformWaterMark
{
height:24px;width:85%;border-width:4px 14px 1px 24px;display:block;position:relative;top:8px;margin:auto;
-webkit-border-image:url(images/scanBG.png) 4 14 1 24 ;
-moz-border-image:url(images/scanBG.png) 4 14 1 24 ;
-o-border-image:url(images/scanBG.png) 4 14 1 24 ;
}
.ME12Feeds-optionsPanel
{
width: 100%;
}
.datePickerDay
{
padding: 10px;
}
.feedbackStyle
{
font-size: small;
font-family: Helvetica;
font-style :italic;
text-align: center;
margin-left: 10px;
}
.buttonPanel{
padding-left: 15px;
padding-right: 15px;
}
.scanLabel
{
color : black;
}
.changePasswordHeaderCaption
{
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
}
.changePasswordCloseBtn
{
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
text-align: center;
width : 70%;
border-radius:8px;
height: 20px;
border: 1px solid grey;
}
.changePasswordCloseBtn:HOVER{
background-color: #2E5C8A;
color : #ffffff;
cursor: pointer;
}
.changePasswordHeader {
width: 100%;
height: 37px;
padding:2px;
}
.appPanelLabel {
border-bottom: 1px solid rgb(217, 217, 217);
width: auto;
height: auto;
padding: 10px 2px 10px 2px;
table-layout: auto;
cursor: pointer;
}
.applicationPanel {
width: auto;
height: auto;
}
.applicationLabel {
color: black;
font-size: small;
font-style: normal;
white-space: nowrap;
}
.applicationDescLabel {
color: black;
font-size: small;
font-style: italic;
white-space: nowrap;
}
.okButton{
float: right;
width: 80px;
height:30px;
text-align: center;
border-radius:8px;
}
.okButton:HOVER{
background-color: #2E5C8A;
color : #ffffff;
cursor: pointer;
}
.addNewBtn {
font-size: large;
font-weight: bold;
vertical-align: middle;
text-align: center;
padding-left: 2px;
}
.descriptionLbl {
font-size: medium;
font-style: normal;
color: black;
}
.cancelBtn {
float: left;
border-radius:8px;
}
.cancelBtn:HOVER {
background-color: #2E5C8A;
color : #ffffff;
cursor: pointer;
}
.outerHeader {
height: 40px;
width : 100%;
overflow: hidden;
}
.outerFooter {
height: 40px;
width : 100%;
overflow: hidden;
}
.contents {
width:100%;
}
.gwt-SplitLayoutPanel-HDragger {
background: black center center no-repeat;
width: 1px;
}
/* As per Kandarp Sir for Textbox onFocus event*/
.outerHeader-onFocus {
height: 40px;
width: auto;
overflow: hidden;
}
.outerFooter-onFocus {
height: 40px;
width: auto;
overflow: hidden;
bottom: 0px;
}
.contents-onFocus {
width:100%;
padding-bottom: 40px;
}
.backgroundTexture
{
background: url( images/BackgroundTexture.jpg );
}
.userHtmlData
{
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.buildVersion
{
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: italic;
}
.bgGlass
{
-webkit-filter: blur(20px);
background-color: lightblue;
opacity: 0.85;
-moz-filter: blur(20px);
-o-filter: blur(20px);
-ms-filter: blur(20px);
filter: blur(20px);
}
.poupPanel-gwt-PopupPanel
{
background: transparent;
}
.close {
font-family: Arial, Helvetica, sans-serif;
font-size:large;
background: #606061;
color: #FFFFFF;
line-height: 25px;
position: absolute;
left: -12px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
cursor: pointer;
}
.close:hover { background: #00d9ff; }
.bubblebox {
position:relative;
padding:15px;
margin:1em 0 3em;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
background: #fff;
background:-webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#fff), to(#999));
background:-moz-linear-gradient(top, #fff, #999);
background:-o-linear-gradient(top, #fff, #999);
}
.bubblebox.top {
background:-webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#999), to(#fff));
background:-moz-linear-gradient(top, #999, #fff);
background:-o-linear-gradient(top, #999, #fff);
}
.bubblebox.topTablet {
background:-webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#999), to(#fff));
background:-moz-linear-gradient(top, #999, #fff);
background:-o-linear-gradient(top, #999, #fff);
}
/* creates triangle */
.bubblebox:after {
content:"";
display:block; /* reduce the damage in FF3.0 */
position:absolute;
bottom:-15px; /* value = - border-top-width - border-bottom-width */
left:50px; /* controls horizontal position */
width:0;
height:0;
border-width:15px 15px 0; /* vary these values to change the angle of the vertex */
border-style:solid;
border-color:#999 transparent;
}
.bubblebox.top:after {
top:-15px; /* value = - border-top-width - border-bottom-width */
right:19px; /* controls horizontal position */
bottom:auto;
left:auto;
border-width:0 15px 15px; /* vary these values to change the angle of the vertex */
border-color: #999 transparent;
}
.bubblebox.topTablet:after {
top:-15px; /* value = - border-top-width - border-bottom-width */
right:82px; /* controls horizontal position */
bottom:auto;
left:auto;
border-width:0 15px 15px; /* vary these values to change the angle of the vertex */
border-color: #999 transparent;
}
.awesome, .awesome:visited {
background: #222 url(alert-overlay.png) repeat-x;
display: inline-block;
padding: 5px 10px 6px;
color: #fff;
text-decoration: none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer;
}
.awesome:hover { background-color: #111; color: #fff; }
.awesome:active { top: 1px; }
.small.awesome, .small.awesome:visited { font-size: 11px; padding: ; }
.awesome, .awesome:visited,
.medium.awesome, .medium.awesome:visited { font-size: 13px; font-weight: bold; line-height: 1; text-shadow: 0 -1px 1px rgba(0,0,0,0.25); }
.large.awesome, .large.awesome:visited { font-family: Arial, Helvetica, sans-serif; font-size: 14px; padding: 8px 14px 9px; }
.green.awesome, .green.awesome:visited { background-color: #91bd09; }
.green.awesome:hover { background-color: #749a02; }
.blue.awesome, .blue.awesome:visited { background-color: #2daebf; }
.blue.awesome:hover { background-color: #007d9a; }
.red.awesome, .red.awesome:visited { background-color: #971B1B; }
.red.awesome:hover { background-color: #681212; }
.magenta.awesome, .magenta.awesome:visited { background-color: #a9014b; }
.magenta.awesome:hover { background-color: #630030; }
.orange.awesome, .orange.awesome:visited { background-color: #ff5c00; }
.orange.awesome:hover { background-color: #d45500; }
.yellow.awesome, .yellow.awesome:visited { background-color: #ffb515; }
/* Added by Dnyaneshwar on 25-DEC-2012 [As per Kandarp Sir : Changed look & feel of change password user interface ] End*/
/*START: Added by Harshada on 2-JAN-2013 [As per Kandarp Sir : Changed look & feel of Password popup in user connections] */
.passwordBubbleBox {
position: relative;
padding: 15px;
margin: 1em 0 3em;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
background: #fff;
background: -webkit-gradient(linear, literal("left top"),
literal("left bottom"), from(#fff), to(#999) );
background: -moz-linear-gradient(top, #fff, #999);
background: -o-linear-gradient(top, #fff, #999);
}
/*END: Added by Harshada on 2-JAN-2013 [As per Kandarp Sir : Changed look & feel of Password popup in user connections] */
/* Added by Dnyaneshwar on 25-DEC-2012 [As per Kandarp Sir : Changed look & feel of change password user interface ] End*/
/* Added by Dnyaneshwar on 4-JAN-2013 [ As per Kandarp Sir : Changed look & feel of wizard all buttons ] Start */
.navigationFooter
{
text-align: center;
}
.homeIcon
{
height: 30px;
width:43px;
cursor: pointer;
}
.filterIcon
{
width:45px;
cursor:pointer;
height: 30px;
}
.nextButtonIcon:active,
.prevButtonIcon:active,
.finishButtonIcon:active,
.cancelButtonIcon:active,
.doneButtonIcon:active,
.deselectButtonIcon:active,
.userImage:active,
.refreshIcon:active,
.countWorkflow:active,
.rejectButtonIcon:active,
.deleteIcon:active,
.addIcon:active
{
width: 30px;
height: 30px;
background-color: rgba(255, 255, 255, .5);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
border-color:rgba(255, 255, 255, .75);
-webkit-box-shadow: 0px 0px 15px 5px rgba(255, 255, 255, .75);
-moz-box-shadow: 0px 0px 15px 5px rgba(255, 255, 255, .75);
box-shadow: 0px 0px 15px 5px rgba(255, 255, 255, .75);
}
.countWorkflow
{
color: #FFFFFF;
font-weight: bold;
left: 18px;
position:absolute;
top:1px;
cursor: pointer;
}
.filterButton
{
border: none;
}
.errlabel{
color: maroon;
font-size: medium;
font-weight: bold;
font-style: italic;
}
.stackHeaderStyle {
background: rgb(170, 170, 170);
box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-o-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
-webkit-box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-moz-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
border-bottom: 1px solid rgb(243, 243, 243);
}
.stackHeaderStyle-active {
background: #4bc1d2 !important;
box-shadow: 0 1px 2px #4bc1d2, inset 0 3px 7px #b6f9ff;
-o-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
-webkit-box-shadow: 0 1px 2px #4bc1d2, inset 0 3px 7px #b6f9ff;
-moz-box-shadow: 0 1px 2px #4bc1d2, inset 0 3px 7px #b6f9ff;
}
/* Added by Reema on 21/04/14 for Theme implementation */
.stackLayoutStyle{
background-image: -webkit-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%"))!important;
background-image: -o-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%")) !important;
background-image: -moz-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%")) !important;
background-image: -ms-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%"))!important;
background-image: linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%")) !important;
background-color: #b0dbe3 !important;
border-left: 1px solid rgb(203, 226, 218);
border-right: 1px solid rgb(203, 226, 218);
border-bottom: 1px solid;
}
/* Added by Reema on 21/04/14 for Theme implementation-End */
/* Added by Reema on 25/04/14 :The color of icons should be blue (search, search option and add new). On mouseover it should become white*/
@sprite .addButton{
gwt-image:'addButton' !important;
outline: none !important;
}
@sprite .addButton:hover{
gwt-image:'addButtonBlue' !important;
outline: none !important;
}
@sprite .searchButton{
gwt-image:'searchButton' !important;
outline: none !important;
}
@sprite .searchButton:hover{
gwt-image:'searchButtonBlue' !important;
outline: none !important;
}
@sprite .searchOptionButton {
gwt-image:'searchOptionButton' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
@sprite .searchOptionButton:hover {
gwt-image:'searchOptionButtonBlue' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
/* Added by Reema on 18/04/14 */
@sprite .helpOptButton{
gwt-image:'helpOption' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .helpOptButton:hover{
gwt-image:'helpOptionBlue' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton{
gwt-image:'docHelp' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton:hover{
gwt-image:'docHelpBlue' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
.e12AdvSearchPnl{
background-color: #4bc1d2 !important;
}
/* Added by Reema on 18/04/14-End */
.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleCenter {
cursor: default;
background: #4bc1d2 !important;
COLOR: WHITE;
-webkit-box-shadow: 0 1px 2px #2087fc, inset 0 1px 4px #c7e1ff;
}
.collabPostDiscriptionPanel
{
font-family: arial;
font-size: small;
font-style: normal;
overflow: scroll;
padding: 2px;
white-space: normal;
width: 100px;
}
.collabHeaderPanel
{
width: 100%;
background:#18BBD1;
}
.collabGroupDiscription
{
color: white;
}
.collabGroupName
{
font-size: large;
/* font-size: medium; */
font-style: normal;
font-weight:bold;
color: white;
}
.collabPostDiscription
{
font-family: Helvetica sans-serif;
font-size: small;
font-style: normal;
font-weight: normal;
word-wrap: break-word;
white-space: normal;
}
.collabFeedInfoTable
{
border-bottom: 1px solid #D9D9D9;
height: auto;
padding-left: 2px;
table-layout: fixed;
width: 100%;
}
@sprite .mswordImage
{
gwt-image:'mswordImage';
}
@sprite .excelImage
{
gwt-image:'excelImage';
}
@sprite .pdfImage
{
gwt-image:'pdfImage';
}
.collabPostDate
{
font-family: Helvetica sans-serif;
font-size: x-small;
font-style: italic;
font-weight: normal;
word-wrap: break-word;
}
.collabPostName
{
font-family: Helvetica sans-serif;
font-size: small;
font-style: normal;
font-weight: normal;
word-wrap: break-word;
}
.collabAttachmentFileName
{
font-family: Helvetica sans-serif;
font-size: small;
font-style: italic;
font-weight: normal;
padding-left: 2px;
padding-right: 5px;
}
.collabAttachmentFileName:hover
{
cursor:pointer;
}
.collabDiscriptionPanel
{
overflow: auto;
padding-left: 5px;
}
.collabAttchmentInfoPanel
{
padding: 3px;
width:100%;
}
.collabIndicatingLable
{
font-family: Helvetica sans-serif;
font-size: x-small;
font-style: italic;
}
.collabPostDicriptionVPanel
{
width: 120px; //Added by lokesh rodge on 8-May-2013
/* width: 15%; */
word-wrap: break-word;
}
@sprite .defaultImage
{
gwt-image:'defaultImage';
}
/*
@sprite .postButton
{
cursor: pointer;
font-size: 9pt;
font-weight: normal;
vertical-align: middle;
text-align:center;
padding-left:2px;
height: 29px;
line-height: 29px;
gwt-image:'postButton';
size:auto;
}
*/
.imagePopupPanel
{
border-radius:10px;
}
.imagePanelGlassStyle
{
background-color: gray;
opacity: 0.5;
filter: alpha(opacity=50);
}
/* Ended By Mahesh Patidar */
.collabPostFeeds
{
padding-left: 2px;
table-layout: fixed;
width: 100%;
}
/* // Added by Reema on 19/03/2014 [for slider checkbox] */
.onoffswitch
{
margin-left: 15px;
display: inline-block;
vertical-align: top;
position: relative;
width: 58px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.onoffswitch>label
{
border-radius: 2px;
display: block;
position: relative;
height: 20px;
line-height: 20px;
font-size: 10px;
font-weight: bold;
color: #bbb;
text-align: center;
text-transform: uppercase;
background: white;
border: 2px solid #d9d9d9;
-webkit-transition: 0.15s ease-out;
-moz-transition: 0.15s ease-out;
-o-transition: 0.15s ease-out;
transition: 0.15s ease-out;
cursor: pointer;
}
.onoffswitch>label:before
{
content: attr(data-off);
position: absolute;
top: 0;
right: 3px;
width: 33px;
}
.onoffswitch>label:after
{
content: '';
display: block;
margin: 2px;
width: 17px;
height: 17px;
background: #ccc;
/* border-radius: 13px; */
}
.onoffswitch>input
{
position: absolute;
top: 0;
left: 0;
width: inherit;
height: inherit;
opacity: 0;
-webkit-appearance: none;
}
.switch>input:focus
{
outline: none;
}
.onoffswitch>input:focus+label
{
color: #10a4ee;
border-color: #3fb6f2;
}
.onoffswitch>input:focus+label:after
{
background: #3fb6f2;
}
.onoffswitch>input:checked+label
{
padding-left: 34px;
color: white;
background: #3fb6f2;
border-color: #3fb6f2;
}
.onoffswitch>input:checked+label:before
{
content: attr(data-on);
left: 1px;
}
.onoffswitch>input:checked+label:after
{
margin: 1px;
width: 18px;
height: 18px;
background: white;
}
.onoffswitch>input:checked:focus+label
{
background: #10a4ee;
border-color: #10a4ee;
}
.onoffswitch-green>input:checked+label
{
background: #4ebd4a;
border-color: #4ebd4a;
}
.onoffswitch-green>input:checked:focus+label
{
background: #3c9b39;
border-color: #3c9b39;
}
/* For Colorful Radio Buttons */
.hidden-radio{
display: none;
}
.radio-color-style{
height: 25px;
width: 25px;
display: inline-block;
border-radius: 50%;
margin-left: 10px;
margin-top: 10px;
cursor: pointer;
}
.radio-color-style:after{
content: '';
}
input[name="radio-color-group"]:checked + .radio-color-style:after{
margin-top: -6px;
margin-left: -6px;
height: 35px;
width: 35px;
display: inline-block;
border-radius: 50%;
border: thin solid;
}
.radio-theme-orange{
border: 1px solid #ef9c00;
background: #ef9c00;
color: #ef9c00;
}
.radio-theme-green{
border: 1px solid green;
background: green;
color: green;
}
.radio-theme-gray{
border: 1px solid gray;
background: gray;
color: gray;
}
.radio-theme-blue{
border: 1px solid #4bc1d2;
background: #4bc1d2;
color: #4bc1d2;
}
.radio-theme-magenta{
border: 1px solid magenta;
background: magenta;
color: magenta;
}
/* commented by Reema on 25/04/14 */
/*
@sprite .addButton
{
width:20px;
height:20px;
gwt-image:'addButton';
}
.addNewLabel
{
font-family:arial;
font-size:14px;
color:white;
cursor:pointer;
}
*/
\ No newline at end of file
body,table {
font-size: small;
}
body {
font-family: Helvetica, Arial, sans-serif;
color: #000;
background: #fff;
}
a:link,a:visited,a:hover,a:active {
color: #000;
}
/* Dialog boxes */
.dialogTopLeftInner,.dialogMiddleLeftInner,.dialogBottomLeftInner,.dialogTopRightInner,.dialogMiddleRightInner,.dialogBottomRightInner
{
display: none;
}
.gwt-DialogBox {
background-color: white;
border: 1px solid #666;
z-index: 2;
}
.gwt-DialogBox .Caption {
background: #d3d6dd url(gradient_bg_th.png) repeat-x bottom left;
font-weight: bold;
text-shadow: #fff 0 2px 2px;
cursor: default;
padding: 5px 10px;
border-bottom: 1px solid #999;
text-align: left;
}
.gwt-DialogBox .dialogContent {
}
.gwt-DialogBox .gwt-Button {
margin: 10px;
}
.gwt-PopupPanelGlass {
background-color: #000;
opacity: 0.3;
filter: literal("alpha(opacity=30)");
z-index: 2;
}
/* GWT Tree */
.gwt-Tree {
}
.gwt-Tree .gwt-TreeItem {
padding: 0;
cursor: hand;
cursor: pointer;
display: block !important;
}
.gwt-Tree .gwt-TreeItem-selected {
background: #ccc;
}
.gwt-SplitLayoutPanel-HDragger {
background: white center center no-repeat;
cursor: col-resize;
}
.gwt-SplitLayoutPanel-VDragger {
background: white center center no-repeat;
cursor: col-resize;
}
.gwt-DisclosurePanel .content {
border-left: 0px solid #E8EEF7;
/* As per Kandarp sir */
/* margin-left: 6px; */
/* padding: 4px 0 4px 8px; */
margin-left: 10px;
padding: 10px;
}
.refreshButtonStyle {
float:right;
font-family: Verdana, Geneva, arial, sans-serif;
font-size: 9pt;
border: 1px solid #8ec1da;
background-color: #ddeef6;
border-radius: 10px;
-moz-border-radius: 10px;
-moz-box-shadow: 2px 2px 2px #8ec1da;
-webkit-box-shadow: 2px 2px 2px #8ec1da;
box-shadow: 2px 2px 2px #8ec1da;
color: #3985a8;
padding: 1px 9px;
cursor:pointer;
}
.refreshButtonStyle:hover {
border: 1px solid orange;
-moz-box-shadow: 2px 2px 2px orange;
-webkit-box-shadow: 2px 2px 2px orange;
box-shadow: 2px 2px 2px orange;
text-shadow: 0 1px #fff;
}
.refreshButtonStyle:active {
border: 1px solid #8ec1da;
-moz-box-shadow: 0px 0px 2px grey;
-webkit-box-shadow: 0px 0px 2px grey;
box-shadow: 0px 0px 2px grey;
text-shadow: 0 1px #fff;
color: #3985a8;
}
.refreshButtonStyle:disabled {
text-shadow: 0 1px #fff;
}
.searchOptnDisclzableVPnl
{
/*
border-style: ridge;
border-width: 0.8px;
background-color: #FBF5EF;
*/
margin: 1px;
padding: 20px;
/* As per Kandarp sir */
/* border: 1px solid rgba(0,0,0,0.5); */
/* border-radius: 10px 10px 10px 10px; */
/*As per KB Sir : To Removed Raised effect*/
/*
box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
-o-box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
-moz-box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
*/
}
.defaultTabCloseBtn
{
/* color: #7C7A7B; */
color: white;
}
.tabCloseBtn
{
color: #EB0527;
}
/*Added By Prajyot On 15-APR-13 [ WS3ABAS001-Look and Feel changes for Cloud. : Same as Mobile Look-n-feel changes done for welcome popup-panel] Start*/
.userHtmlData
{
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.buildVersion
{
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: italic;
}
.bgGlass
{
-webkit-filter: blur(20px);
background-color: lightblue;
opacity: 0.75;
-moz-filter: blur(20px);
-o-filter: blur(20px);
-ms-filter: blur(20px);
filter: blur(20px);
z-index: 1;
}
.poupPanel-gwt-PopupPanel
{
background: transparent;
}
.close {
font-family: Arial, Helvetica, sans-serif;
font-size:large;
background: #606061;
color: #FFFFFF;
line-height: 25px;
position: absolute;
left: -12px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
cursor: pointer;
}
.close:hover { background: #00d9ff; }
.bubblebox {
position:relative;
padding:15px;
margin:1em 0 3em;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
background: #fff;
/* background:-webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#fff), to(#999));
background:-moz-linear-gradient(top, #fff, #999);
background:-o-linear-gradient(top, #fff, #999); */
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Mozilla Firefox */
background-image: -moz-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Opera */
background-image: -o-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient( linear, literal("left top"), literal("left bottom"), color-stop(0, #999999), color-stop(1, #FFFFFF) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient( literal("to bottom"), literal("#999999 0%"), literal("#FFFFFF 100%") );
z-index: 1;
}
.bubblebox.top,
.bubbleBox.topTablet,
.bubbleBox-grad.top {
background: #fff;
/* background:-webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#999), to(#fff));
background:-moz-linear-gradient(top, #999, #fff);
background:-o-linear-gradient(top, #999, #fff); */
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Mozilla Firefox */
background-image: -moz-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Opera */
background-image: -o-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient( linear, literal("left top"), literal("left bottom"), color-stop(0, #999999), color-stop(1, #FFFFFF) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient( literal("to bottom"), literal("#999999 0%"), literal("#FFFFFF 100%") );
}
.bubbleBox-grad {
width: 475px;
position: relative;
padding: 15px;
margin: 1em 0 3em;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
background: #fff;
/* background: -webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#fff), to(#999) );
background: -moz-linear-gradient(top, #fff, #999);
background: -o-linear-gradient(top, #fff, #999); */
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Mozilla Firefox */
background-image: -moz-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Opera */
background-image: -o-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient( linear, literal("left top"), literal("left bottom"), color-stop(0, #999999), color-stop(1, #FFFFFF) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient( literal("to bottom"), literal("#999999 0%"), literal("#FFFFFF 100%") );
z-index: 1;
}
.bubbleBox-no-grad {
position: relative;
z-index: 1;
}
.bubbleBox-grad.bottom {
background: #fff;
/* background:-webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#999), to(#fff));
background:-moz-linear-gradient(top, #999, #fff);
background:-o-linear-gradient(top, #999, #fff); */
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient( top, literal("#FFFFFF 0%"), literal("#999999 100%") );
/* Mozilla Firefox */
background-image: -moz-linear-gradient( top, literal("#FFFFFF 0%"), literal("#999999 100%") );
/* Opera */
background-image: -o-linear-gradient( top, literal("#FFFFFF 0%"), literal("#999999 100%") );
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient( linear, literal("left top"), literal("left bottom"), color-stop(0, #FFFFFF), color-stop(1, #999999) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient( top, literal("#FFFFFF 0%"), literal("#999999 100%") );
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient( literal("to bottom"), literal("#FFFFFF 0%"), literal("#999999 100%") );
}
/* creates triangle */
.bubblebox:after,
.bubbleBox-grad:after {
content:"";
display:block; /* reduce the damage in FF3.0 */
position:absolute;
bottom:-15px; /* value = - border-top-width - border-bottom-width */
left:50px; /* controls horizontal position */
width:0;
height:0;
border-width:15px 15px 0; /* vary these values to change the angle of the vertex */
border-style:solid;
border-color:#999 transparent;
}
.bubblebox.top:after,
.bubbleBox-grad.top:after {
top:-15px; /* value = - border-top-width - border-bottom-width */
right:19px; /* controls horizontal position */
bottom:auto;
left:auto;
border-width:0 15px 15px; /* vary these values to change the angle of the vertex */
border-color: #999 transparent;
}
.bubbleBox-grad.bottom:after {
top:104px; /* value = - border-top-width - border-bottom-width */
right:35px; /* controls horizontal position */
bottom:auto;
left:auto;
border-width:15px 15px 0px; /* vary these values to change the angle of the vertex */
border-color: #999 transparent;
}
.bubblebox.topTablet:after {
top:-15px; /* value = - border-top-width - border-bottom-width */
right:82px; /* controls horizontal position */
bottom:auto;
left:auto;
border-width:0 15px 15px; /* vary these values to change the angle of the vertex */
border-color: #999 transparent;
}
.awesome, .awesome:visited {
background: #222 url(alert-overlay.png) repeat-x;
display: inline-block;
padding: 5px 10px 6px;
color: #fff;
text-decoration: none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer;
}
.awesome:hover { background-color: #111; color: #fff; }
.awesome:active { top: 1px; }
.small.awesome, .small.awesome:visited { font-size: 11px; padding: ; }
.awesome, .awesome:visited,
.medium.awesome, .medium.awesome:visited { font-size: 13px; font-weight: bold; line-height: 1; text-shadow: 0 -1px 1px rgba(0,0,0,0.25); }
.large.awesome, .large.awesome:visited { font-family: Arial, Helvetica, sans-serif; font-size: 14px; padding: 8px 14px 9px; }
.green.awesome, .green.awesome:visited { background-color: #91bd09; }
.green.awesome:hover { background-color: #749a02; }
.blue.awesome, .blue.awesome:visited { background-color: #2daebf; }
.blue.awesome:hover { background-color: #007d9a; }
.red.awesome, .red.awesome:visited { background-color: #971B1B; }
.red.awesome:hover { background-color: #681212; }
.magenta.awesome, .magenta.awesome:visited { background-color: #a9014b; }
.magenta.awesome:hover { background-color: #630030; }
.orange.awesome, .orange.awesome:visited { background-color: #ff5c00; }
.orange.awesome:hover { background-color: #d45500; }
.yellow.awesome, .yellow.awesome:visited { background-color: #ffb515; }
/*Added By Prajyot On 15-APR-13 [ WS3ABAS001-Look and Feel changes for Cloud. : Same as Mobile Look-n-feel changes done for welcome popup-panel] Ends*/
/*
* Added by Prajyot:
* Use for Action Buttons
*/
.button {
display: inline-block;
height: 28px;
margin: 5px;
padding: 0 16px;
color: #243140;
cursor: pointer;
line-height: 1;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 14px;
text-align: center;
text-shadow: 0 1px rgba(255, 255, 255, 0.2);
text-shadow: 0 1px 1px rgba(255, 255, 255, .5);
text-rendering: optimizeLegibility;
vertical-align: top;
background-color: #E5E7ED;
border: 0;
border-radius: 2px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.button:hover {
color: #243140;
background-color: #dcdfe7;
}
.button:active{
color: #1d2938;
background-color: #cdd1dc;
}
/*Green*/
.green-Btn {
position: relative;
color: white;
line-height: 28px;
text-decoration: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.08);
background-color: #4EBD4A;
}
.green-Btn:hover {
color: white;
background-color: #6bc868;
}
.green-Btn:active {
color: white;
background-color: #3c9b39;
}
/*Red*/
.red-Btn {
position: relative;
color: white;
line-height: 28px;
text-decoration: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.08);
background-color: #ee4f3d;
}
.red-Btn:hover {
color: white;
background-color: #f17163;
}
.red-Btn:active {
color: white;
background-color: #e42914;
}
/*Blue*/
.blue-Btn {
position: relative;
color: white;
line-height: 28px;
text-decoration: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.08);
background-color: #2daebf;
}
.blue-Btn:hover {
color: white;
background-color: #007d9a;
}
.blue-Btn:active {
color: white;
background-color: #2daebf;
}
.cocPanel {
height: auto;
position: relative;
color: white;
line-height: 28px;
text-decoration: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.08);
background-color: #4bc1d2 !important;
}
.cocPanel-Btn {
position: relative;
color: white;
line-height: 28px;
text-decoration: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.08);
background-color: #007d9a;
}
.cocPanel-Btn:hover {
color: white;
background-color: #2daebf;
}
.cocPanel-Btn:active {
color: white;
background-color: #007d9a;
}
.gwt-DisclosurePanel .header,
.gwt-DisclosurePanel .header a,
.gwt-DisclosurePanel .header td{
margin-left: -10px;
}
/*Orange*/
.orange-Btn {
position: relative;
color: white;
line-height: 28px;
text-decoration: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.08);
background-color: #faa226;
}
.orange-Btn:hover {
color: white;
background-color: #fbb34e;
}
.orange-Btn:active {
color: white;
background-color: #e88a05;
}
/* Added by Reema on 15/04/14 for Theme implementation */
.stackHeaderStyle {
padding: 8px;
border-bottom: 1px solid rgb(243, 243, 243);
text-align: center;
text-shadow: 0 1px rgba(0, 0, 0, .2);
background: rgb(170, 170, 170);
color: white;
cursor: pointer;
font-family: Helvetica, Arial, sans-serif;
font-size: 11pt;
font-weight: bold;
box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-o-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
-webkit-box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-moz-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
}
.stackHeaderStyle-active {
padding: 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.85);
text-align: center;
text-shadow: 0 1px rgba(0,0,0,.2);
background: #4bc1d2;
color: white;
cursor: pointer;
font-family: Helvetica, Arial, sans-serif;
font-size: 11pt;
font-weight: bold;
box-shadow: 0 1px 2px #4bc1d2, inset 0 3px 7px #b6f9ff;
-o-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
-webkit-box-shadow: 0 1px 2px #4bc1d2, inset 0 3px 7px #b6f9ff;
-moz-box-shadow: 0 1px 2px #4bc1d2, inset 0 3px 7px #b6f9ff;
}
.gwt-StackLayoutPanelContent {
background: rgba(255,255,255,.75);
}
.stackLayoutStyle {
background-image: -webkit-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%"));
background-image: -o-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%")) ;
background-image: -moz-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%"));
background-image: -ms-linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%"));
background-image: linear-gradient(top, literal("rgb(176, 219, 227) 30%"), literal("rgb(203, 226, 218) 60%"), literal("rgb(232, 196, 177) 100%"));
/* Added by Reema on 16/05/14 */
background-color: rgb(203, 226, 218);
/*Added by Reema on 16/05/14-End */
border-left: 1px solid rgb(203, 226, 218);
border-right: 1px solid rgb(203, 226, 218);
border-bottom: 1px solid;
}
/* Added by Reema on 15/04/14 for Theme implementation-End */
/* Added by Reema on 21/03/14 [Look and Feel Change] */
.header-userSetting {
width: 32px !important ;
height: 32px !important;
background-color: red !important;
border-radius: 50% !important;
padding: 2px !important;
background-position: 50% 50% !important;
background-size: 100% !important;
}
.header-defaultUserImage {
width: 32px !important;
height: 32px !important;
background-color: red !important;
border-radius: 50% !important;
padding: 2px !important;
background-position: 50% 3px !important;
background-size: 75% 100% !important;
}
.header-userImage {
width: 36px !important;
height: 36px !important;
background-color: red !important;
border-radius: 50% !important;
padding: 0px !important;
}
.theme-orange{
background-color: #ef9c00 !important;
}
.theme-green{
background-color: green !important;
}
.theme-gray{
background-color: gray !important;
}
.theme-blue{
background-color: #4bc1d2 !important;
}
.theme-magenta{
background-color: magenta !important;
}
/**********/
.e12AdvSearchPnl{
position: absolute;
left: 0px;
top: 0px;
margin: 0;
height: 40px;
width: 100%;
background-color: #4bc1d2;
overflow: hidden;
outline: none;
}
.searchTitle{
padding-left: 40px;
position: absolute;
color: white;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 16px;
text-shadow: 0 1px rgba(0,0,0,0.2);
text-rendering: optimizeLegibility;
top:10px;
}
.searchScopeTitle{
padding-left: 20px;
position: absolute;
top:10px;
width: 455px;
height: 25px;
margin-left: -15px;
border-bottom: 1px solid lightgray;
}
.searchboxinput {
height: 18px;
width: 300px;
display: block;
position: absolute;
margin: 0;
border: 1px solid #e2e2e2;
background-color: #fff;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 13px;
text-align: left;
text-shadow: 0 1px 1px rgba(255,255,255,0.5);
text-rendering: optimizeLegibility;
cursor: text;
top: 10px;
left: 100px;
}
/*******************************************************/
.e12AdvDataGrid-SideBars{
margin-left: -2px;
margin-right: -2px;
border-left: 1px solid lightgray;
border-right: 1px solid lightgray;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
left: 5px;
}
.e12Pager{
position: relative;
top: -27px;
left: 5px;
border-width: 1px;
border-style: solid;
border-color: #dbdbdb #d2d2d2 #ccc;
border-radius: 0px 0px 5px 5px;
background: #f4f4f4;
width: 100%;
height: 30px;
}
.e12Pager-forIE{
position: relative;
top: -10px;
left: 5px;
border-width: 1px;
border-style: solid;
border-color: #dbdbdb #d2d2d2 #ccc;
border-radius: 0px 0px 5px 5px;
background: #f4f4f4;
width: 100%;
height: 30px;
}
.pagerLabel{
color: #777;
margin-left: 20px;
}
.gwt-SettingLayout{
position: relative;
left: -1px;
right: 1px;
border-width: 1px;
border-style: solid;
border-color: #dbdbdb #d2d2d2 #ccc;
border-radius: 0px 0px 0px 0px;
background: #f4f4f4;
width: 3%;
}
.e12Pager-setting {
width: 28px !IMPORTANT;
height: 25px !IMPORTANT;
position: relative;
margin-left: 1px;
margin-right: 2px;
background-size: 60% !IMPORTANT;
background-position: 50% 50% !IMPORTANT;
position: relative;
cursor: pointer;
}
/*
.e12pager-popup {
position: relative;
padding: 5px;
margin: 1em 0 3em;
margin-top: 1em;
margin-right: 0px;
margin-bottom: 3em;
margin-left: 0px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
background: #fff;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(255, 255, 255)), to(rgb(153, 153, 153)));
background: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#999));
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(255, 255, 255)), to(rgb(153, 153, 153)));
background: -moz-linear-gradient(top,#fff,#999);
background: -o-linear-gradient(top,#fff,#999);
}
.e12pager-popup:after {
content: "";
display: block;
position: absolute;
bottom: -15px;
right: 35px;
width: 0;
height: 0;
border-width: 15px 15px 0;
border-top-width: 15px;
border-right-width: 15px;
border-bottom-width: 0px;
border-left-width: 15px;
border-style: solid;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-color: #999 transparent;
border-top-color: rgb(153, 153, 153);
border-right-color: transparent;
border-bottom-color: rgb(153, 153, 153);
border-left-color: transparent;
}
*/
.gwt-PagerLayout{
position: relative;
left: -6px;
border-width: 1px;
border-style: solid;
border-color: #dbdbdb #d2d2d2 #ccc;
border-radius: 0px 0px 5px 0px;
background: #f4f4f4;
width: 5%;
}
.e12pager-nav-button{
float: right;
}
.nextPageButton{
margin-left: 4px;
margin-right: 4px;
cursor: pointer;
}
.prevPageButton{
margin-left: 4px;
margin-right: 4px;
cursor: pointer;
}
.e12SearchOption-footer-btns{
float: right;
}
/*All System Action buttons , User Defined Action buttons */
.allActionBtnHPnl
{
position:absolute;
right : 5px;
float: right;
top: 40px;
z-index: 1;
}
/**********************************************************************/
/* gwt-ScrollTable */
/**********************************************************************/
.gwt-ScrollTable {
border: none !important;
}
.gwt-ScrollTable .headerWrapper {
background: #8bd url(images/bg_header_gradient.gif) repeat-x bottom left;
}
.gwt-ScrollTable .footerWrapper {
border-top: 1px solid #aaa;
background: #8bd url(images/bg_header_gradient.gif) repeat-x bottom left;
}
.gwt-ScrollTable .dataTable td,
.gwt-ScrollTable .headerTable td,
.gwt-ScrollTable .footerTable td {
border-color: #aaa;
border-style: solid;
border-width: 0px 0px 0px 0px;
white-space: nowrap;
overflow: hidden;
width: 100px;
}
.gwt-ScrollTable .headerTable td,
.gwt-ScrollTable .footerTable td {
color: #fff;
font-size:11px;
line-height:10px;
/*height:10px;*/
white-space: nowrap;
clear: both;
width: 60px;
}
.gwt-ScrollTable .dataTable tr,
.gwt-ScrollTable .dataTable td{
font-size:10px;
line-height:5px;
}
.gwt-ScrollTable .dataWrapper{
height:10px;
}
.gwt-ScrollTable .dataTable tr.highlighted {
background: #C3D9FF;
}
.gwt-ScrollTable .dataTable td.highlighted {
background: #C3D9FF;
cursor: hand;
cursor: pointer;
}
.gwt-ScrollTable .dataTable tr.selected td {
background: #FFFFAA;
}
.parentAbsPnl{
/*background-color: white;*/
background-color: #CBE2DA;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal( "#B0DBE3 60%" ), literal( "#CBE2DA 85%" ), literal( "#E8C4B1 100%" ) );
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal( "#B0DBE3 60%" ), literal( "#CBE2DA 85%" ), literal( "#E8C4B1 100%" ) );
/* Opera */
background-image: -o-linear-gradient(top, literal( "#B0DBE3 60%" ), literal( "#CBE2DA 85%" ), literal( "#E8C4B1 100%" ) );
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal( "left top" ), literal( "left bottom" ), color-stop(0.6, #B0DBE3), color-stop(0.85, #CBE2DA), color-stop(1, #E8C4B1));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal( "#B0DBE3 60%" ), literal( "#CBE2DA 85%" ), literal( "#E8C4B1 100%" ) );
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(to bottom, literal( "#B0DBE3 60%" ), literal( "#CBE2DA 85%" ), literal( "#E8C4B1 100%" ) );
width:100% !important;
height:100% !important;
position: absolute !important;
}
/* Added by Reema on 25/04/14 */
@sprite .addButton{
width:20px;
height:20px;
gwt-image:'addButton';
cursor:pointer;
outline: none;
}
@sprite .addButton:hover{
gwt-image:'addButtonBlue';
}
.addNewLabel {
font-family:arial;
font-size:14px;
color:white;
cursor:pointer;
}
@sprite .searchButton {
gwt-image:'searchButton';
background-repeat: no-repeat;
background-position: 0 0;
height: 32px;
width: 32px;
background-color: transparent;
border: none;
left: 405px;
position: absolute;
display: block;
top: 10px;
cursor: pointer;
outline: none;
}
@sprite .searchButton:hover{
gwt-image:'searchButtonBlue';
}
@sprite .searchOptionButton {
gwt-image:'searchOptionButton';
background-repeat: no-repeat;
background-position: 0 0;
height: 32px;
width: 32px;
left: 450px;
position: absolute;
top: 5px;
border: none;
background-color: transparent;
cursor: pointer;
background-size: 100% 100%;
outline: none;
}
@sprite .searchOptionButton:hover {
gwt-image:'searchOptionButtonBlue';
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none;
}
/* Added by Reema on 12/05/2014[button for help information] */
@sprite .helpOptButton {
gwt-image:'helpOption';
background-repeat: no-repeat;
background-position: 0 0;
height: 26px;
width: 26px;
left: 500px;
position: absolute;
top: 7px;
border: none;
background-color: transparent;
cursor: pointer;
background-size: 100% 100%;
outline: none;
}
@sprite .helpOptButton:hover{
gwt-image:'helpOptionBlue' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton {
gwt-image:'docHelp';
background-repeat: no-repeat;
background-position: 0 0;
height: 25px;
width: 25px;
left: 550px;
position: absolute;
top: 7px;
border: none;
background-color: transparent;
cursor: pointer;
background-size: 100% 100%;
outline: none;
}
@sprite .docHelpButton:hover{
gwt-image:'docHelpBlue' ;
outline: none ;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
/* Added by Reema on 12/05/2014 [button for help information]-End */
.customLayoutFrame{
border: none;
}
.dateBoxPopup {
z-index: 1;
}
.tabTitleDiv{
position: absolute !important;
height: 40px;
top: 46px;
width: 110px;
left: 8px;
background: white;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.tabTitleLabel{
text-align: center;
line-height: 40px;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 14px;
text-shadow: 0 1px 1px rgba(255, 255, 255, .5);
text-rendering: optimizeLegibility;
color: #2087fc;
}
.tableBackgroundDiv{
background: white;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-top-right-radius: 5px;
height: 465px;
width: 1111px;
position: absolute;
left: 8px;
top: 85px;
}
/* Added by Reema on 30-04-14 for decorated TabPanel */
.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleCenter {
cursor: default;
background: #2087fc !important;
COLOR: WHITE;
-webkit-box-shadow: 0 1px 2px #2087fc, inset 0 1px 4px #c7e1ff;
}
.gwt-DecoratedTabBar .tabMiddleCenter{
padding: 0px 4px 2px 4px;
cursor: pointer;
cursor: hand;
color: black;
font-weight: bold;
text-align: center;
background: lightgray !important;
}
/* Added by Reema on 30-04-14 for decorated TabPanel */
/* Added by Reema on 03-05-14 for popup look of Transaction page */
.popupMenuBar{
margin: -2px;
padding: 0;
/* position: absolute; */
left: 0;
top: 10px;
width: 174px;
list-style: none;
/* -webkit-border-radius: 4px; */
/* -moz-border-radius: 4px; */
/* border-radius: 4px; */
}
.popupMenuItem{
width: 170px;
/*padding: 8px 20px;*/
padding: 8px 15px;
margin: 0;
color: #62412E;
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
font-weight: bold;
text-decoration: none;
text-rendering: optimizeLegibility;
text-shadow: 0 1px 1px rgba(0,0,0, .3);
text-transform: capitalize; /*Removed UpperCase link*/
position: relative;
white-space: nowrap;
}
.popupMenuItem:hover{
color: #fff !important;
cursor: pointer;
text-shadow: 0 1px 1px rgba(0,0,0, .1);
/* -webkit-border-radius: 2px; */
/* -moz-border-radius: 2px; */
/* border-radius: 2px; */
background: #4EBD4A repeat-x 0 -100px !important;
}
.scrllPnlMenuBar{
overflow: hidden !important;
position: relative;
width: 170px !important;
border: solid 1px #b4b4b4;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3);
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .3);
box-shadow: 0 1px 3px rgba(0,0,0, .3);
background: #ddd repeat-x 0 0;
}
.gwt-PopupPanel {
border: none !important;
padding: 3px;
background: transparent !important;
}
/* Added by Reema on 03-05-14 for popup look of Transaction page-End */
/* Added by Reema on 12/05/14[Loading Interface] */
.loadingPnl
{
width: 205px;
height: 150px;
/* border: 1px solid black; */
/* background-color: black; */
background-color: rgba(0, 0, 0, 0.75);
border-radius: 10%;
}
.busyIndicatorContainer
{
padding-top: 20px;
padding-left: 5px;
width: 200px;
}
.busyIndicatorMessage
{
color: white;
width: 185px;
word-wrap: break-word;
font-size: small;
padding-top: 20px;
}
/* Added by Reema on 12/05/14[Loading Interface]-End */
/* Added by Reema on 21/05/14[popup FlexTable] */
/* Used in E12PopUp.java */
.tHeader{
font-weight: bold;
padding-left: 5px;
height: 29px;
line-height: 29px;
border-color: #4bc1d2 #13aec4 #5ccada;
background-color: #4bc1d2;
background-image: -ms-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(0.6, #4BC1D2), color-stop(1, #5ADAEC) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#4BC1D2 60%"), literal("#5ADAEC 100%"));
-webkit-box-shadow: inset 0 1px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.06), 0 1px rgba(0,0,0,0.04);
box-shadow: inset 0 1px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.06), 0 1px rgba(0,0,0,0.04);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
text-rendering: optimizeLegibility;
font-size: 12px;
color: white;
text-shadow: 0 1px rgba(0,0,0,0.2);
border-width: 1px 1px 1px 0;
border-style: solid;
margin: -2px;
white-space: nowrap;
}
.tHeader-First{
border-radius: 4px 0 0 0;
}
.tHeader-Last{
border-radius: 0 4px 0 0;
}
.popupFlexTbl{
border: none;
border-color: transparent;
border-radius: 5px;
padding-left: 3px;
width: 100%;
}
.flxTblStyle {
border: none;
line-height: 29px;
padding: 0 10px;
border-right: 1px solid #eee;
border-right-color: rgba(0,0,0,0.07);
font-family: Arial, Helvetica, Helvetica Neue, Verdana, sans-serif;
font-size: 12px;
text-shadow: 0 1px 1px rgba(0,0,0,0.2);
text-rendering: optimizeLegibility;
/* background: #ffffff; */
white-space: nowrap;
}
.flexEvenRow{
background: #f9f9f9;
}
.flexOddRow{
background: #ffffff;
}
.flexOddRow:hover,.flexEvenRow:hover{
background: #f4f4f4;
}
.popscrollPanel {
height: 300px;
width: 530px;
}
.popVert{
height: 300px;
width: 550px;
background-color: #FBF5EF;
border-radius: 10px;
padding: 10px;
}
/* Added by Reema on 21/05/14[popup FlexTable]-End */
/*Added by Reema on 11/06/14[pager for dataTable]*/
.e12AdvDataGrid-SideBars-DataTable{
margin-left: -2px;
margin-right: -2px;
border-left: 1px solid lightgray;
border-right: 1px solid lightgray;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
/* left: 5px; */
}
.e12Pager-DataTable-Total{
position: relative;
top: -4px;
left: 0px;
border-width: 1px;
border-style: solid;
border-color: #dbdbdb #d2d2d2 #ccc;
border-radius: 0px 0px 5px 5px;
background: #f4f4f4;
width: 100%;
height: 30px;
}
.e12Pager-DataTable{
position: relative;
top: -22px;
left: 0px;
border-width: 1px;
border-style: solid;
border-color: #dbdbdb #d2d2d2 #ccc;
border-radius: 0px 0px 5px 5px;
background: #f4f4f4;
width: 100%;
height: 30px;
}
.e12Pager-forIE-DataTable{
position: relative;
top: -3px;
left: 0px;
border-width: 1px;
border-style: solid;
border-color: #dbdbdb #d2d2d2 #ccc;
border-radius: 0px 0px 5px 5px;
background: #f4f4f4;
width: 100%;
height: 30px;
}
/*Added by Reema on 11/06/14[pager for dataTable]-End*/
/* Added by Reema on 13/06/14 [for change Password UI] */
.changePasswordHeading
{
font-family: inherit;
font-size: medium;
text-align: center;
}
.userHtmlData
{
/* font-family: Arial, Helvetica, sans-serif; */
font-family: inherit;
font-size: 12px;
}
.loginText{
font-size: medium;
font-style: normal;
}
.space
{
height: 10px;
}
.changePasswordSpace
{
height: 15px;
}
.changePasswordPanel
{
position:relative;
padding:15px;
margin:1em 0 3em;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
background: #fff;
/* background:-webkit-gradient(linear, literal("left top"), literal("left bottom"), from(#999), to(#fff));
background:-moz-linear-gradient(top, #999, #fff);
background:-o-linear-gradient(top, #999, #fff); */
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Mozilla Firefox */
background-image: -moz-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Opera */
background-image: -o-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient( linear, literal("left top"), literal("left bottom"), color-stop(0, #999999), color-stop(1, #FFFFFF) );
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient( top, literal("#999999 0%"), literal("#FFFFFF 100%") );
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient( literal("to bottom"), literal("#999999 0%"), literal("#FFFFFF 100%") );
/* width: 190px; */
}
/* Added by Reema on 13/06/14 [for change Password UI]-End */
.translucent
{
filter: blur(10px);
-webkit-filter: blur(10px);
-moz-filter: blur(10px);
filter: url('/media/blur.svg#blur'); /* for Firefox */
}
/* Changes in Pophelp button look used icon*/
.pophelpImg,
.pophelpImg-datatable
{
color : #fff;
font-size: 18px;
background-color: #46ca5e;
border: 2px solid #46ca5e;
height: 18px;
width: 18px;
-webkit-border-radius: 75px;
-moz-border-radius: 75px;
margin-left: 2px;
margin-top: 3px;
}
.pophelpImg:after
{
position: relative;
top: 0px;
right: 0.5px;
}
.pophelpImg-datatable:after
{
position: relative;
top: -3px;
right: 0.5px;
}
.pophelpImg:after,
.pophelpImg-datatable:after
{
font-family: 'elegant-icons' !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
line-height: 0;
/* //Improve rendering on Mac OS X. */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.pophelpImg.icon-pophelp:after,
.pophelpImg-datatable.icon-pophelp:after
{
content: "\eu";
margin: 0 3px 0 0;
font-size: 18px;
font-weight: normal;
}
.e12-TextBox
{
border: 1px solid #D8D8D8;
border-radius: 2px;
-moz-border-radius: 2px;
padding: 3px 3px;
}
.e12-TextBox-readonly
{
color: #888;
border: 1px solid #D8D8D8;
border-radius: 2px;
-moz-border-radius: 2px;
padding: 3px 3px;
}
.formalArgsTxtBxs, .dayWeekMnthValShownTxtBx, .filterCondTxtBox
{
width: 85px;
border: 1px solid #D8D8D8;
border-radius: 2px;
-moz-border-radius: 2px;
padding: 3px 3px;
}
.dateBox{
border: 1px solid #D8D8D8;
border-radius: 2px;
-moz-border-radius: 2px;
padding: 3px 3px;
}
.stackHeaderStyle {
background: rgb(170, 170, 170);
box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-o-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
-webkit-box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-moz-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
border-bottom: 1px solid rgb(243, 243, 243);
}
.stackHeaderStyle-active {
/*
background: gray !important;
box-shadow: 0 1px 2px #C0C0C0, inset 0 3px 7px #E9E9E9;
-o-box-shadow: 0 1px 2px #C0C0C0, inset 0 3px 7px #E9E9E9;
-webkit-box-shadow: 0 1px 2px #C0C0C0, inset 0 3px 7px #E9E9E9;
-moz-box-shadow: 0 1px 2px #C0C0C0, inset 0 3px 7px #E9E9E9;
*/
background: #2087FC !important;
box-shadow: 0 1px 2px #2087FC, inset 0 3px 7px #C7E1FF;
-o-box-shadow: 0 1px 2px #2087FC, inset 0 3px 7px #C7E1FF;
-webkit-box-shadow: 0 1px 2px #2087FC, inset 0 3px 7px #C7E1FF;
-moz-box-shadow: 0 1px 2px #2087FC, inset 0 3px 7px #C7E1FF;
}
/* Added by Reema on 21/04/14 for Theme implementation */
.stackLayoutStyle {
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(.6, #C0C0C0), color-stop(0.85, #D3D3D3), color-stop(1.0, #E0E0E0));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%"));
background-color: #C0C0C0 !important;
border-left: 1px solid #DADADA;
border-right: 1px solid #DADADA;
border-bottom: 1px solid;
}
/* Added by Reema on 21/04/14 for Theme implementation-End */
.parentAbsPnl{
/* background-color: silver !important; */
background-color: #C0C0C0 !important;
/* background-image:linear-gradient(to bottom, silver 60%, lightgray 85%, rgb(224, 224, 224) 100%) !important; */
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%")) !important;;
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%")) !important;;
/* Opera */
background-image: -o-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%")) !important;;
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(.60, #C0C0C0), color-stop(.85, #D3D3D3), color-stop(1, #E0E0E0)) !important;;
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%")) !important;;
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#C0C0C0 60%"), literal("#D3D3D3 85%"), literal("#E0E0E0 100%")) !important;;
}
.e12AdvSearchPnl{
background-color: white !important;
background-color: rgba(255, 255, 255, 0.5) !important;
}
.searchTitle{
color:#2087fc !important;
text-shadow: 0 1px rgba(255,255,255,0.2) !important;
}
.searchScopeTitle{
border-bottom: 1px solid #2087fc !important;
}
.addNewLabel{
color:#2087fc !important;
text-shadow: 0 1px rgba(255,255,255,0.2) !important;
}
/* Added by Reema on 25/04/14 :The color of icons should be blue (search, search option and add new). On mouseover it should become white*/
@sprite .addButton{
gwt-image:'addButtonBlue' !important;
outline: none !important;
}
@sprite .addButton:hover{
gwt-image:'addButton' !important;
outline: none !important;
}
@sprite .searchButton{
gwt-image:'searchButtonBlue' !important;
outline: none !important;
}
@sprite .searchButton:hover{
gwt-image:'searchButton' !important;
outline: none !important;
}
@sprite .searchOptionButton {
gwt-image:'searchOptionButtonBlue' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
@sprite .searchOptionButton:hover {
gwt-image:'searchOptionButton' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
/* Added by Reema on 18/04/14 */
@sprite .helpOptButton{
gwt-image:'helpOptionBlue' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .helpOptButton:hover{
gwt-image:'helpOption' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton{
gwt-image:'docHelpBlue' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton:hover{
gwt-image:'docHelp' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
/* Added by Reema on 18/04/14-End */
/* Added by Reema on 25/04/14 :The color of icons should be blue (search, search option and add new). On mouseover it should become white -End */
.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleCenter {
cursor: default;
background: #2087fc !important;
COLOR: WHITE;
-webkit-box-shadow: 0 1px 2px #2087fc, inset 0 1px 4px #c7e1ff;
}
.stackHeaderStyle {
background: rgb(170, 170, 170);
box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-o-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
-webkit-box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-moz-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
border-bottom: 1px solid rgb(243, 243, 243);
}
.stackHeaderStyle-active {
background: green !important;
box-shadow: 0 1px 2px rgb(36, 110, 36), inset 0 3px 7px rgb(186, 255, 186);
-o-box-shadow: 0 1px 2px rgb(36, 110, 36), inset 0 3px 7px rgb(186, 255, 186);
-webkit-box-shadow: 0 1px 2px rgb(36, 110, 36), inset 0 3px 7px rgb(186, 255, 186);
-moz-box-shadow: 0 1px 2px rgb(36, 110, 36), inset 0 3px 7px rgb(186, 255, 186);
}
/* Added by Reema on 21/04/14 for Theme implementation */
.stackLayoutStyle{
/* IE10 Consumer Preview */
background: #caffca !important;
background-image: -ms-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(.6, #caffca), color-stop(.84, #e5fae5 ), color-stop(1.0, #edf5ed));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%"));
border-left: 1px solid #DADADA;
border-right: 1px solid #DADADA;
border-bottom: 1px solid;
}
/* Added by Reema on 21/04/14 for Theme implementation-End */
.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleCenter {
cursor: default;
background: green !important;
COLOR: WHITE;
-webkit-box-shadow: 0 1px 2px #2087fc, inset 0 1px 4px #c7e1ff;
}
/* Added by Reema on 16/05/14 for Theme implementation */
.parentAbsPnl{
/* background-color: silver !important; */
background-color: #caffca !important;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%")) !important;
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%")) !important;
/* Opera */
background-image: -o-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%")) !important;
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(.6, #caffca), color-stop(.84, #e5fae5), color-stop(1.0, #edf5ed)) !important;
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%")) !important;
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#caffca 60%"), literal("#e5fae5 84%"), literal("#edf5ed 100%")) !important;
}
.e12AdvSearchPnl{
background-color: green !important;
}
@sprite .addButton{
gwt-image:'addButton' !important;
outline: none !important;
}
@sprite .addButton:hover{
gwt-image:'addButtonBlue' !important;
outline: none !important;
}
@sprite .searchButton{
gwt-image:'searchButton' !important;
outline: none !important;
}
@sprite .searchButton:hover{
gwt-image:'searchButtonBlue' !important;
outline: none !important;
}
@sprite .searchOptionButton {
gwt-image:'searchOptionButton' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
@sprite .searchOptionButton:hover {
gwt-image:'searchOptionButtonBlue' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
@sprite .helpOptButton{
gwt-image:'helpOption' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .helpOptButton:hover{
gwt-image:'helpOptionBlue' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton{
gwt-image:'docHelp' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton:hover{
gwt-image:'docHelpBlue' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
/* Added by Reema on 16/05/14 for Theme implementation-End */
.stackHeaderStyle {
background: rgb(170, 170, 170);
box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-o-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
-webkit-box-shadow: 0 1px 2px rgb(170, 170, 170), inset 0 1px 2px rgb(243, 243, 243);
-moz-box-shadow: 0 1px 2px #0061aa, inset 0 3px 7px #b6f9ff;
border-bottom: 1px solid rgb(243, 243, 243);
}
.stackHeaderStyle-active {
background: #ef9c00 !important;
box-shadow: 0 1px 2px #ef9c00, inset 0 3px 7px #FCE7BF;
-o-box-shadow: 0 1px 2px #ef9c00, inset 0 3px 7px #FCE7BF;
-webkit-box-shadow: 0 1px 2px #ef9c00, inset 0 3px 7px #FCE7BF;
-moz-box-shadow: 0 1px 2px #ef9c00, inset 0 3px 7px #FCE7BF;
}
/* Added by Reema on 21/04/14 for Theme implementation */
.stackLayoutStyle{
/* IE10 Consumer Preview */
background: #fde8bf !important;
background-image: -ms-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(.6, #FDE8BF), color-stop(.84, #FDEFD5), color-stop(1.0, #F1EFE0));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
border-left: 1px solid #f1efe0;
border-right: 1px solid #f1efe0;
border-bottom: 1px solid;
}
/* Added by Reema on 21/04/14 for Theme implementation-End */
.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleCenter {
cursor: default;
background: #ef9c00 !important;
COLOR: WHITE;
-webkit-box-shadow: 0 1px 2px #2087fc, inset 0 1px 4px #c7e1ff;
}
/* Added by Reema on 16/05/14 for Theme implementation */
.parentAbsPnl{
/* background-color: silver !important; */
background-color: #FDE8BF !important;
/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* Opera */
background-image: -o-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, literal("left top"), literal("left bottom"), color-stop(.6, #FDE8BF), color-stop(.84, #FDEFD5), color-stop(1.0, #F1EFE0));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(literal("to bottom"), literal("#FDE8BF 60%"), literal("#FDEFD5 84%"), literal("#F1EFE0 100%"));
}
.e12AdvSearchPnl{
background-color: #ef9c00 !important;
}
@sprite .addButton{
gwt-image:'addButton' !important;
outline: none !important;
}
@sprite .addButton:hover{
gwt-image:'addButtonBlue' !important;
outline: none !important;
}
@sprite .searchButton{
gwt-image:'searchButton' !important;
outline: none !important;
}
@sprite .searchButton:hover{
gwt-image:'searchButtonBlue' !important;
outline: none !important;
}
@sprite .searchOptionButton {
gwt-image:'searchOptionButton' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
@sprite .searchOptionButton:hover {
gwt-image:'searchOptionButtonBlue' !important;
background-position: 0 0;
height: 32px;
width: 32px;
background-size: 100% 100%;
outline: none !important;
}
@sprite .helpOptButton{
gwt-image:'helpOption' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .helpOptButton:hover{
gwt-image:'helpOptionBlue' !important;
outline: none !important;
height: 26px;
width: 26px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton{
gwt-image:'docHelp' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
@sprite .docHelpButton:hover{
gwt-image:'docHelpBlue' !important;
outline: none !important;
height: 25px;
width: 25px;
background-position: 0 0;
background-size: 100% 100%;
}
/* Added by Reema on 16/05/14 for Theme implementation-End */
package ibase.client.resources;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.ClientBundle.Source;
import com.google.gwt.resources.client.CssResource.NotStrict;
import com.google.gwt.user.cellview.client.DataGrid;
public interface Resources extends ClientBundle
{
public static final Resources INSTANCE = (Resources) GWT.create(Resources.class);
@NotStrict
@Source("css/E12DashboardPage.css")
public CssResource e12DashboardPage();
@NotStrict
@Source("css/default.css")
CssResource defaultCSS();
@NotStrict
@Source("css/blueTheme.css")
CssResource blueThemeCSS();
@Source("images/pophelp.jpg")
public ImageResource pophelp();
//Added by Reema on 25/04/14 for Theme wise changes
@Source("images/add.png")
public ImageResource addButton();
@Source("images/add-blue.png")
public ImageResource addButtonBlue();
@Source("images/searchButton-blue.png")
public ImageResource searchButtonBlue();
@Source("images/searchButton.png")
public ImageResource searchButton();
@Source("images/searchOptionButton-blue.png")
public ImageResource searchOptionButtonBlue();
@Source("images/searchOptionButton.png")
public ImageResource searchOptionButton();
//Added by Reema on 12/05/14 [buttons for help information]
@Source("images/helpOption.png")
public ImageResource helpOption();
@Source("images/helpOption-blue.png")
public ImageResource helpOptionBlue();
@Source("images/documentHelp.png")
public ImageResource docHelp();
@Source("images/documentHelp-blue.png")
public ImageResource docHelpBlue();
interface DataGridResources extends DataGrid.Resources {
@Source(value = { DataGrid.Style.DEFAULT_CSS, "css/DataGrid/blueTheme.css" })
public DataGrid.Style blueThemeCSS();
@Source(value = { DataGrid.Style.DEFAULT_CSS, "css/DataGrid/grayTheme.css" })
public DataGrid.Style grayThemeCSS();
@Source(value = { DataGrid.Style.DEFAULT_CSS, "css/DataGrid/orangeTheme.css" })
public DataGrid.Style orangeThemeCSS();
@Source(value = { DataGrid.Style.DEFAULT_CSS, "css/DataGrid/greenTheme.css" })
public DataGrid.Style greenThemeCSS();
}
public static final DataGridResources DATAGRID_RES = (DataGridResources) GWT.create(DataGridResources.class);
}
package ibase.client.tabletoexcel;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.TableElement;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.FormPanel;
import com.google.gwt.user.client.ui.HTMLTable;
import com.google.gwt.user.client.ui.Hidden;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
/**
* Build a Form Panel in order to allow to download the table content in an excel format.<br>
* Dont forget to add an iframe in your original html file :<br>
* < iframe src="javascript:''" id="gwt-table-to-excel-target" class="invisible">< /iframe><br>
* and to declare the sevlet in your web.xml :<br>
*
* @see com.googlecode.gwtTableToExcel.server.TableToExcelServlet
* @author Francois Wauquier 'wokier'
*/
public class TableToExcelClient {
private final FormPanel formPanel = new FormPanel("gwt-table-to-excel-target");
/**
* Simple Constructor
*
* @param table
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
public TableToExcelClient(final HTMLTable table) {
this(table, new Label("Export"), "export");
}
/**
* Simple Constructor
*
* @param table
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
@SuppressWarnings("rawtypes")
public TableToExcelClient(final CellTable table) {
this(table.getElement(), new Label("Export"), "export");
}
/**
* Simple Constructor
*
* @param tableDomElement
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
public TableToExcelClient(TableElement tableDomElement) {
this(tableDomElement, new Label("Export"), "export");
}
/**
* Constructor with defined label text
*
* @param table
* @param labelText
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
public TableToExcelClient(final HTMLTable table, String labelText) {
this(table.getElement(), new Label(labelText), "export");
}
/**
* Constructor with defined label text
*
* @param table
* @param labelText
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
@SuppressWarnings("rawtypes")
public TableToExcelClient(final CellTable table, String labelText) {
this(table.getElement(), new Label(labelText), "export");
}
/**
* Constructor with defined label text
*
* @param tableElement
* @param labelText
* @deprecated use TableToExcelClientBuilder
*/
@Deprecated
public TableToExcelClient(final TableElement tableElement, String labelText) {
this(tableElement, new Label(labelText), "export");
}
/**
* Constructor with defined label text and fileName
*
* @param table
* @param labelText
* @param fileName
* @deprecated use {@link TableToExcelClient#TableToExcelClient(HTMLTable, Widget, String)} with Label as widget or {@link TableToExcelClientBuilder}
*/
@Deprecated
protected TableToExcelClient(final HTMLTable table, String labelText, String fileName) {
this(table.getElement(), new Label(labelText), fileName);
}
/**
* Constructor with defined label text and fileName
*
* @param table
* @param labelText
* @param fileName
* @deprecated use {@link TableToExcelClient#TableToExcelClient(CellTable, Widget, String)} with Label as widget or {@link TableToExcelClientBuilder}
*/
@Deprecated
@SuppressWarnings("rawtypes")
protected TableToExcelClient(final CellTable table, String labelText, String fileName) {
this(table.getElement(), new Label(labelText), fileName);
}
/**
* Constructor with other widget (ex button)
*
* @param table
* @param exportWidget
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
public TableToExcelClient(final HTMLTable table, HasClickHandlers exportWidget) {
this(table.getElement(), (Widget) exportWidget, "export");
}
/**
* Constructor with other widget (ex button)
*
* @param table
* @param exportWidget
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
@SuppressWarnings("rawtypes")
public TableToExcelClient(final CellTable table, HasClickHandlers exportWidget) {
this(table.getElement(), (Widget) exportWidget, "export");
}
/**
* Constructor with other widget (ex button)
*
* @param tableElement
* @param exportWidget
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
public TableToExcelClient(final TableElement tableElement, HasClickHandlers exportWidget) {
this(tableElement, (Widget) exportWidget, "export");
}
/**
* Constructor with full options
*
* @param table
* @param labelText
* @param fileName
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
public TableToExcelClient(HTMLTable table, Widget exportWidget, String fileName) {
this(table.getElement(), exportWidget, fileName);
}
/**
* Constructor with full options
*
* @param table
* @param labelText
* @param fileName
* @deprecated use {@link TableToExcelClientBuilder}
*/
@Deprecated
@SuppressWarnings("rawtypes")
public TableToExcelClient(CellTable table, Widget exportWidget, String fileName) {
this(table.getElement(), exportWidget, fileName);
}
protected TableToExcelClient(final com.google.gwt.dom.client.Element tableElement, Widget exportWidget, String fileName)
{
formPanel.setAction(GWT.getModuleBaseURL()+ "excel");
formPanel.setMethod(FormPanel.METHOD_POST);
formPanel.addStyleName("gwt-table-to-excel-form");
FlowPanel flowPanel = new FlowPanel();
flowPanel.addStyleName("gwt-table-to-excel-panel");
formPanel.setWidget(flowPanel);
final Hidden contentHidden = new Hidden("html");
flowPanel.add(contentHidden);
final Hidden fileNameHidden = new Hidden("fileName", fileName);
flowPanel.add(fileNameHidden);
flowPanel.add(exportWidget);
exportWidget.addStyleName("gwt-table-to-excel-exportWidget");
final Hidden exportBtn = new Hidden("export", exportWidget.getTitle());
flowPanel.add(exportBtn);
((HasClickHandlers) exportWidget).addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event)
{
contentHidden.setValue(tableElement.getString());
formPanel.submit();
}
});
}
/**
* Give the created form
*
* @return
* @deprecated use {@link #getExportWidget()}
*/
@Deprecated
protected FormPanel build() {
return formPanel;
}
/**
* Give the created form widget
*
* @return
* @deprecated use {@link #getExportFormWidget()}
*/
@Deprecated
public FormPanel getExportWidget() {
return formPanel;
}
/**
* Give the created form widget
*
* @return
*/
public FormPanel getExportFormWidget() {
return formPanel;
}
}
package ibase.client.tabletoexcel;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.TableElement;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.FormPanel;
import com.google.gwt.user.client.ui.HTMLTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
/**
* Creates a {@link TableToExcelClient} with various fliuent options
*
* @author Francois Wauquier 'wokier'
*/
public class TableToExcelClientBuilder {
private Element tableElement;
private Widget exportWidget = new Label("Export");
private String fileName = "export";
private TableToExcelClientBuilder(Element tableElement) {
super();
this.tableElement = tableElement;
}
/**
* table
*
* @param htmlTable
* @return
*/
public static TableToExcelClientBuilder fromTable(HTMLTable htmlTable) {
return new TableToExcelClientBuilder(htmlTable.getElement());
}
/**
* table
*
* @param cellTable
* @return
*/
@SuppressWarnings("rawtypes")
public static TableToExcelClientBuilder fromTable(CellTable cellTable) {
return new TableToExcelClientBuilder(cellTable.getElement());
}
/**
* table
*
* @param tableElement
* @return
*/
public static TableToExcelClientBuilder fromTable(TableElement tableElement) {
return new TableToExcelClientBuilder(tableElement);
}
/**
* table
*
* @param flexTable
* @return
*/
public static TableToExcelClientBuilder fromTable(FlexTable flexTable) {
return new TableToExcelClientBuilder(flexTable.getElement());
}
/**
* exportWidget
*
* @param labelText
* @return
*/
public TableToExcelClientBuilder withLabel(String labelText) {
this.exportWidget = new Label(labelText);
return this;
}
/**
* exportWidget
*
* @param exportWidget
* @return
*/
public TableToExcelClientBuilder withClickable(HasClickHandlers exportWidget) {
this.exportWidget = (Widget) exportWidget;
return this;
}
/**
* exportWidget
*
* @param exportWidget
* @return
*/
public TableToExcelClientBuilder withWidget(Widget exportWidget) {
this.exportWidget = exportWidget;
return this;
}
/**
* fileName
*
* @param fileName
* @return
*/
public TableToExcelClientBuilder toFileName(String fileName) {
this.fileName = fileName;
return this;
}
protected TableToExcelClient build() {
return new TableToExcelClient(tableElement, exportWidget, fileName);
}
/**
* Builds the final result to place in your view<br>
* see {@link TableToExcelClient#getExportWidget()}
*
* @return
*/
public FormPanel buildExportFormWidget() {
return build().getExportFormWidget();
}
}
package ibase.client;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.Widget;
public class BulletList extends ComplexPanel {
public BulletList() {
setElement(DOM.createElement("UL"));
}
public void add(Widget w) {
super.add(w, getElement());
}
public void insert(Widget w, int beforeIndex) {
super.insert(w, getElement(), beforeIndex, true);
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.logical.shared.AttachEvent;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.ColumnSortEvent;
import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.view.client.ListDataProvider;
import ibase.client.resources.Resources;
/**
* This class is used to show the data in paged format.
*
* @author base
*/
public class CellTableGridCreator
{
public CellTableGridCreator() {
// TODO Auto-generated constructor stub
}
ListDataProvider<CellTableGridInfo> dataProvider = new ListDataProvider<CellTableGridInfo>();
@SuppressWarnings("unchecked")
public ScrollPanel buildCustomGrid(final HashMap<String, HashMap> gridNGraphMeataDataMap,JSONObject jsonObjGridData)
{
ScrollPanel sp = new ScrollPanel();
gridNGraphMeataDataMap.toString().replace('=', ':');
HashMap<String, ArrayList<String>> graphDataMap = null;
ArrayList<String> graphDtlList = null;
LinkedHashMap<String, List<String>> gridIDMap = null;
final LinkedHashMap<String, List<String>> gridNameMap = null;
LinkedHashMap<String, List<String>> gridNameMap1 = null;
JSONObject tempObj= new JSONObject();
ArrayList<String> paramDtlList = new ArrayList<String>();
final CellTable<CellTableGridInfo> table = new CellTable<CellTableGridInfo>();
List<CellTableGridInfo> CONTACTS = null;
try
{
graphDataMap=gridNGraphMeataDataMap.get("grid");
JSONObject jsonObjData =(JSONObject) jsonObjGridData.get("grid");
//set data into list : list of class objects
CellTableGridInfo cInfo = new CellTableGridInfo();
CONTACTS = (cInfo.getDataInfo(gridNGraphMeataDataMap,jsonObjGridData));
/******start of To create header with colspan********/
for (String dataSource : gridNGraphMeataDataMap.keySet())
{
if (dataSource == "grid")
{
gridIDMap = (LinkedHashMap<String, List<String>>) gridNGraphMeataDataMap.get(dataSource);
tempObj=(JSONObject) jsonObjData.get(dataSource);
/**start of - To add header with colspan: first row of table**/
table.addAttachHandler( new AttachEvent.Handler()
{
@Override
public void onAttachOrDetach(AttachEvent event)
{
LinkedHashMap<String, List<String>> gridNameMap = null;
try
{
gridNameMap = (LinkedHashMap<String, List<String>>) gridNGraphMeataDataMap.get("columnName");
Element elmnt = table.getElement();
Element elementTr = DOM.createTHead();
for (Map.Entry<String, List<String>> entry : gridNameMap.entrySet())
{
String key = entry.getKey();
List<String> values = entry.getValue();
Element elementTd=null;
if(values.size()==1)
{
elementTd = DOM.createTH();
elementTd.setAttribute( "colspan" , "1" );
elementTd.setInnerText( "" );
}
if(values.size()>1)
{
elementTd = DOM.createTH();
elementTd.setAttribute( "colspan" , ""+values.size() );
elementTd.setAttribute("id","");
elementTd.setInnerText( key );
}
elementTr.appendChild( elementTd );
}
elmnt.insertFirst( elementTr );
}
catch (Exception e)
{
Window.alert( "Excpetion CellTableGridCreator:buildCustomGrid():for loop dataSource:["+e.getMessage()+"]" );
}
}
});
/**End of - To add header with colspan: first row of table**/
/**start of - To add header with colspan: second row of table**/
paramDtlList= cInfo.getClassParameters(gridNGraphMeataDataMap);
Window.alert("paramDtlList:"+paramDtlList);
cInfo.setCellTableColumn(paramDtlList,table);
/**end of - To add header with colspan: second row of table**/
}
}
table.setStyleName("celDataCSS");
// table.setWidth(Window.getClientWidth()+ "px" );
// Create a data provider.
final ListHandler<CellTableGridInfo> sortHandler = new ListHandler<CellTableGridInfo>( dataProvider.getList())
{
@Override
public void onColumnSort(ColumnSortEvent event) {
super.onColumnSort(event);
dataProvider.refresh();
}
};
table.addColumnSortHandler(sortHandler);
// Connect the table to the data provider.
dataProvider.addDataDisplay(table);
// Add the data to the data provider, which automatically pushes it to the
// widget.
List<CellTableGridInfo> list = dataProvider.getList();
for (CellTableGridInfo contact : CONTACTS) {
list.add(contact);
}
/******end of To create header with colspan********/
sp.add(table);
sp.setStyleName("scrollCSS");
}
catch(Exception e)
{
Window.alert( "Excpetion CellTableGridCreator:buildCustomGrid():["+e.getMessage()+"]" );
}
return sp;
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.Window;
//import ibase.e12ria.client.E12AdvDataGrid;
//import ibase.e12ria.client.E12CommonUtils;
//import ibase.e12ria.client.E12Constants;
//import ibase.client.GWTDashBoardReport.Contact;
/**
* This class is used to show the data in paged format.
*
* @author base
*/
public class CellTableGridInfo
{
public String siteFor;
public String siteTo;
public String itemCode;
public String desc;
public String lotNo;
public String qtyOrd;
public String unit;
public String noArt;
public String mfgDate;
public String expiryDate;
public String transType;
public String tranCode;
public String tranName;
public CellTableGridInfo()
{
}
public CellTableGridInfo(String siteFor, String siteTo, String itemCode,String desc, String lotNo,String qtyOrd,
String unit,String noArt,String mfgDate,String expiryDate,String transType,String tranCode,
String tranName )
{
this.siteFor = siteFor;
this.siteTo = siteTo;
this.itemCode = itemCode;
this.desc = desc;
this.lotNo = lotNo;
this.qtyOrd=qtyOrd;
this.unit=unit;
this.noArt=noArt;
this.mfgDate=mfgDate;
this.expiryDate=expiryDate;
this.transType=transType;
this.tranCode=tranCode;
this.tranName=tranName;
}
public String getSiteFor()
{
return siteFor;
}
public String getSiteTo()
{
return siteTo;
}
public String getItemCode()
{
return itemCode;
}
public String getDescr()
{
return desc;
}
public String getLotNo()
{
return lotNo;
}
public String getQtyOrd()
{
return qtyOrd;
}
public String getUnit()
{
return unit;
}
public String getNoArt()
{
return noArt;
}
public String getMfgDate()
{
return mfgDate;
}
public String getExpiryDate()
{
return expiryDate;
}
public String getTransType()
{
return transType;
}
public String getTranCode()
{
return tranCode;
}
public String getTranName()
{
return tranName;
}
public void setDescr(String description)
{
this.desc = description;
}
public void setLotNo(String lotNo)
{
this.lotNo = lotNo;
}
public void setQtyOrd(String qtyOrd)
{
this.qtyOrd = qtyOrd;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public void setNoArt(String noArt)
{
this.noArt = noArt;
}
public void setMfgDate(String mfgDate)
{
this.mfgDate = mfgDate;
}
public void setExpiryDate(String expiryDate)
{
this.expiryDate = expiryDate;
}
public void setTransType(String transType)
{
this.transType = transType;
}
public void setTranCode(String tranCode)
{
this.tranCode = tranCode;
}
public void setTranName(String tranName)
{
this.tranName = tranName;
}
@SuppressWarnings("unchecked")
public ArrayList<String> getClassParameters(HashMap<String, HashMap> gridNGraphMeataDataMap)
{
LinkedHashMap<String, List<String>> gridNameMap = null;
ArrayList<String> paramDtlList = new ArrayList<String>();
CellTableGridInfo gridInfo =null;
try
{
gridNameMap = (LinkedHashMap<String, List<String>>) gridNGraphMeataDataMap.get("columnName");
gridInfo= new CellTableGridInfo();
for (Map.Entry<String, List<String>> entry : gridNameMap.entrySet())
{
String key = entry.getKey();
List<String> values = entry.getValue();
if(values.size()==1)
{
paramDtlList.add(values.get(0));
}
if(values.size()>1)
{
paramDtlList.add(values.get(0));
paramDtlList.add(values.get(1));
}
}
}
catch(Exception e)
{
Window.alert( "Excpetion in CellTableGridInfo:getClassParameters():["+e.getMessage()+"]" );
}
return paramDtlList;
}
public List<CellTableGridInfo> getDataInfo(HashMap<String, HashMap> gridNGraphMeataDataMap,JSONObject jsonObjGridData)
{
LinkedHashMap<String, List<String>> gridIDMap = null;
JSONObject jsonEachRow = null;
CellTableGridInfo info = null;
String siteFor=null;
String siteTo=null;
String itemCode=null;
String desc=null;
String lotNo=null;
String qtyOrd=null;
String unit=null;
String noArt=null;
String mfgDate=null;
String expiryDate=null;
String transType=null;
String tranCode=null;
String tranName=null;
ArrayList<String> graphDtlList = null;
List<CellTableGridInfo> dataList = null;
try
{
dataList=new ArrayList<CellTableGridInfo>();
gridIDMap = (LinkedHashMap<String, List<String>>) gridNGraphMeataDataMap.get("grid");
JSONObject jsonObjData =(JSONObject) jsonObjGridData.get("grid");
ArrayList<String> arrList = null;
for(int jRowCtr=0;jRowCtr<jsonObjData.size();jRowCtr++)
{
int count=0;
info= new CellTableGridInfo();
jsonEachRow = new JSONObject();
jsonEachRow = (JSONObject) jsonObjData.get(""+jRowCtr);
if(jsonEachRow!=null)
{
for(int i=0;i<jsonEachRow.size();i++)
{
arrList= new ArrayList<String>();
for (Map.Entry<String, List<String>> entry : gridIDMap.entrySet())
{
String key = entry.getKey();
List<String> values = entry.getValue();
if(values.size()==1)
{
arrList.add((""+jsonEachRow.get(""+values.get(0))).replace('"', ' '));
/* siteTo = (""+jsonEachRow.get(""+values.get(1))).replace('"', ' ');
itemCode = (""+jsonEachRow.get(""+values.get(2))).replace('"', ' ');
desc = (""+jsonEachRow.get(""+values.get(3))).replace('"', ' ');
lotNo = (""+jsonEachRow.get(""+values.get(4))).replace('"', ' ');
qtyOrd = (""+jsonEachRow.get(""+values.get(5))).replace('"', ' ');
unit = (""+jsonEachRow.get(""+values.get(6))).replace('"', ' ');
noArt = (""+jsonEachRow.get(""+values.get(7))).replace('"', ' ');
mfgDate = (""+jsonEachRow.get(""+values.get(8))).replace('"', ' ');
expiryDate = (""+jsonEachRow.get(""+values.get(9))).replace('"', ' ');
transType = (""+jsonEachRow.get(""+values.get(10))).replace('"', ' ');
tranCode = (""+jsonEachRow.get(""+values.get(11))).replace('"', ' ');
tranName = (""+jsonEachRow.get(""+values.get(12))).replace('"', ' '); */
count++;
}
}
}
info= new CellTableGridInfo(arrList.get(0),arrList.get(1),arrList.get(2),arrList.get(3),arrList.get(4),
arrList.get(5),arrList.get(6),arrList.get(7),arrList.get(8),arrList.get(9),
arrList.get(10),arrList.get(11),arrList.get(12) );
dataList.add(info);
}
}
}
catch(Exception e)
{
}
return dataList;
}
public void setCellTableColumn(ArrayList<String> paramDtlList,CellTable<CellTableGridInfo> table)
{
if(paramDtlList!=null)
{
String siteFor = checkNull(paramDtlList.get(0));
TextColumn<CellTableGridInfo> siteForColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.siteFor;
}
};
// currInColumn.setSortable(true);
table.addColumn(siteForColumn,siteFor);
String siteTo =checkNull( paramDtlList.get(1));
TextColumn<CellTableGridInfo> siteToColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.siteTo;
}
};
// currOutColumn.setSortable(true);
table.addColumn(siteToColumn,siteTo);
String itemCode = checkNull(paramDtlList.get(2));
TextColumn<CellTableGridInfo> itemCodeColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.itemCode;
}
};
// preInColumn.setSortable(true);
table.addColumn(itemCodeColumn,itemCode);
String descr = checkNull(paramDtlList.get(3));
TextColumn<CellTableGridInfo> descColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.desc;
}
};
descColumn.setSortable(true);
table.addColumn(descColumn,descr);
String lotNo =checkNull(paramDtlList.get(4));
TextColumn<CellTableGridInfo> lotNoColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.lotNo;
}
};
// preOutColumn.setSortable(true);
table.addColumn(lotNoColumn,lotNo);
String qtyOrd =checkNull(paramDtlList.get(5));
TextColumn<CellTableGridInfo> qtyOrdColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.qtyOrd;
}
};
// preOutColumn.setSortable(true);
table.addColumn(qtyOrdColumn,qtyOrd);
String unit =checkNull(paramDtlList.get(6));
TextColumn<CellTableGridInfo> unitColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.unit;
}
};
// preOutColumn.setSortable(true);
table.addColumn(unitColumn,unit);
String noArt =checkNull(paramDtlList.get(7));
TextColumn<CellTableGridInfo> noArtColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.noArt;
}
};
// preOutColumn.setSortable(true);
table.addColumn(noArtColumn,noArt);
String mfgDate =checkNull(paramDtlList.get(8));
TextColumn<CellTableGridInfo> mfgDateColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.mfgDate;
}
};
// preOutColumn.setSortable(true);
table.addColumn(mfgDateColumn,mfgDate);
String expiryDate =checkNull(paramDtlList.get(9));
TextColumn<CellTableGridInfo> expiryDateColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.expiryDate;
}
};
// preOutColumn.setSortable(true);
table.addColumn(expiryDateColumn,expiryDate);
String transType =checkNull(paramDtlList.get(10));
TextColumn<CellTableGridInfo> transTypeColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.transType;
}
};
// preOutColumn.setSortable(true);
table.addColumn(transTypeColumn,transType);
String tranCode =checkNull(paramDtlList.get(11));
TextColumn<CellTableGridInfo> tranCodeColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.tranCode;
}
};
// preOutColumn.setSortable(true);
table.addColumn(tranCodeColumn,tranCode);
String tranName =checkNull(paramDtlList.get(12));
TextColumn<CellTableGridInfo> tranNameColumn = new TextColumn<CellTableGridInfo>() {
@Override
public String getValue(CellTableGridInfo contact) {
return contact.tranName;
}
};
// preOutColumn.setSortable(true);
table.addColumn(tranNameColumn,tranName);
}
}
private String checkNull(String str)
{
if(str == "null")
{
return "";
}
else
{
return str ;
}
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Set;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.json.client.JSONValue;
import com.google.gwt.user.client.Window;
public class ChartCreator
{
public static JSONObject buildChartData(ArrayList<ArrayList<String>> graphDtlList, JSONObject jsonObjGraph, String dataSource)
{
String key = "";
String currentvalue = "";
String monthKey = null;
JSONObject graphJson = new JSONObject();
JSONObject categryJson = new JSONObject();
List<String> metaDataList = null;
List<String> xAxisColunList = null;
List<String> yAxisColunList = null;
List<String> xAxisColumnName = null;
List<String> yAxisColumnName = null;
List<String> renderInfoList = null;
List<String> colorInfoList = null;
List<String> valueList = null;
List<String> lineVisibleList = null;
List<String> dotThicknessList = null;
List<String> showValList = null;
List<String> chartTypeList = new ArrayList<String>();
List<String> mapValuList = null;
JSONValue barDataVal = null;
JSONValue jsonChartVal = null;
JSONValue categryDataVal = null;
JSONString jsnStringKey = null;
JSONString jsnStringValue = null;
JSONString dataStringKey = null;
JSONString dataStringValue = null;
Set<String> valueMapSet = null;
Object[] array = null;
HashMap<String, List<String>> allDataMap = null;
LinkedHashMap<JSONValue, JSONValue> categoryMap = null;
LinkedHashMap<JSONValue, JSONValue> barChartMap = null;
LinkedHashMap<JSONValue, JSONValue> barMap = null;
ArrayList<LinkedHashMap<JSONValue, JSONValue>> labelList = null;
ArrayList<LinkedHashMap<JSONValue, JSONValue>> barValueList = null;
ArrayList<LinkedHashMap<JSONValue, JSONValue>> allDataList = null;
for (int i = 0; i < graphDtlList.size(); i++)
{
if (i == 3)
{
xAxisColunList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 4)
{
yAxisColunList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 5)
{
metaDataList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 6)
{
xAxisColumnName = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 7)
{
yAxisColumnName = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 8)
{
renderInfoList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 9)
{
colorInfoList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 10)
{
lineVisibleList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 11)
{
dotThicknessList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 12)
{
showValList = (ArrayList<String>) graphDtlList.get(i);
}
if (i == 13)
{
chartTypeList = (ArrayList<String>) graphDtlList.get(i);
}
}
if (jsonObjGraph != null)
{
allDataMap = new HashMap<String, List<String>>();
barMap = new LinkedHashMap<JSONValue, JSONValue>();
labelList = new ArrayList<LinkedHashMap<JSONValue, JSONValue>>();
barValueList = new ArrayList<LinkedHashMap<JSONValue, JSONValue>>();
allDataList = new ArrayList<LinkedHashMap<JSONValue, JSONValue>>();
try
{
JSONObject jsonObjFrGraph =(JSONObject) jsonObjGraph.get(dataSource);
for (int jsnCnt = 0; jsnCnt < jsonObjFrGraph.size(); jsnCnt++)
{
JSONObject fetchRowWiseVal = (JSONObject) jsonObjFrGraph.get(String.valueOf(jsnCnt));
for (int xCnt = 0; xCnt < xAxisColunList.size(); xCnt++)
{
key = "" + fetchRowWiseVal.get(xAxisColunList.get(xCnt));
}
valueList = new ArrayList<String>();
for (int yCnt = 0; yCnt < yAxisColunList.size(); yCnt++)
{
currentvalue = (fetchRowWiseVal.get(yAxisColunList.get(yCnt)).toString().replace('"', ' ').trim());
valueList.add(currentvalue);
}
allDataMap.put(key, valueList);
key = "";
}
valueMapSet = allDataMap.keySet();
if(chartTypeList.get(0).trim().equals("bar"))
{
for (String keyString : valueMapSet)
{
mapValuList = allDataMap.get(keyString);
categoryMap = new LinkedHashMap<JSONValue, JSONValue>();
keyString = keyString.replace('"', ' ').trim();
jsnStringValue = new JSONString(keyString);
jsnStringKey = new JSONString("label");
categoryMap.put(jsnStringKey, jsnStringValue);
labelList.add(categoryMap);
dataStringKey = new JSONString("value");
}
for (int seriesCnt = 0; seriesCnt < mapValuList.size(); seriesCnt++)
{
barMap = new LinkedHashMap<JSONValue, JSONValue>();
barValueList = new ArrayList<LinkedHashMap<JSONValue, JSONValue>>();
array = valueMapSet.toArray();
for (int columnCnt = 0; columnCnt < array.length; columnCnt++)
{
monthKey = (String) array[columnCnt];
mapValuList = allDataMap.get(monthKey);
barChartMap = new LinkedHashMap<JSONValue, JSONValue>();
dataStringValue = new JSONString("" + mapValuList.get(seriesCnt));
barChartMap.put(dataStringKey, dataStringValue);
barChartMap.put(new JSONString("showValue"), new JSONString(showValList.get(seriesCnt)));
barValueList.add(barChartMap);
}
barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':'));
if ("column".equals(renderInfoList.get(seriesCnt)))
{
barMap.put(new JSONString("renderas"), new JSONString("Column"));
barMap.put(new JSONString("parentYAxis"), new JSONString("s"));
}
if ("line".equals(renderInfoList.get(seriesCnt)))
{
barMap.put(new JSONString("renderas"), new JSONString("Line"));
barMap.put(new JSONString("parentYAxis"), new JSONString("s"));
barMap.put(new JSONString("valuePosition"), new JSONString("ABOVE"));
}else{
barMap.put(new JSONString("valuePosition"), new JSONString("BELOW"));
}
barMap.put(new JSONString("color"), new JSONString(colorInfoList.get(seriesCnt)));
barMap.put(new JSONString("data"), barDataVal);
barMap.put(new JSONString("seriesname"), new JSONString(yAxisColumnName.get(seriesCnt)));
allDataList.add(barMap);
}
categryDataVal = JSONParser.parseStrict(labelList.toString().replace('=', ':'));
categryJson.put("category", categryDataVal);
graphJson.put("dataset", JSONParser.parseStrict(allDataList.toString().replace('=', ':')));
graphJson.put("categories", categryJson);
}
else if(chartTypeList.get(0).trim().equals("pie"))
{
for (String keyString : valueMapSet)
{
mapValuList = allDataMap.get(keyString);
categoryMap = new LinkedHashMap<JSONValue, JSONValue>();
keyString = keyString.replace('"', ' ').trim();
jsnStringValue = new JSONString(keyString);
jsnStringKey = new JSONString("label");
categoryMap.put(jsnStringKey, jsnStringValue);
dataStringKey = new JSONString("value");
for (int seriesCnt = 0; seriesCnt < mapValuList.size(); seriesCnt++)
{
dataStringValue = new JSONString("" + mapValuList.get(seriesCnt));
categoryMap.put(dataStringKey, dataStringValue);
barValueList.add(categoryMap);
barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':'));
}
graphJson.put("data", barDataVal);
}
}
jsonChartVal = JSONParser.parseStrict(metaDataList.toString());
graphJson.put("chart", jsonChartVal);
} catch (Exception e)
{
Window.alert(" Exception :: Build Final Graph component [" + e.getMessage() + "]");
}
}
return graphJson;
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.HashMap;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import ibase.e12ria.e12table.client.E12CustomTextCell;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
public class CustomFlxTable
{
private static final int HeaderRowIndex = 0;
int rowIndex = 1;
String tltStr = "Total";
final String LEFT = "left";
final String RIGHT = "right";
private void addColumn(Object columnHeading, FlexTable flexTable)
{
Widget widget = createCellWidget(columnHeading);
int cell = flexTable.getCellCount(HeaderRowIndex);
widget.setWidth("100%");
widget.addStyleName("FlexTable-ColumnLabel");
flexTable.setWidget(HeaderRowIndex, cell, widget);
flexTable.getCellFormatter().addStyleName(HeaderRowIndex, cell, "FlexTable-ColumnLabelCell");
}
private Widget createCellWidget(Object cellObject)
{
Widget widget = null;
if (cellObject instanceof Widget)
widget = (Widget) cellObject;
else
widget = new Label(cellObject.toString());
return widget;
}
private void addRowToTbl(ArrayList<String> cellDataList, final FlexTable flexTable, ArrayList<String> cellAlignList)
{
boolean isTotalRow = false;
Widget cellWidget = null;
String data = "";
for (int cell = 0; cell < cellDataList.size(); cell++)
{
cellWidget = createCellWidget(cellDataList.get(cell));
flexTable.setWidget(rowIndex, cell, cellWidget);
data = cellDataList.get(cell);
if (data.indexOf(tltStr) != -1)
{
isTotalRow = true;
}
if (isTotalRow)
{
if (LEFT.equalsIgnoreCase(cellAlignList.get(cell)))
{
flexTable.getCellFormatter().addStyleName(rowIndex, cell, "FlexTable-LblCell-Left");
} else if (RIGHT.equalsIgnoreCase(cellAlignList.get(cell)))
{
flexTable.getCellFormatter().addStyleName(rowIndex, cell, "FlexTable-LblCell-Right");
}
} else
{
if (LEFT.equalsIgnoreCase(cellAlignList.get(cell)))
{
flexTable.getCellFormatter().addStyleName(rowIndex, cell, "FlexTable-Even-Cell-Left");
} else if (RIGHT.equalsIgnoreCase(cellAlignList.get(cell)))
{
flexTable.getCellFormatter().addStyleName(rowIndex, cell, "FlexTable-Even-Cell-Right");
}
}
}
rowIndex++;
}
@SuppressWarnings("unchecked")
public FlexTable createFlxTbl(FlexTable flexTable, HashMap<String, HashMap> gridNGraphMeataDataMap, JSONObject jsonObjGridData,String componentId)
{
flexTable.insertRow(HeaderRowIndex);
flexTable.setCellSpacing(0);
flexTable.addStyleName("FlexTable");
gridNGraphMeataDataMap.toString().replace('=', ':');
HashMap<String, ArrayList<String>> graphDataMap = null;
ArrayList<String> graphDtlList = null;
try
{
graphDataMap = gridNGraphMeataDataMap.get("columnName"+componentId);
for (String graphKey : graphDataMap.keySet())
{
graphDtlList = graphDataMap.get(graphKey);
for (int jDataCtr = 0; jDataCtr < graphDtlList.size(); jDataCtr++)
{
addColumn(graphDtlList.get(jDataCtr), flexTable);
}
}
buildEachRowData(gridNGraphMeataDataMap, jsonObjGridData, flexTable,componentId);
} catch (Exception e)
{
Window.alert(" Exception : CustomFlxTable : creatFlxTbl(): [" + e.getMessage() + "]");
}
return flexTable;
}
@SuppressWarnings("unchecked")
public void buildEachRowData(HashMap<String, HashMap> gridNGraphMetaDataMap, JSONObject jsonObjGridData, FlexTable flexTable,String componentId)
{
gridNGraphMetaDataMap.toString().replace('=', ':');
ArrayList<String> graphDtlList = null;
JSONObject jsonEachRow = null;
String cellText = "";
String align = "";
HashMap<String, String> coloumAlignMap = null;
HashMap<String, ArrayList<String>> graphDataMap = null;
HashMap<Integer, E12CustomTextCell.CellData> rowData = null;
ArrayList<String> cellDataList = new ArrayList<String>();
graphDataMap = gridNGraphMetaDataMap.get(componentId);
coloumAlignMap = gridNGraphMetaDataMap.get("columnAlign"+componentId);
JSONObject jsonObjData = (JSONObject) jsonObjGridData.get(componentId);
ArrayList<String> cellAlignList = new ArrayList<String>();
for (String graphKey : coloumAlignMap.keySet())
{
align = coloumAlignMap.get(graphKey);
cellAlignList.add(align);
}
for (int jRowCtr = 0; jRowCtr < jsonObjData.size(); jRowCtr++)
{
rowData = new HashMap<Integer, E12CustomTextCell.CellData>();
cellDataList = new ArrayList<String>();
for (String graphKey : graphDataMap.keySet())
{
graphDtlList = graphDataMap.get(graphKey);
jsonEachRow = new JSONObject();
jsonEachRow = (JSONObject) jsonObjData.get("" + jRowCtr);
for (int jDataCtr = 0; jDataCtr < graphDtlList.size(); jDataCtr++)
{
cellText = "" + jsonEachRow.get("" + graphDtlList.get(jDataCtr));
cellText = cellText.replace('"', ' ').trim();
cellDataList.add(cellText);
}
}
addRowToTbl(cellDataList, flexTable, cellAlignList);
}
this.expandCollapseTbl(flexTable);
}
private void expandCollapseTbl(final FlexTable flexTable)
{
int rows = flexTable.getRowCount();
int lastTotalRow = 0;
int firstRow = 1;
Widget widget = null;
String total = "";
for (int i = 1; i < rows; i++)
{
widget = flexTable.getWidget(i, 0);
{
total = ((Label) widget).getText();
final Label testLbl = (Label) widget;
if (total.indexOf(tltStr) != -1)
{
lastTotalRow = i;
final int firstRow1 = firstRow;
final int lastTotalRow1 = lastTotalRow;
testLbl.addClickHandler(new ClickHandler()
{
boolean visibleFlag = false;
@Override
public void onClick(ClickEvent event)
{
for (int i = firstRow1; i < lastTotalRow1; i++)
{
flexTable.getRowFormatter().setVisible(i, visibleFlag);
}
if (visibleFlag)
{
visibleFlag = false;
} else
{
visibleFlag = true;
}
}
});
firstRow = lastTotalRow + 1;
}
}
}
}
//add method for flex table heading fixed
/*Method for flextable heading fix Dhanendra 09-10-2014*/
/*public FlexTable addColumnGrid(HashMap<String, HashMap> gridNGraphMeataDataMap, FlexTable flexTable)
{
flexTable.setCellSpacing(0);
flexTable.setCellPadding(0);
flexTable.addStyleName("FlexTable-ColumnLabel");
flexTable.setWidth("100%");
gridNGraphMeataDataMap.toString().replace('=', ':');
HashMap<String, ArrayList<String>> graphDataMap = null;
ArrayList<String> graphDtlList = null;
HashMap<String, String> coloumSizeMap = null;
coloumSizeMap = gridNGraphMeataDataMap.get("columnSize");
ArrayList<String> cellSizeList = new ArrayList<String>();
String size = "";
for (String graphKey : coloumSizeMap.keySet())
{
size = coloumSizeMap.get(graphKey);
cellSizeList.add(size);
}
graphDataMap = gridNGraphMeataDataMap.get("columnName");
int coloumCount=0;
for (String graphKey : graphDataMap.keySet())
{
graphDtlList = graphDataMap.get(graphKey);
for (int jDataCtr = 0; jDataCtr < graphDtlList.size(); jDataCtr++)
{
flexTable.setText(0, coloumCount, graphDtlList.get(jDataCtr));
flexTable.getCellFormatter().addStyleName(HeaderRowIndex, coloumCount, "FlexTable-ColumnLabelCell");
flexTable.getCellFormatter().setWidth(HeaderRowIndex, coloumCount, ""+cellSizeList.get(coloumCount));
}
coloumCount++;
}
return flexTable;
}*/
}
package ibase.client;
import ibase.e12ria.e12table.client.AbstractDataGrid;
import ibase.e12ria.e12table.client.ColumnInfoBean;
import ibase.e12ria.e12table.client.DataGridTableRowModel;
import ibase.e12ria.e12table.client.E12CustomColumn;
import ibase.e12ria.e12table.client.E12CustomTextCell;
import ibase.e12ria.e12table.client.ResizableHeader;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.TreeMap;
import com.google.gwt.cell.client.TextCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.logical.shared.ResizeEvent;
import com.google.gwt.event.logical.shared.ResizeHandler;
import com.google.gwt.i18n.shared.DateTimeFormat;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.cellview.client.ColumnSortEvent;
import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
import com.google.gwt.user.cellview.client.E12SimplePager;
import com.google.gwt.user.cellview.client.Header;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.view.client.ListDataProvider;
import com.google.gwt.xml.client.Node;
/**
* This class is used to show the data in paged format.
*
* @author base
*/
public class CustomGrid extends AbstractDataGrid<DataGridTableRowModel>
{
private String rangeText = "50";
ListDataProvider<DataGridTableRowModel> dataProvider = new ListDataProvider<DataGridTableRowModel>();
ArrayList<DataGridTableRowModel> dataGridTableRowList = new ArrayList<DataGridTableRowModel>();
PopupPanel contextMenuPanel = new PopupPanel(true);
public CustomGrid(int pageSize) {
super(pageSize);
}
@Override
public void refresh() {
}
@Override
public void performDoubleClick() {
}
@Override
public void createContextMenu() {
}
@Override
public void showContextMenu(int selectedRow, int xPosition, int yPosition) {
}
@SuppressWarnings("unchecked")
public FlexTable jsonToArrayList(HashMap<String, HashMap> gridNGraphMeataDataMap,JSONObject jsonObjGridData ,String dataSrc,String componentId)
{
DataGridTableRowModel rowDataGrid= null;
E12CustomTextCell.CellData celldata = null;
ArrayList<ColumnInfoBean> dataGridTableColList = new ArrayList<ColumnInfoBean>();
FlexTable flexTable= new FlexTable();
//for arraylist of DataGridTableRowModel object (rows of data)
HashMap<Integer, E12CustomTextCell.CellData> rowData = null;
gridNGraphMeataDataMap.toString().replace('=', ':');
HashMap<String, ArrayList<String>> graphDataMap = null;
HashMap<String, ArrayList<String>> graphSizeMap=null;
HashMap<String, ArrayList<String>> graphAlignMap = null;
ArrayList<String> graphDtlList = new ArrayList<String>();
ArrayList<String> graphAlignList=new ArrayList<String>();
try
{
graphDataMap=gridNGraphMeataDataMap.get(componentId);
JSONObject jsonEachRow = null;
JSONObject jsonObjData =(JSONObject) jsonObjGridData.get(dataSrc);
int count=0;
for(int jRowCtr=0;jRowCtr<jsonObjData.size();jRowCtr++)
{
rowData = new HashMap<Integer, E12CustomTextCell.CellData> ();
for (String graphKey : graphDataMap.keySet())
{
graphDtlList = graphDataMap.get(graphKey);
jsonEachRow = new JSONObject();
jsonEachRow = (JSONObject)jsonObjData.get(""+jRowCtr);
count=rowData.size();
for(int jDataCtr=0;jDataCtr<graphDtlList.size();jDataCtr++)
{
celldata = new E12CustomTextCell.CellData((""+jsonEachRow.get(""+graphDtlList.get(jDataCtr))).replace('"', ' '));
celldata.setMandatory(true);
celldata.setOriginalText("Cell"+jDataCtr);
celldata.setName(""+(graphDtlList.get(jDataCtr)).replace('"', ' '));
rowData.put(count, celldata);
count++;
}
}
rowDataGrid = new DataGridTableRowModel(rowData);
dataGridTableRowList.add(rowDataGrid);
}
ColumnInfoBean columnInfoBean=null;
graphDataMap =gridNGraphMeataDataMap.get("columnName"+componentId);
graphSizeMap =gridNGraphMeataDataMap.get("columnSize"+componentId);
graphAlignMap =gridNGraphMeataDataMap.get("columnAlign"+componentId);
for (String graphKey : graphDataMap.keySet())
{
graphDtlList = graphDataMap.get(graphKey);
for(int jDataCtr=0;jDataCtr<graphDtlList.size();jDataCtr++)
{
columnInfoBean = new ColumnInfoBean(""+(graphDtlList.get(jDataCtr)),"physicalName", "logicalName", ""+graphSizeMap.get(graphKey));
dataGridTableColList.add(columnInfoBean);
graphAlignList.add(""+graphAlignMap.get(graphKey));
}
}
flexTable.setStyleName("flexCSS");
flexTable=createTableComponent(dataGridTableRowList,dataGridTableColList,flexTable,graphAlignList);
} catch (Exception e)
{
Window.alert(" Exception : DataGrid : jsonToArrayList(): [" + e.getMessage() + "]");
}
return flexTable;
}
/**
* It creates The AdvDataGrid Table .
*
* @param dataGridTableRowList
* @return
*/
public FlexTable createTableComponent( ArrayList< DataGridTableRowModel> dataGridTableRowList, ArrayList<ColumnInfoBean> dataGridTableColList, FlexTable flexTable,ArrayList<String> graphAlignList)
{
final int noOfRows = dataGridTableRowList.size();
final int noOfColumns = dataGridTableColList.size();
dataProvider.setList( dataGridTableRowList );
//Add by Dnyaneshwar chavan on 07-DEC-2012 [WS2GSUN002 || ] Start
E12CustomColumn firstColumn = null;
//Add by Dnyaneshwar chavan on 07-DEC-2012 [WS2GSUN002 || ] End
ResizableHeader<DataGridTableRowModel> header=null;
try
{
E12CustomTextCell.isValidate = false;
E12CustomTextCell.currentCellElement = null;
E12CustomTextCell.currentContext = null;
E12CustomTextCell.incrFactor = 0;
E12CustomTextCell.editableField = null;
E12CustomTextCell.prvEditableField = null;
// handler for table sorting
final ListHandler<DataGridTableRowModel> sortHandler = new ListHandler<DataGridTableRowModel>( dataProvider.getList())
{
@Override
public void onColumnSort(ColumnSortEvent event) {
super.onColumnSort(event);
dataProvider.refresh();
}
};
this.addColumnSortHandler(sortHandler);
int width = 0;
for( int i= 0 ; i < noOfColumns ; i++ )
{
final int index = i;
ColumnInfoBean colInfo = dataGridTableColList.get( i );
final String colName = colInfo.getDisplayNameOfCol();
width = colInfo.getWidth();
E12CustomColumn column = new E12CustomColumn(i, false);
column.setSortable( true );
if(graphAlignList.get(i).trim().equalsIgnoreCase("left"))
{
column.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
}
else if(graphAlignList.get(i).trim().equalsIgnoreCase("right"))
{
column.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
}
else if(graphAlignList.get(i).trim().equalsIgnoreCase("center"))
{
column.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
}
if ( i == 0 )
{
firstColumn = column;
}
final String dispDate ="12/12/2014";
this.setColumnWidth( column, width +"px" );
header = new ResizableHeader<DataGridTableRowModel>(colName, this, column ) {
@Override
public String getValue() {
return colName;
}
};
Header<String> footer1 = new Header<String>(new TextCell()) {
@Override
public String getValue() {
return "";
}
};
this.addColumn(column, header, null);
}
dataProvider.addDataDisplay( this );
dataProvider.refresh();
this.getColumnSortList().clear();
this.getColumnSortList().push( firstColumn );
this.getColumnSortList().push( firstColumn );
ColumnSortEvent.fire(this, this.getColumnSortList());
}
catch (Exception e )
{
Window.alert("Exception in table "+ e.getMessage()) ;
}
GridThemes.applyDatagridThemes();
E12SimplePager.Resources pagerResources = GWT.create(E12SimplePager.Resources.class);
final E12SimplePager pager = new E12SimplePager(E12SimplePager.TextLocation.CENTER, pagerResources, false, 0 , true);
pager.setDisplay(this);
pager.setRangeText(rangeText);
Command setRowCmd = new Command() {
@Override
public void execute() {
try
{
int rowNo= (int)Double.parseDouble( pager.getRangeText().trim() );
if( rowNo > 0 && rowNo <= noOfRows)
{
CustomGrid.this.setPageSize( rowNo );
pager.firstPage();
dataProvider.refresh();
rangeText = pager.getRangeText();
pager.setRangeText(pager.getRangeText());
}
else
{
pager.setRangeText("Error");
}
}
catch (Exception e)
{
pager.setRangeText("Error");
}
}
};
pager.setRangeCommand( setRowCmd );
flexTable.setWidget(0, 0, this);
flexTable.setWidget(1, 0, pager);
flexTable.setHeight( Window.getClientHeight() - 195 + "px" );
//flexTable.setWidth( Window.getClientWidth() -10+ "px" );
//flexTable.setWidth("100% !important");
setHeight( Window.getClientHeight() - 207+ "px" );
setHeight( ( ( Window.getClientHeight() - 207 ))+ "px" );
flexTable.getCellFormatter().setStyleName(0 ,0 , "gwt-ScrollTable");
//flexTable.getCellFormatter().setStyleName(1 ,0 , "e12Pager");
if( GridThemes.getBrowserVersion() == -1 )
{
flexTable.getCellFormatter().setStyleName(1 ,0 , "e12Pager");
}
else
{
flexTable.getCellFormatter().setStyleName(1 ,0 , "e12Pager-forIE");
}
addStyleName("e12AdvDataGrid-SideBars");
return flexTable;
}
@Override
public FlexTable createTableComponent(
ArrayList<DataGridTableRowModel> dataGridTableRowList,
TreeMap<Integer, Object> dataGridTableColList) {
return null;
}
@Override
public FlexTable createTableComponent(
ArrayList<DataGridTableRowModel> dataGridTableRowList,
ArrayList<ColumnInfoBean> dataGridTableColList, FlexTable flexTable)
{
// TODO Auto-generated method stub
return null;
}
public void showOptionMenu()
{
//DataGridTableRowModel obj = getVisibleItem(selectedRow);
//getSelectionModel().setSelected(obj, true);
//this.selDataGridTRModel = obj;
// createContextMenu();
//performOnTouch();
{
final E12CustomAnimation slideAnim = new E12CustomAnimation(contextMenuPanel.getElement());
final int left_to = Window.getClientWidth() - 170;
final int left_from = Window.getClientWidth();
slideAnim.scrollFromAndTo(left_from, 40, left_to, 40, 500);
Window.addResizeHandler(new ResizeHandler() {
@Override
public void onResize(ResizeEvent event) {
int left_to1 = Window.getClientWidth() - 170;
int left_from1 = Window.getClientWidth();
slideAnim.scrollFromAndTo(left_from1, 40, left_to1, 40, 500);
}
});
contextMenuPanel.setHeight(Window.getClientHeight() - 80 + "px");
}
contextMenuPanel.setStyleName("slidePopupPanel");
contextMenuPanel.setAutoHideEnabled(true);
contextMenuPanel.show();
}
}
package ibase.client;
import ibase.e12ria.e12table.client.ColumnInfoBean;
import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.cell.client.Cell.Context;
import com.google.gwt.cell.client.EditTextCell;
import com.google.gwt.dom.builder.shared.TableCellBuilder;
import com.google.gwt.dom.builder.shared.TableRowBuilder;
import com.google.gwt.dom.client.Style.Cursor;
import com.google.gwt.user.cellview.client.AbstractCellTable;
import com.google.gwt.user.cellview.client.AbstractHeaderOrFooterBuilder;
import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.cellview.client.ColumnSortList;
import com.google.gwt.user.cellview.client.ColumnSortList.ColumnSortInfo;
import com.google.gwt.user.cellview.client.Header;
import com.google.gwt.user.cellview.client.TextHeader;
public class CustomHeaderBuilder extends AbstractHeaderOrFooterBuilder<ColumnInfoBean> {
public CustomHeaderBuilder(AbstractCellTable<ColumnInfoBean> table,boolean isFooter)
{
super(table, isFooter);
// TODO Auto-generated constructor stub
}
private Header<String> firstNameHeader = new TextHeader("Name");
protected boolean buildHeaderOrFooterImpl()
{
Column<ColumnInfoBean, String> firstNameColumn = new Column<ColumnInfoBean, String>(new EditTextCell()) {
@Override
public String getValue(ColumnInfoBean object) {
return object.getDisplayNameOfCol();
}
};
TableRowBuilder tr = startRow();
tr.startTH().colSpan(2).rowSpan(2);
tr.endTH();
TableCellBuilder th = tr.startTH().colSpan(2);
th.style().trustedProperty("border-right", "10px solid white").cursor(Cursor.POINTER).endStyle();
th.text("Current Year").endTH();
// Information group header.
th = tr.startTH().colSpan(3);
th.text("Previous Year").endTH();
// Get information about the sorted column.
ColumnSortList sortList = null;
ColumnSortInfo sortedInfo = (sortList.size() == 0) ? null : sortList.get(0);
Column<?, ?> sortedColumn = (sortedInfo == null) ? null : sortedInfo.getColumn();
boolean isSortAscending = (sortedInfo == null) ? false : sortedInfo.isAscending();
tr = startRow();
buildHeader(tr, firstNameHeader, firstNameColumn, sortedColumn, isSortAscending, false, false);
return true;
}
private void buildHeader(TableRowBuilder out, Header<?> header, Column<ColumnInfoBean, ?> column,
Column<?, ?> sortedColumn, boolean isSortAscending, boolean isFirst, boolean isLast) {
// Choose the classes to include with the element.
boolean isSorted = true;
// Create the table cell.
TableCellBuilder th = out.startTH();
// Associate the cell with the column to enable sorting of the column.
enableColumnHandlers(th, column);
// Render the header.
Context context = new Context(0, 2, header.getKey());
renderSortableHeader(th, context, header, isSorted, isSortAscending);
// End the table cell.
th.endTH();
}
}
package ibase.client;
import com.google.gwt.animation.client.Animation;
import com.google.gwt.dom.client.Style;
import com.google.gwt.user.client.Element;
public class E12CustomAnimation extends Animation
{
private final Element element;
private int startX;
private int startY;
private int finalX;
private int finalY;
public E12CustomAnimation(Element element)
{
this.element = element;
}
public void scrollTo(int x, int y, int milliseconds)
{
this.finalX = x;
this.finalY = y;
startX = element.getOffsetLeft();
startY = element.getOffsetTop();
if (milliseconds == 0)
{
onComplete();
return;
}
run(milliseconds);
}
public void scrollFromAndTo(int startX, int startY, int finalX, int finalY, int milliseconds)
{
this.finalX = finalX;
this.finalY = finalY;
this.startX = startX;
this.startY = startY;
if (milliseconds == 0)
{
onComplete();
return;
}
run(milliseconds);
}
@Override
protected void onUpdate(double progress)
{
double positionX = startX + (progress * (this.finalX - startX));
double positionY = startY + (progress * (this.finalY - startY));
this.element.getStyle().setLeft(positionX, Style.Unit.PX);
this.element.getStyle().setTop(positionY, Style.Unit.PX);
}
@Override
protected void onComplete()
{
super.onComplete();
this.element.getStyle().setLeft(this.finalX, Style.Unit.PX);
this.element.getStyle().setTop(this.finalY, Style.Unit.PX);
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.ArrayList;
import com.google.gwt.core.client.Callback;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.VerticalPanel;
/**
* This class is main class for create a dynamic E12DashBoard page. <BR>
* Parse the xml value and create a DataSet. <BR>
* This class hold the FilterContainer and GroupComponentContainer.
*/
/**
* @author sachin shinde
*/
public class E12DashBoardPage extends Composite
{
/** This is main container for show the GWTDashbaordReport */
public static VerticalPanel mainReportContainer = new VerticalPanel();
private static GraphComponent graphComponent = null;
public JSONObject metaDataJsnObj = null;
public E12DashBoardPage(ArrayList<String> parameterList, JSONObject metaDataJsnObj)
{
try
{
this.metaDataJsnObj = metaDataJsnObj;
graphComponent = new GraphComponent(parameterList,metaDataJsnObj);
graphComponent.setWidth("100%");
mainReportContainer.setWidth("100%");
mainReportContainer.add(graphComponent);
initWidget(mainReportContainer);
initaliseGraphNGrid(parameterList);
} catch (Exception e)
{
Window.alert("Exception :: E12DashBoardPage parametarized constructor [" + e.getMessage() + "]");
}
}
public static void initaliseGraphNGrid(ArrayList<String> parameterList)
{
graphComponent.getData(new Callback<JSONObject, String>()
{
@Override
public void onSuccess(JSONObject jsnObj)
{
}
@Override
public void onFailure(String result)
{
Window.alert("Exception in initaliseGraphNGrid():: E12DashBoardPage [" + result + "]");
}
}, parameterList);
}
public static void getJsonForFilterData(final Callback<JSONObject, String> callback, String fileName)
{
String objActionPath = null;
final int STATUS_CODE_OK = 200;
objActionPath = "/ibase/ParentMetaDataServlet?fileName=" + fileName;
try
{
RequestBuilder reqBuilder = new RequestBuilder(RequestBuilder.POST, objActionPath);
reqBuilder.sendRequest(null, new RequestCallback()
{
@Override
public void onResponseReceived(Request request, Response response)
{
if (STATUS_CODE_OK == response.getStatusCode())
{
JSONObject jsonObjMetaData = null;
jsonObjMetaData = (JSONObject) JSONParser.parseStrict(response.getText());
callback.onSuccess(jsonObjMetaData);
} else
{
Window.alert("Responce is null,case of metadata reading");
}
}
@Override
public void onError(com.google.gwt.http.client.Request request, Throwable exception)
{
Window.alert("Error occured in getJsonForFilterData() :E12DashBoardPage:" + exception.getMessage());
}
});
} catch (RequestException e)
{
e.printStackTrace();
}
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.MenuItem;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.RadioButton;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.SuggestBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.xml.client.Document;
import com.google.gwt.xml.client.Node;
import com.google.gwt.xml.client.NodeList;
import com.google.gwt.xml.client.XMLParser;
public class FilterCreator extends Composite
{
PopupPanel contextMenuPanel = new PopupPanel(true);
public final int STATUS_CODE_OK = 200;
HorizontalPanel vPanel = new HorizontalPanel();
final HorizontalPanel popUpHPnl = new HorizontalPanel();
final HorizontalPanel lablePanle = new HorizontalPanel();
final HorizontalPanel buttonPanle = new HorizontalPanel();
Image HeadingLableImg = new Image("FusionChart/images/menu_button.png");
Image openButton = new Image("FusionChart/images/analysis_scope.png");
String xmlName = "";
public JSONObject metaDataJsnObj = null;
boolean isParameterPrsnt = false;
Label label = null;
ArrayList<String> title = new ArrayList<String>();
public FilterCreator(ArrayList<String> parameterList, JSONObject metaDataJsnObj)
{
xmlName = parameterList.get(0);
label = new Label();
title = new MetaDataDtl().getTitle(metaDataJsnObj);
if (title.size() > 1)
{
label.setText(title.get(0) + " " + getMonth(parameterList.get(1)) + title.get(1) + getMonth(parameterList.get(2)));
} else
{
//this will depend on client requirement OTC
label.setText(title.get(0) + parameterList.get(2) +"-"+parameterList.get(3));
}
HorizontalPanel headingLableImgPanel = new HorizontalPanel();
HeadingLableImg.setStyleName("filterImage");
// headingLableImgPanel.add(HeadingLableImg);
headingLableImgPanel.add(getViewFilter(parameterList,metaDataJsnObj));
//CustomGrid cg = new CustomGrid(10);
//headingLableImgPanel.add(cg.showOptionMenu(1));
headingLableImgPanel.add(label);
lablePanle.add(headingLableImgPanel);
label.getElement().setId("titleLbl");
lablePanle.setStylePrimaryName("lablePanleCSS");
lablePanle.setCellHorizontalAlignment(label, HasHorizontalAlignment.ALIGN_LEFT);
//openButton.setHeight("35px");
openButton.setStyleName("filterImage");
buttonPanle.add(openButton);
buttonPanle.setCellHorizontalAlignment(openButton, HasHorizontalAlignment.ALIGN_RIGHT);
buttonPanle.setStylePrimaryName("vPanelCSS");
vPanel.setWidth("100%");
buttonPanle.setWidth("100%");
lablePanle.setWidth("100%");
vPanel.setSpacing(10);
vPanel.add(lablePanle);
vPanel.add(buttonPanle);
this.metaDataJsnObj = metaDataJsnObj;
openButton.addClickHandler(new FilterBtnActionHandler());
initWidget(vPanel);
for (int i = 1; i < parameterList.size(); i++)
{
if (parameterList.get(i).trim().length() > 0)
{
isParameterPrsnt = true;
}
}
if (isParameterPrsnt)
{
getMetaDataForFltr(parameterList);
}
}
public void getMetaDataForFltr(final ArrayList<String> parameterList)
{
final ArrayList<FilterInfo> filterList = new MetaDataDtl().getFilters(metaDataJsnObj);
//final E12PopupPanel mainPopupPnl = new E12PopupPanel(true);
final PopupPanel mainPopupPnl=new PopupPanel(true);
/*final DialogBox mainPopupPnl=new DialogBox(true);
mainPopupPnl.setText("Application");
*/
VerticalPanel homePgFltrPopupVPnl = new VerticalPanel();
HorizontalPanel finishCancelBtnsHPnl = new HorizontalPanel();
Label headinglable = new Label("Analysis Scope");
Image analysisImage = new Image("FusionChart/images/analysis_scope.png");
/*Button cancelBtn = new Button("Cancel");
Button finishBtn = new Button("Finish");*/
Image finishimage = new Image("FusionChart/images/check.png");
Image cancelimage = new Image("FusionChart/images/close.png");
TextBox inputTxtBox = null;
String[] fltrParmtrArray = null;
String filtrString = "";
int cnt = 0;
int noOfFiltr = 0;
Label columnNameLbl = null;
popUpHPnl.setSpacing(5);
homePgFltrPopupVPnl.setStylePrimaryName("fltrPopupVPnl");
for (int scrlPnlCnt = 0; scrlPnlCnt < popUpHPnl.getWidgetCount(); scrlPnlCnt++)
{
if (!(popUpHPnl.getWidget(scrlPnlCnt) instanceof Label))
{
noOfFiltr++;
}
}
if (noOfFiltr != filterList.size())
{
popUpHPnl.clear();
for (FilterInfo filterInfo : filterList)
{
cnt++;
if (parameterList != null && parameterList.size() > 1)
{
filtrString = parameterList.get(cnt);
if (filtrString.length() > 0)
{
fltrParmtrArray = getSplitedStrng(filtrString);
} else
{
fltrParmtrArray = null;
}
}
if (filterInfo.filterType.equals("1"))
{
/*columnNameLbl = new Label();
columnNameLbl.setText(filterInfo.getColName());*/
inputTxtBox = new TextBox();
inputTxtBox.setTitle(filterInfo.getColName());
inputTxtBox.setStylePrimaryName("textBoxCss");
VerticalPanel outerVPanel = new VerticalPanel();
/*outerVPanel.setHeight("200px");*/
HorizontalPanel Hpanel = new HorizontalPanel();
VerticalPanel Vpanel = new VerticalPanel();
columnNameLbl = new Label(""+filterInfo.getColName());
Vpanel.add(columnNameLbl);
columnNameLbl.setStyleName("filterHeaderLabel");
Vpanel.setStyleName("filterHeaderPanel");
Hpanel.add(inputTxtBox);
outerVPanel.add(Vpanel);
outerVPanel.add(Hpanel);
if (fltrParmtrArray != null)
{
for (int arrayCnt = 0; arrayCnt < fltrParmtrArray.length; arrayCnt++)
{
inputTxtBox.setText(fltrParmtrArray[arrayCnt]);
}
}
/*popUpHPnl.add(columnNameLbl);
popUpHPnl.add(inputTxtBox);*/
popUpHPnl.add(outerVPanel);
}
if (filterInfo.filterType.equals("2"))
{
getPopHlpStrgFrAutoComp(filterInfo, popUpHPnl, fltrParmtrArray);
}
if (filterInfo.filterType.equals("3") || filterInfo.filterType.equals("5"))
{
getPopHelpString(popUpHPnl, filterInfo, fltrParmtrArray);
}
}
}
/*cancelBtn.setStylePrimaryName("button red-Btn");
finishBtn.setStylePrimaryName("button green-Btn");*/
headinglable.setStyleName("filterDivHeadingName"); //Dhanendra 12-09-2014
HorizontalPanel analysispanel = new HorizontalPanel();
finishCancelBtnsHPnl.setWidth("100%");
//finishCancelBtnsHPnl.setCellHorizontalAlignment(headinglable, HasHorizontalAlignment.ALIGN_LEFT);
finishCancelBtnsHPnl.getElement().setAttribute("text-align", "left");
analysisImage.setHeight("30px");
analysispanel.add(analysisImage);
analysispanel.add(headinglable);
finishCancelBtnsHPnl.add(analysispanel);
HorizontalPanel hpanelforbutton = new HorizontalPanel();
/*hpanelforbutton.add(finishBtn);
hpanelforbutton.add(cancelBtn);*/
/*finishCancelBtnsHPnl.setCellHorizontalAlignment(finishimage, HasHorizontalAlignment.ALIGN_CENTER);
finishCancelBtnsHPnl.setCellHorizontalAlignment(cancelimage, HasHorizontalAlignment.ALIGN_CENTER);*/
hpanelforbutton.getElement().setAttribute("align", "right");
finishimage.setHeight("25px");
cancelimage.setHeight("25px");
hpanelforbutton.add(finishimage);
hpanelforbutton.add(cancelimage);
cancelimage.setStyleName("imgalignment");
finishCancelBtnsHPnl.setCellHorizontalAlignment(hpanelforbutton, HasHorizontalAlignment.ALIGN_RIGHT);
finishCancelBtnsHPnl.add(hpanelforbutton);
/*finishCancelBtnsHPnl.add(finishBtn);
finishCancelBtnsHPnl.add(cancelBtn);*/
/*finishCancelBtnsHPnl.setCellHorizontalAlignment(finishBtn, HasHorizontalAlignment.ALIGN_RIGHT);
finishCancelBtnsHPnl.setCellHorizontalAlignment(cancelBtn, HasHorizontalAlignment.ALIGN_RIGHT);*/
//finishCancelBtnsHPnl.setCellVerticalAlignment(cancelBtn, HasVerticalAlignment.ALIGN_MIDDLE);
finishCancelBtnsHPnl.setStyleName("filterdivHeading");
/*finishCancelBtnsHPnl.add(finishBtn);
finishCancelBtnsHPnl.setCellHorizontalAlignment(finishBtn, HasHorizontalAlignment.ALIGN_LEFT);
finishCancelBtnsHPnl.setCellVerticalAlignment(finishBtn, HasVerticalAlignment.ALIGN_MIDDLE);*/
finishCancelBtnsHPnl.setSpacing(2);
homePgFltrPopupVPnl.add(finishCancelBtnsHPnl);
homePgFltrPopupVPnl.add(popUpHPnl);
mainPopupPnl.setPopupPosition(100, 60);
mainPopupPnl.getElement().setId("filterMainOuterDiv");
mainPopupPnl.add(homePgFltrPopupVPnl);
mainPopupPnl.show();
//cancelBtn.addClickHandler(new ClickHandler()
cancelimage.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
mainPopupPnl.hide();
}
});
//finishBtn.addClickHandler(new ClickHandler()
finishimage.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
int row = 0;
FlexTable grid = null;
CheckBox checkBox = null;
TextBox fltrTxtBox = null;
SuggestBox suggestBox = null;
ScrollPanel scrollPnl = null;
ArrayList<String> popUpSendDtatList = new ArrayList<String>();
FilterInfo fltrInfo = null;
String colName = "";
popUpSendDtatList.add(xmlName);
//Window.alert("Filter List Size= "+filterList.size());
//Window.alert("popUpHPnl.getWidgetCount()==== "+popUpHPnl.getWidgetCount());
for (int i = 0; i < filterList.size(); i++)
{
fltrInfo = filterList.get(i);
colName = fltrInfo.getColName();
//Window.alert("colName===: "+colName);
for (int scrlPnlCnt = 0; scrlPnlCnt < popUpHPnl.getWidgetCount(); scrlPnlCnt++)
{
if (popUpHPnl.getWidget(scrlPnlCnt) instanceof VerticalPanel)
{
//Window.alert("In VerticalPanel");
VerticalPanel verticalPanel=(VerticalPanel)popUpHPnl.getWidget(scrlPnlCnt);
//Window.alert("VerticalPanel===: "+verticalPanel.getTitle());
if(verticalPanel.getWidget(1) instanceof HorizontalPanel)
{
//Window.alert("In HorizontalPanel");
//Window.alert("=verticalPanel.getWidgetCount()="+verticalPanel.getWidgetCount());
HorizontalPanel horizontalPanel=(HorizontalPanel)verticalPanel.getWidget(1);
//Window.alert("horizontalPanel.getWidget(0)===="+horizontalPanel);
//Window.alert("HorizontalPanel===: "+horizontalPanel.getTitle());
if(horizontalPanel.getWidget(0) instanceof ScrollPanel)
{
//Window.alert("In scrollPanel");
scrollPnl = (ScrollPanel) horizontalPanel.getWidget(0);
//Window.alert("scrollPnl.getTitle()======="+scrollPnl.getTitle());
//Window.alert("List==: "+scrollPnl);
StringBuffer selectedChkBoxBuffer = new StringBuffer();
// add here 21 july14
grid = (FlexTable) scrollPnl.getWidget();
row = grid.getRowCount();
for (int rowCnt = 1; rowCnt < row; rowCnt++)
{
checkBox = (CheckBox) grid.getWidget(rowCnt, 0);
if (checkBox.getValue())
{
if (selectedChkBoxBuffer.length() != 0)
{
selectedChkBoxBuffer.append(", " + grid.getText(rowCnt, 1));
} else
{
selectedChkBoxBuffer.append(grid.getText(rowCnt, 1));
}
//Window.alert("selectedChkBoxBuffer.toString(Value)["+selectedChkBoxBuffer.toString()+"]");
}
}
//Window.alert("colName["+colName +"], scrollPnlName["+scrollPnl.getTitle()+"]");
if (scrollPnl.getTitle().equals(colName))
{
popUpSendDtatList.add(selectedChkBoxBuffer.toString());
//Window.alert("popUpSendDtatList["+popUpSendDtatList+"]");
}
}
else if(horizontalPanel.getWidget(0) instanceof TextBox)
{
//Window.alert("In TextBox");
fltrTxtBox = (TextBox) horizontalPanel.getWidget(0);
//Window.alert("scrollPnl.getTitle()======="+fltrTxtBox.getTitle());
//Window.alert("colName["+colName +"], scrollPnlName["+fltrTxtBox.getTitle()+"]");
if (fltrTxtBox.getTitle().equals(colName))
{
if (!fltrTxtBox.getText().isEmpty())
{
popUpSendDtatList.add(fltrTxtBox.getText());
} else
{
Window.alert(fltrInfo.getColName() + "Can't Be Empty");
}
}
}else if (popUpHPnl.getWidget(scrlPnlCnt) instanceof SuggestBox)
{
suggestBox = (SuggestBox) popUpHPnl.getWidget(scrlPnlCnt);
if (suggestBox.getTitle().equals(colName))
{
if (!suggestBox.getText().isEmpty())
{
popUpSendDtatList.add(suggestBox.getText());
} else
{
Window.alert(fltrInfo.getColName() + "Can't Be Empty");
}
}
}
}
}
}
}
mainPopupPnl.hide();
if (title.size() > 1)
{
label.setText(title.get(0) + " " + getMonth(popUpSendDtatList.get(1)) + title.get(1) + getMonth(popUpSendDtatList.get(2)));
} else
{
//this will depend on client requirement OTC
label.setText(title.get(0) + popUpSendDtatList.get(2) +"-"+popUpSendDtatList.get(3));
}
// label.setText(title+" "+getMonth(popUpSendDtatList.get(1)));
E12DashBoardPage.initaliseGraphNGrid(popUpSendDtatList);
}
});
}
public void getPopHelpString(final HorizontalPanel popUpHPnl, final FilterInfo filterInfo, final String[] splitedArray)
{
String objActionPath = "/ibase/DashboardFilterServlet?FIELDNAME=" + filterInfo.getColNameId() + "&MODNAME=" + filterInfo.getColModuleName();
try
{
RequestBuilder reqBuilder = new RequestBuilder(RequestBuilder.POST, objActionPath);
reqBuilder.sendRequest(null, new RequestCallback()
{
@Override
public void onResponseReceived(Request request, Response response)
{
if (filterInfo.filterType.equals("3"))
{
VerticalPanel outerVPanel = new VerticalPanel();
outerVPanel.setHeight("200px");
HorizontalPanel Hpanel = new HorizontalPanel();
VerticalPanel Vpanel = new VerticalPanel();
Label labelTh = new Label(""+filterInfo.getColName());
Vpanel.add(labelTh);
labelTh.setStyleName("filterHeaderLabel");
Vpanel.setStyleName("filterHeaderPanel");
Hpanel.add(popHlpGridChkBox(getPopUpDataMap(response.getText()), filterInfo, splitedArray));
outerVPanel.add(Vpanel);
outerVPanel.add(Hpanel);
popUpHPnl.add(outerVPanel);
//popUpHPnl.add(popHlpGridChkBox(getPopUpDataMap(response.getText()), filterInfo, splitedArray));
} else if (filterInfo.filterType.equals("5"))
{
VerticalPanel outerVPanel = new VerticalPanel();
outerVPanel.setHeight("200px");
HorizontalPanel Hpanel = new HorizontalPanel();
VerticalPanel Vpanel = new VerticalPanel();
Label labelTh = new Label(""+filterInfo.getColName());
Vpanel.add(labelTh);
labelTh.setStyleName("filterHeaderLabel");
Vpanel.setStyleName("filterHeaderPanel");
Hpanel.add(popHelpGridRadioBtn(getPopUpDataMap(response.getText()), filterInfo, splitedArray));
outerVPanel.add(Vpanel);
outerVPanel.add(Hpanel);
popUpHPnl.add(outerVPanel);
//popUpHPnl.add(popHelpGridRadioBtn(getPopUpDataMap(response.getText()), filterInfo, splitedArray));
}
}
@Override
public void onError(com.google.gwt.http.client.Request request, Throwable exception)
{
Window.alert("Error occured " + exception.getMessage());
}
});
} catch (RequestException e)
{
Window.alert("Error occured " + e.getMessage());
}
}
public HashMap<String, ArrayList<String>> getPopUpDataMap(String xmlMetadata)
{
NodeList rootNodeList = null;
Document document = null;
Node groupNode = null;
NodeList headerList = null;
Node headerNode = null;
NodeList detalList = null;
Node detailNode = null;
NodeList columnList = null;
Node columnNode = null;
ArrayList<String> columnDataList = null;
HashMap<String, ArrayList<String>> columnValueMap = new HashMap<String, ArrayList<String>>();
try
{
document = XMLParser.parse(xmlMetadata);
if (document != null)
{
rootNodeList = document.getElementsByTagName("DOCUMENTROOT").item(0).getChildNodes();
for (int rootCtr = 0; rootCtr < rootNodeList.getLength(); rootCtr++)
{
groupNode = rootNodeList.item(rootCtr);
if ("GROUP0".equals(groupNode.getNodeName()))
{
headerList = groupNode.getChildNodes();
for (int nodeCtr = 0; nodeCtr < headerList.getLength(); nodeCtr++)
{
headerNode = headerList.item(nodeCtr);
if ("HEADER0".equals(headerNode.getNodeName()))
{
detalList = headerNode.getChildNodes();
for (int headCtr = 0; headCtr < detalList.getLength(); headCtr++)
{
detailNode = detalList.item(headCtr);
if ("DETAIL".equals(detailNode.getNodeName()))
{
columnDataList = new ArrayList<String>();
columnList = detailNode.getChildNodes();
for (int colNodCtr = 0; colNodCtr < columnList.getLength(); colNodCtr++)
{
columnNode = columnList.item(colNodCtr);
columnDataList.add(columnNode.getChildNodes().item(0).getNodeValue());
}
columnValueMap.put("" + headCtr, columnDataList);
}
}
}
}
}
}
}
} catch (Exception e)
{
System.out.println(" Exception in getparsing(String xmlMetadata)" + e.getMessage());
e.printStackTrace();
}
return columnValueMap;
}
public Widget popHlpGridChkBox(HashMap<String, ArrayList<String>> hashMap, FilterInfo filterInfo, String[] paramtrArray)
{
final ScrollPanel checkboxScrlPnl = new ScrollPanel();
checkboxScrlPnl.setTitle(filterInfo.getColName());
checkboxScrlPnl.setStyleName("filterScrlPnl");
CheckBox chkBox = null;
String row = "";
String colData = "";
String parameterValue = "";
ArrayList<String> values = null;
int columnCnt = hashMap.get("0").size();
try
{
final FlexTable flexTable = new FlexTable();
//flexTable.setBorderWidth(1);
flexTable.setStyleName("flexTable");
final CheckBox selectAllChkBox = new CheckBox();
for (int colNo = 0; colNo < columnCnt + 1; colNo++)
{
if (colNo == 0)
{
flexTable.setWidget(0, 0, selectAllChkBox);
flexTable.getCellFormatter().setAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE);
flexTable.getCellFormatter().addStyleName(0, 0, "flexTable-cell");
} else
{
flexTable.setText(0, 1, filterInfo.getColDescr());
//flexTable.setText(0, 2, filterInfo.getColName());
flexTable.setText(0, 2, "All");
flexTable.getCellFormatter().addStyleName(0, 2, "flexTable-cell");
flexTable.getCellFormatter().setVisible(0, 1, false);
}
}
selectAllChkBox.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
CheckBox checkBox = (CheckBox) event.getSource();
int noOfRow = flexTable.getRowCount();
for (int rowCnt = 0; rowCnt < noOfRow; rowCnt++)
{
if (checkBox.getValue())
{
CheckBox box = (CheckBox) flexTable.getWidget(rowCnt + 1, 0);
box.setValue(true);
} else
{
CheckBox box = (CheckBox) flexTable.getWidget(rowCnt + 1, 0);
box.setValue(false);
}
}
}
});
for (Map.Entry<String, ArrayList<String>> entry : hashMap.entrySet())
{
row = entry.getKey();
values = entry.getValue();
for (int col = 0; col < 3; col++)
{
if (col == 0)
{
final int rowCnt = Integer.parseInt(row) + 1;
chkBox = new CheckBox();
chkBox.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
CheckBox checkBox = (CheckBox) event.getSource();
if (!checkBox.getValue())
{
selectAllChkBox.setValue(false);
}
}
});
flexTable.getCellFormatter().setAlignment(rowCnt, col, HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE);
flexTable.getCellFormatter().setWidth(rowCnt, col, "5em");
flexTable.setWidget(rowCnt, col, chkBox);
} else
{
flexTable.setText(Integer.parseInt(row) + 1, col, values.get(col - 1));
if (col == 1)
{
if (paramtrArray != null)
{
colData = values.get(col - 1);
for (int paramtrCnt = 0; paramtrCnt < paramtrArray.length; paramtrCnt++)
{
parameterValue = paramtrArray[paramtrCnt];
if (parameterValue.trim().equalsIgnoreCase(colData.trim()))
{
CheckBox box = (CheckBox) flexTable.getWidget(Integer.parseInt(row) + 1, 0);
box.setValue(true);
}
}
}
flexTable.getCellFormatter().setVisible(Integer.parseInt(row) + 1, 1, false);
}
}
}
}
//checkboxScrlPnl.add(flexTableTH);
checkboxScrlPnl.add(flexTable);
} catch (Exception e)
{
Window.alert("Exception is " + e.getMessage());
}
return checkboxScrlPnl;
}
public Widget popHelpGridRadioBtn(HashMap<String, ArrayList<String>> hashMap, FilterInfo filterInfo, String[] paramtrArray)
{
String row = "";
String colData = "";
String parameterValue = "";
RadioButton radioBtn = null;
ArrayList<String> values = null;
final ScrollPanel checkboxScrlPnl = new ScrollPanel();
checkboxScrlPnl.setTitle(filterInfo.getColName());
checkboxScrlPnl.setStyleName("filterScrlPnl");
final FlexTable flexTable = new FlexTable();
flexTable.setStyleName("flexTable");
//flexTable.setBorderWidth(1);
try
{
/*flexTable.setText(0, 1, filterInfo.getColDescr());
flexTable.setText(0, 2, filterInfo.getColName());
flexTable.getCellFormatter().addStyleName(0, 2, "flexTable-cell");
flexTable.getCellFormatter().setVisible(0, 1, false);*/
for (Map.Entry<String, ArrayList<String>> entry : hashMap.entrySet())
{
row = entry.getKey();
values = entry.getValue();
for (int colCnt = 0; colCnt < 3; colCnt++)
{
if (colCnt == 0)
{
final int rowCnt = Integer.parseInt(row) + 1;
radioBtn = new RadioButton(filterInfo.getColNameId());
flexTable.getCellFormatter().setAlignment(rowCnt, colCnt, HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE);
flexTable.getCellFormatter().setWidth(rowCnt, colCnt, "5em");
flexTable.setWidget(rowCnt, colCnt, radioBtn);
} else
{
flexTable.setText(Integer.parseInt(row) + 1, colCnt, values.get(colCnt - 1));
if (colCnt == 1)
{
if (paramtrArray != null)
{
colData = values.get(colCnt - 1);
for (int paramtrCnt = 0; paramtrCnt < paramtrArray.length; paramtrCnt++)
{
parameterValue = paramtrArray[paramtrCnt];
if (parameterValue.trim().equalsIgnoreCase(colData.trim()))
{
RadioButton radioBtnOnLod = (RadioButton) flexTable.getWidget(Integer.parseInt(row) + 1, 0);
radioBtnOnLod.setValue(true);
}
}
}
flexTable.getCellFormatter().setVisible(Integer.parseInt(row) + 1, 1, false);
}
}
}
}
checkboxScrlPnl.add(flexTable);
} catch (Exception e)
{
Window.alert("Exception is " + e.getMessage());
}
return checkboxScrlPnl;
}
private String[] getSplitedStrng(String year)
{
String[] splitedArray = null;
if (year != null && year.length() > 0)
{
splitedArray = year.split(",");
}
return splitedArray;
}
public void getPopHlpStrgFrAutoComp(final FilterInfo filterInfo, final HorizontalPanel popUpHPnl, final String[] splitedArray)
{
String objActionPath = "/ibase/DashboardFilterServlet?FIELDNAME=" + filterInfo.getColNameId() + "&MODNAME=" + filterInfo.getColModuleName();
try
{
RequestBuilder reqBuilder = new RequestBuilder(RequestBuilder.POST, objActionPath);
reqBuilder.sendRequest(null, new RequestCallback()
{
@Override
public void onResponseReceived(Request request, Response response)
{
Label columnNameLbl = new Label();
columnNameLbl.setText(filterInfo.getColName());
popUpHPnl.add(columnNameLbl);
new InputListWidget(response.getText(), popUpHPnl, filterInfo, splitedArray);
}
@Override
public void onError(com.google.gwt.http.client.Request request, Throwable exception)
{
Window.alert("Error occured " + exception.getMessage());
}
});
} catch (RequestException e)
{
Window.alert("Error occured " + e.getMessage());
}
}
public class FilterBtnActionHandler implements ClickHandler
{
@Override
public void onClick(ClickEvent event)
{
getMetaDataForFltr(null);
}
}
public String getMonth(String month)
{
String selectedMonth = month.substring(4, 6);
String year = month.substring(0, 4);
String monthInChar = "";
if (selectedMonth.equals("01"))
{
monthInChar = "Jan";
}
if (selectedMonth.equals("02"))
{
monthInChar = "Feb";
}
if (selectedMonth.equals("03"))
{
monthInChar = "Mar";
}
if (selectedMonth.equals("04"))
{
monthInChar = "Apr";
}
if (selectedMonth.equals("05"))
{
monthInChar = "May";
}
if (selectedMonth.equals("06"))
{
monthInChar = "Jun";
}
if (selectedMonth.equals("07"))
{
monthInChar = "Jul";
}
if (selectedMonth.equals("08"))
{
monthInChar = "Aug";
}
if (selectedMonth.equals("09"))
{
monthInChar = "Sep";
}
if (selectedMonth.equals("10"))
{
monthInChar = "Oct";
}
if (selectedMonth.equals("11"))
{
monthInChar = "Nov";
}
if (selectedMonth.equals("12"))
{
monthInChar = "Dec";
}
monthInChar = year + " - " + monthInChar;
return monthInChar;
}
@SuppressWarnings("serial")
public ScrollPanel getViewFilter( final ArrayList<String> parameterList,JSONObject metaDataJsnObj)
{
final ScrollPanel viewPanel = new ScrollPanel();
String xmlMetadata = null;
Document document = null;
NodeList rootNodeList = null;
Node rootNode = null;
NodeList viewNodeList = null;
Node viewNode = null;
// String view=null;
final String image = "<img align='top' src='FusionChart/images/menu_button.png' height='18px' width='25px'/>";
viewPanel.setWidth("100%");
MenuBar menu = new MenuBar();
try
{
// (new CustomGrid(10)).showOptionMenu();
xmlMetadata = metaDataJsnObj.get("metaData").toString();
xmlMetadata = metaDataJsnObj.get("metaData").toString().replace("\\", "").trim();
xmlMetadata = xmlMetadata.replace('"', ' ').trim();
document = XMLParser.parse(xmlMetadata);
XMLParser.removeWhitespace(document);
MenuBar fileMenu = new MenuBar(true);
fileMenu.setStyleName("popupMenuBar");
fileMenu.setAnimationEnabled(true);
menu.setStyleName("menuCSS");
SafeHtml addActivityImagePath = new SafeHtml() {
public String asString() {
return image;
}
};
if (document != null)
{
rootNodeList = document.getElementsByTagName("Root").item(0).getChildNodes();
for (int rootCtr = 0; rootCtr < rootNodeList.getLength(); rootCtr++)
{
rootNode = rootNodeList.item(rootCtr);
if ("view".equals(rootNode.getNodeName()))
{
final String view = rootNode.getAttributes().getNamedItem("name").getNodeValue();
// final String view1 = view;
MenuItem actionItem= new MenuItem( view, new Command()
{
public void execute()
{
parameterList.add(view);
E12DashBoardPage.initaliseGraphNGrid(parameterList);
}
});
fileMenu.addItem(actionItem);
actionItem.setStyleName("popupMenuItem");
}
}
menu.addItem(new MenuItem(addActivityImagePath, fileMenu));
viewPanel.add(menu);
viewPanel.setStyleName("scrllPnlMenuBar");
//contextMenuPanel.add(viewPanel);
}
}
catch (Exception e)
{
Window.alert("Exception in Class FilterCreator:getViewFilter():" + e.getMessage());
}
return viewPanel;
}
}
/**
*
*/
package ibase.client;
/**
* @author user
*
*/
public class FilterInfo
{
public FilterInfo()
{
// TODO Auto-generated constructor stub
}
String colTitle = "";
String colName = "";
String colDescr = "";
String colDescrId = "";
String colNameId = "";
String colModuleName = "";
String filterType = "";
public String getColTitle()
{
return colTitle;
}
public void setColTitle(String colTitle)
{
this.colTitle = colTitle;
}
public String getFiltertype()
{
return filterType;
}
public void setFiltertype(String filtertype)
{
this.filterType = filtertype;
}
public String getColName()
{
return colName;
}
public void setColName(String colName)
{
this.colName = colName;
}
public String getColDescr()
{
return colDescr;
}
public void setColDescr(String colDescr)
{
this.colDescr = colDescr;
}
public String getColDescrId()
{
return colDescrId;
}
public void setColDescrId(String colDescrId)
{
this.colDescrId = colDescrId;
}
public String getColNameId()
{
return colNameId;
}
public void setColNameId(String colNameId)
{
this.colNameId = colNameId;
}
public String getColModuleName()
{
return colModuleName;
}
public void setColModuleName(String colModuleName)
{
this.colModuleName = colModuleName;
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.Date;
import com.google.gwt.core.client.Callback;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class GWTDashBoardReport implements EntryPoint
{
ArrayList<String> parameterList = new ArrayList<String>();
ArrayList<FilterInfo> filterList = new ArrayList<FilterInfo>();
HorizontalPanel hpanel= new HorizontalPanel();
String metadataname = "";
@SuppressWarnings("unchecked")
public void onModuleLoad()
{
metadataname = Window.Location.getParameter("metadataname") == null ? "" : Window.Location.getParameter("metadataname");
parameterList.add(metadataname);
E12DashBoardPage.getJsonForFilterData(new Callback<JSONObject, String>()
{
@Override
public void onSuccess(JSONObject jsnObj)
{
getParameterList(jsnObj);
}
@Override
public void onFailure(String result)
{
Window.alert("Exception :: onModuleLoad() [" + result + "]");
}
}, metadataname);
}
public void getParameterList(JSONObject metaDataJsnObj)
{
Date date = new Date();
MetaDataDtl dataDtl = new MetaDataDtl();
filterList =dataDtl.getFilters(metaDataJsnObj);
int year=0;
String month="";
String monthYear="";
year= 1900+date.getYear();
month=String.valueOf(date.getMonth()+1);
if(month.trim().length()==1)
{
month="0"+month;
}
monthYear=year+month;
if(filterList.size()>0)
{
for (FilterInfo filterInfo : filterList)
{
if(filterInfo.getColNameId().equals("PRD_CODE"))
{
parameterList.add(Window.Location.getParameter(filterInfo.getColNameId()) == null ? monthYear : Window.Location.getParameter(filterInfo.getColNameId()));
}
else
{
parameterList.add(Window.Location.getParameter(filterInfo.getColNameId()) == null ? "" : Window.Location.getParameter(filterInfo.getColNameId()));
}
}
}
else
{
parameterList.add(Window.Location.getParameter("metadataname"));
}
E12DashBoardPage e12DashBoardPage = new E12DashBoardPage(parameterList,metaDataJsnObj);
RootPanel.get("filterDiv").add(e12DashBoardPage);
}
}
package ibase.client;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.google.gwt.core.client.Callback;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.SplitLayoutPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
//import com.googlecode.gwtTableToExcel.client.TableToExcelClientBuilder;
/**
*
* The GraphComponent class create a FusionChart
*
*/
public class GraphComponent extends Composite
{
/** The chartcontainer hold the FusionChart */
private VerticalPanel mainContainer = new VerticalPanel();
private SimplePanel gridContainer = new SimplePanel();
private JSONObject jsonObjMetaData = new JSONObject();
private JSONObject jsonObjData = new JSONObject();
SplitLayoutPanel split = new SplitLayoutPanel();
public static HashMap<String, HashMap> gridNGraphMeataDataMap = null;
public final int STATUS_CODE_OK = 200;
final LinkedHashMap<String, JSONObject> dataMap = new LinkedHashMap<String, JSONObject>();
ArrayList<String> parameterList = null;
/**
* This constructor initializes the graph container
*
*/
public GraphComponent(ArrayList<String> parameterList, JSONObject metaDataJsnObj)
{
this.jsonObjMetaData = metaDataJsnObj;
this.parameterList = parameterList;
mainContainer.setWidth("100%");
mainContainer.add(new FilterCreator(parameterList, metaDataJsnObj));
initWidget(mainContainer);
}
@SuppressWarnings("unchecked")
public void buildChart(final LinkedHashMap<String, JSONObject> dataMap)
{
JSONObject jsonObjFrGraph = null;
String height = null;
String width = null;
String imageName = null;
ArrayList graphDtlList = null;
HashMap<String, ArrayList<String>> graphDataMap = null;
HashMap<String, HashMap<String, String>> componentTypeMap = null;
HashMap<String, HashMap<String, String>> datasourceMap = null;
HashMap<String, String> componentMap = null;
JSONObject graphJson = null;
final String componentType = "componentType";
String compType = "";
String component ="";
HashMap<String, ArrayList<String>> graphTypeMap = null;
String dtSrouce="";
int count=0;
for (String componentId : gridNGraphMeataDataMap.keySet())
{
jsonObjFrGraph=new JSONObject();
if(isNumeric(componentId))
{
compType = componentType.trim() +componentId.trim();
graphDataMap = gridNGraphMeataDataMap.get(componentId);
datasourceMap = gridNGraphMeataDataMap.get("datasource"+componentId);
dtSrouce = ""+datasourceMap.get("datasource"+componentId);
//check code for datasource by Birendra Pandey
graphTypeMap = gridNGraphMeataDataMap.get("type"+componentId);
String type = ""+(graphTypeMap.get("type"+componentId));
if("T".equalsIgnoreCase(type))
{
componentTypeMap = gridNGraphMeataDataMap.get(compType);
component = "" + componentTypeMap.get("buildComponent"+componentId);
}
jsonObjFrGraph = (JSONObject) dataMap.get(dtSrouce);
if ("G".equalsIgnoreCase(type) && jsonObjFrGraph != null)
{
for (String graphNo : graphDataMap.keySet())
{
graphDtlList = graphDataMap.get(graphNo);
imageName = (String) graphDtlList.get(0);
width = (String) graphDtlList.get(1);
height = (String) graphDtlList.get(2);
graphJson = ChartCreator.buildChartData(graphDtlList, jsonObjFrGraph, dtSrouce);
if (graphJson != null && graphJson.size() > 0)
{
this.createChart(graphJson.toString(), "chartContainer" + componentId, "chartContainer" + componentId, width, height, imageName);
}
}
}
else if("T".equalsIgnoreCase(type) && jsonObjFrGraph != null)
{
RootPanel.get("chartContainer"+componentId).clear();
ScrollPanel scrlPanel = new ScrollPanel();
FlexTable flexTable = new FlexTable();
if ("FlexTable".equalsIgnoreCase(component))
{
CustomFlxTable customFlxTable = new CustomFlxTable();
flexTable = customFlxTable.createFlxTbl(flexTable, gridNGraphMeataDataMap, jsonObjFrGraph,componentId);
//This Block for Export to excel and PDF formate
HorizontalPanel horizontalPnl = new HorizontalPanel();
Button excelBtn = new Button("Export To Excel");
excelBtn.setTitle("Excel");
Button pdFBtn = new Button("Export To PDF");
pdFBtn.setTitle("PDF");
horizontalPnl.add(ibase.client.tabletoexcel.TableToExcelClientBuilder.fromTable(flexTable).withWidget(pdFBtn).buildExportFormWidget());
horizontalPnl.add(ibase.client.tabletoexcel.TableToExcelClientBuilder.fromTable(flexTable).withWidget(excelBtn).buildExportFormWidget());
//End Block for Export to excel and PDF formate
scrlPanel.add(flexTable);
scrlPanel.setStyleName("flextableScrlPnl");
RootPanel.get("chartContainergrid").add(scrlPanel);
RootPanel.get("chartContainer"+componentId).add(horizontalPnl);
} else if("DataGrid".equalsIgnoreCase(component))
{
flexTable = new FlexTable();
CustomGrid data = new CustomGrid(10);
flexTable = data.jsonToArrayList(gridNGraphMeataDataMap, jsonObjFrGraph,dtSrouce,componentId);
//This Block for Export to excel and PDF formate
HorizontalPanel horizontalPnl = new HorizontalPanel();
Button excelBtn = new Button("Export To Excel");
excelBtn.setTitle("Excel");
/*Button pdFBtn = new Button("Export To PDF");
pdFBtn.setTitle("PDF");
horizontalPnl.add(ibase.client.tabletoexcel.TableToExcelClientBuilder.fromTable(flexTable).withWidget(pdFBtn).buildExportFormWidget());*/
horizontalPnl.add(ibase.client.tabletoexcel.TableToExcelClientBuilder.fromTable(flexTable).withWidget(excelBtn).buildExportFormWidget());
//End Block for Export to excel and PDF formate
RootPanel.get("chartContainer"+componentId).add(flexTable);
RootPanel.get("chartContainer"+componentId).add(horizontalPnl);
}
}
}
}
}
private native void createChart(String chartData, String containerId, String chartContainer, String width, String height, String imageName)
/*-{
try {
$wnd.createFusionChart(chartData, containerId, chartContainer,
width, height, imageName);
} catch (e) {
alert("Excpeiton :: GraphComponent : createChart [" + e.message + "]");
}
}-*/;
@SuppressWarnings("unchecked")
public void getData(final Callback<JSONObject, String> callback, ArrayList<String> parameterList)
{
String viewOptionSelectd = parameterList.get(parameterList.size()-1);
MetaDataDtl dataDtl = new MetaDataDtl();
ArrayList<FilterInfo> filterList = new ArrayList<FilterInfo>();
gridNGraphMeataDataMap = dataDtl.getGridNMapMetData(jsonObjMetaData,viewOptionSelectd);
final LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap = (LinkedHashMap) gridNGraphMeataDataMap.get("datSrc");
getDataMap(datsSourceDtlMap);
}
public void getDataMap(final LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap)
{
int count=0;
for (Map.Entry<String, ArrayList<String>> entry : datsSourceDtlMap.entrySet())
{
count++;
final String key = entry.getKey();
List<String> values = entry.getValue();
String dbDataSource = values.get(0);
String servletname = values.get(1);
String objActionPath = "";
String page = parameterList.get(0);
String append="";
if (page.equals("sales"))
{
objActionPath = "/ibase/" + servletname + "?month=" + parameterList.get(1) + "&dataSourceName=" + dbDataSource;
} else if (page.equals("expense"))
{
objActionPath = "/ibase/" + servletname + "?month=" + parameterList.get(1) + "&dataSourceName=" + dbDataSource;
} else if (page.equals("topbran"))
{
objActionPath = "/ibase/" + servletname + "?topNos=" + parameterList.get(1) + "&month=" + parameterList.get(2) + "&dataSourceName=" + dbDataSource;
} else if (page.equals("recall"))
{
objActionPath = "/ibase/" + servletname + "?days=" + parameterList.get(1) + "&dataSourceName=" + dbDataSource;
} else if (page.equals("rcp"))
{
objActionPath = "/ibase/" + servletname + "?dataSourceName=" + dbDataSource + "&days=" + parameterList.get(1);
} else if (page.equals("qc"))
{
objActionPath = "/ibase/" + servletname + "?geoLocation=" + parameterList.get(1) + "&month=" + parameterList.get(2) + "&dataSourceName=" + dbDataSource;
} else if (page.equals("bspl"))
{
objActionPath = "/ibase/" + servletname + "?sitecode=" + parameterList.get(1) + "&acctprd=" + parameterList.get(2) + "&prdfrom=" + parameterList.get(3) + "&prdto=" + parameterList.get(4) + "&formatcode=" + parameterList.get(5) + "&reporttype=" + parameterList.get(6) + "&dataSourceName=" + dbDataSource;
} else if (page.equals("msrscore"))
{
objActionPath = "/ibase/" + servletname + "?territory=" + parameterList.get(1) + "&salesperson=" + parameterList.get(2) + "&month=" + parameterList.get(3) + "&year=" + parameterList.get(4) + "&dataSourceName=" + dbDataSource;
} else if (page.equals("dqsa"))
{
objActionPath = "/ibase/" + servletname + "?&dataSourceName=" + dbDataSource;
}
// start Add dashboard mapping for OTC dashboard on dated 15-oct-2004
else if (page.equals("rsrscore"))
{
objActionPath = "/ibase/" + servletname + "?salesperson=" + parameterList.get(1) + "&month=" + parameterList.get(2) + "&year=" + parameterList.get(3) + "&dataSourceName=" + dbDataSource + "&reportName="+page;
}
else if (page.equals("rsrsurvey"))
{
objActionPath = "/ibase/" + servletname + "?salesperson=" + parameterList.get(1) + "&month=" + parameterList.get(2) + "&year=" + parameterList.get(3) + "&dataSourceName=" + dbDataSource + "&reportName="+page;
}else if (page.equals("rxsurvey"))
{
objActionPath = "/ibase/" + servletname + "?salesperson=" + parameterList.get(1) + "&month=" + parameterList.get(2) + "&year=" + parameterList.get(3) + "&brand=" + parameterList.get(4) + "&dataSourceName=" + dbDataSource + "&reportName="+page;
}else if (page.equals("outletsvisit"))
{
objActionPath = "/ibase/" + servletname + "?salesperson=" + parameterList.get(1) + "&month=" + parameterList.get(2) + "&year=" + parameterList.get(3) + "&dataSourceName=" + dbDataSource + "&reportName="+page;
}else if (page.equals("doctorsvisit"))
{
objActionPath = "/ibase/" + servletname + "?salesperson=" + parameterList.get(1) + "&month=" + parameterList.get(2) + "&year=" + parameterList.get(3) + "&dataSourceName=" + dbDataSource + "&reportName="+page;
}
//end Add dashboard mapping for OTC dashboard on dated 15-oct-2004
RequestBuilder reqBuilder = new RequestBuilder(RequestBuilder.POST, objActionPath);
try
{
reqBuilder.sendRequest(null, new RequestCallback()
{
@Override
public void onResponseReceived(Request request, Response response)
{
if (STATUS_CODE_OK == response.getStatusCode())
{
if (response.getText().trim().length() > 2)
{
JSONObject servletJsnObj = (JSONObject) JSONParser.parseStrict(response.getText());
JSONObject jsonObjData = new JSONObject();
jsonObjData.put(key, servletJsnObj);
dataMap.put(key, jsonObjData);
// getData(callback,parameterList);
if (dataMap.size() == datsSourceDtlMap.size())
{
buildChart(dataMap);
}
}
} else
{
Window.alert("Responce for getData null");
}
}
@Override
public void onError(com.google.gwt.http.client.Request request, Throwable exception)
{
Window.alert("Error occured :: GraphComponent : getData() " + exception.getMessage());
}
});
} catch (RequestException e)
{
e.printStackTrace();
}
}
}
public boolean isNumeric(String s) {
return s.matches("[-+]?\\d*\\.?\\d+");
}
}
package ibase.client;
import ibase.client.resources.Resources;
public class GridThemes {
public static String userTheme;
public static void applyDatagridThemes()
{
//printOnConsole(" Apply Datagrid Themes :" + E12Constants.userTheme );
//Window.alert("E12Constants.userTheme:"+E12Constants.userTheme);
Resources.DATAGRID_RES.blueThemeCSS().ensureInjected();
//Resources.DATAGRID_RES.grayThemeCSS().ensureInjected();
//Resources.DATAGRID_RES.orangeThemeCSS().ensureInjected();
//Resources.DATAGRID_RES.greenThemeCSS().ensureInjected();
}
public native static int getBrowserVersion()
/*-{
var version = -1; //NON IE Browser version
var broserName = navigator.appName;
if( broserName == 'Microsoft Internet Explorer' )
{
var browserInfo = navigator.userAgent;
var substrValue = browserInfo.substring( browserInfo.indexOf("MSIE") );
var browserVersion = substrValue.substring( 0, substrValue.indexOf(";") );
version = parseInt( browserVersion.substring( browserVersion.indexOf(" ") ) );
}
return version;
}-*/;
}
package ibase.client;
import ibase.client.FilterInfo;
import java.util.ArrayList;
import java.util.List;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyDownHandler;
import com.google.gwt.event.logical.shared.SelectionEvent;
import com.google.gwt.event.logical.shared.SelectionHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.MultiWordSuggestOracle;
import com.google.gwt.user.client.ui.SuggestBox;
import com.google.gwt.user.client.ui.SuggestOracle;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.xml.client.Document;
import com.google.gwt.xml.client.Node;
import com.google.gwt.xml.client.NodeList;
import com.google.gwt.xml.client.XMLParser;
public class InputListWidget extends Composite
{
List<String> itemsSelected = new ArrayList<String>();
public InputListWidget(String suggetions, HorizontalPanel popUpHPnl, FilterInfo filterInfo, String[] splitedArray)
{
final BulletList list = new BulletList();
list.setTitle(filterInfo.getColName());
list.setStyleName("token-input-list");
final ListItem item = new ListItem();
item.setStyleName("token-input-input-token");
final TextBox itemBox = new TextBox();
itemBox.getElement().setAttribute("style", "outline-color: -moz-use-text-color; outline-style: none; outline-width: medium;");
final SuggestBox box = new SuggestBox(getSuggestions(suggetions), itemBox);
box.getElement().setId("suggestion_box");
item.add(box);
Paragraph paragraph = null;
Span span = null;
if (splitedArray != null)
{
for (int arrayCnt = 0; arrayCnt < splitedArray.length; arrayCnt++)
{
final ListItem onLodListItm = new ListItem();
// onLodListItm.setStyleName("token-input-input-token");
paragraph = new Paragraph();
paragraph.setText(splitedArray[arrayCnt]);
onLodListItm.setStyleName("token-input-token");
onLodListItm.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent clickEvent)
{
onLodListItm.addStyleName("token-input-selected-token");
}
});
span = new Span("x");
span.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent clickEvent)
{
removeListItem(onLodListItm, list);
}
});
onLodListItm.add(paragraph);
onLodListItm.add(span);
itemBox.setFocus(true);
list.add(onLodListItm);
}
}
list.add(item);
itemBox.addKeyDownHandler(new KeyDownHandler()
{
public void onKeyDown(KeyDownEvent event)
{
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER)
{
// only allow manual entries with @ signs (assumed email
// addresses)
if (itemBox.getValue().contains("@"))
deselectItem(itemBox, list);
}
// handle backspace
if (event.getNativeKeyCode() == KeyCodes.KEY_BACKSPACE)
{
if ("".equals(itemBox.getValue().trim()))
{
ListItem li = (ListItem) list.getWidget(list.getWidgetCount() - 2);
Paragraph p = (Paragraph) li.getWidget(0);
if (itemsSelected.contains(p.getText()))
{
itemsSelected.remove(p.getText());
GWT.log("Removing selected item '" + p.getText() + "'", null);
GWT.log("Remaining: " + itemsSelected, null);
}
list.remove(li);
itemBox.setFocus(true);
}
}
}
});
box.addSelectionHandler(new SelectionHandler<SuggestOracle.Suggestion>()
{
public void onSelection(SelectionEvent selectionEvent)
{
deselectItem(itemBox, list);
}
});
popUpHPnl.add(list);
popUpHPnl.getElement().setAttribute("onclick", "document.getElementById('suggestion_box').focus()");
box.setFocus(true);
}
private void deselectItem(final TextBox itemBox, final BulletList list)
{
if (itemBox.getValue() != null && !"".equals(itemBox.getValue().trim()))
{
final ListItem displayItem = new ListItem();
displayItem.setStyleName("token-input-token");
Paragraph p = new Paragraph(itemBox.getValue());
displayItem.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent clickEvent)
{
displayItem.addStyleName("token-input-selected-token");
}
});
Span span = new Span("x");
span.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent clickEvent)
{
removeListItem(displayItem, list);
}
});
displayItem.add(p);
displayItem.add(span);
// hold the original value of the item selected
GWT.log("Adding selected item '" + itemBox.getValue() + "'", null);
itemsSelected.add(itemBox.getValue());
GWT.log("Total: " + itemsSelected, null);
list.insert(displayItem, list.getWidgetCount() - 1);
itemBox.setValue("");
itemBox.setFocus(true);
}
}
private void removeListItem(ListItem displayItem, BulletList list)
{
GWT.log("Removing: " + displayItem.getWidget(0).getElement().getInnerHTML(), null);
itemsSelected.remove(displayItem.getWidget(0).getElement().getInnerHTML());
list.remove(displayItem);
}
public MultiWordSuggestOracle getSuggestions(String xmlMetadata)
{
MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
NodeList rootNodeList = null;
Document document = null;
Node groupNode = null;
NodeList headerList = null;
Node headerNode = null;
NodeList detalList = null;
Node detailNode = null;
NodeList columnList = null;
Node columnNode = null;
try
{
document = XMLParser.parse(xmlMetadata);
if (document != null)
{
rootNodeList = document.getElementsByTagName("DOCUMENTROOT").item(0).getChildNodes();
for (int rootCtr = 0; rootCtr < rootNodeList.getLength(); rootCtr++)
{
groupNode = rootNodeList.item(rootCtr);
if ("GROUP0".equals(groupNode.getNodeName()))
{
headerList = groupNode.getChildNodes();
for (int nodeCtr = 0; nodeCtr < headerList.getLength(); nodeCtr++)
{
headerNode = headerList.item(nodeCtr);
if ("HEADER0".equals(headerNode.getNodeName()))
{
detalList = headerNode.getChildNodes();
for (int headCtr = 0; headCtr < detalList.getLength(); headCtr++)
{
detailNode = detalList.item(headCtr);
if ("DETAIL".equals(detailNode.getNodeName()))
{
columnList = detailNode.getChildNodes();
for (int colNodCtr = 0; colNodCtr < 1; colNodCtr++)
{
columnNode = columnList.item(colNodCtr);
oracle.add(columnNode.getChildNodes().item(0).getNodeValue());
}
}
}
}
}
}
}
}
} catch (Exception e)
{
System.out.println(" Exception in getparsing(String xmlMetadata)" + e.getMessage());
e.printStackTrace();
}
/*
* oracle = new MultiWordSuggestOracle(); oracle.add("Amy Kesic");
* oracle.add("Jason Weston"); oracle.add("Dave Johnson");
* oracle.add("Paul Hammant"); oracle.add("Jesse Kuhnert");
* oracle.add("Ben Alex"); oracle.add("Tom Bender");
* oracle.add("Alexandru Popescu"); oracle.add("Kaveh Arabfakhry");
* oracle.add("Steven Hong"); oracle.add("Jason van Zyl");
* oracle.add("Alex Vauthey"); oracle.add("Kiran Karnati");
* oracle.add("Kalpana Nagireddy"); oracle.add("Ramnivas Laddad");
* oracle.add("Arj� Cahn"); oracle.add("Amy Anne Rasberry");
* oracle.add("Vincent Stoessel");
*/
return oracle;
}
}
package ibase.client;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.BlurEvent;
import com.google.gwt.event.dom.client.BlurHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.dom.client.HasBlurHandlers;
import com.google.gwt.event.dom.client.HasKeyDownHandlers;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyDownHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.HasHTML;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;
public class ListItem extends ComplexPanel implements HasText, HasHTML, HasClickHandlers, HasKeyDownHandlers, HasBlurHandlers {
HandlerRegistration clickHandler;
public ListItem() {
setElement(DOM.createElement("LI"));
}
public void add(Widget w) {
super.add(w, getElement());
}
public void insert(Widget w, int beforeIndex) {
super.insert(w, getElement(), beforeIndex, true);
}
public String getText() {
return DOM.getInnerText(getElement());
}
public void setText(String text) {
DOM.setInnerText(getElement(), (text == null) ? "" : text);
}
public void setId(String id) {
DOM.setElementAttribute(getElement(), "id", id);
}
public String getHTML() {
return DOM.getInnerHTML(getElement());
}
public void setHTML(String html) {
DOM.setInnerHTML(getElement(), (html == null) ? "" : html);
}
public HandlerRegistration addClickHandler(ClickHandler handler) {
return addDomHandler(handler, ClickEvent.getType());
}
public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) {
return addDomHandler(handler, KeyDownEvent.getType());
}
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return addDomHandler(handler, BlurEvent.getType());
}
}
\ No newline at end of file
package ibase.client;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.xml.client.Document;
import com.google.gwt.xml.client.Node;
import com.google.gwt.xml.client.NodeList;
import com.google.gwt.xml.client.XMLParser;
public class MetaDataDtl
{
private String getDbDataSource = "";
public String getGetDbDataSource()
{
return getDbDataSource;
}
public void setGetDbDataSource(String getDbDataSource)
{
this.getDbDataSource = getDbDataSource;
}
@SuppressWarnings("unchecked")
public HashMap<String, HashMap> getGridNMapMetData(JSONObject jsonObjMetadata,String viewOptionSelectd)
{
Document document = null;
ArrayList<String> metaDataList = null;
LinkedHashMap<JSONString, JSONString> metaDataMap = new LinkedHashMap<JSONString, JSONString>();
ArrayList<String> xAxisColunList = null;
ArrayList<String> xAxisColumnName = null;
ArrayList<String> yAxisColumnName = null;
ArrayList<String> yAxisColunList = null;
ArrayList<String> datsSourceDtlList = null;
ArrayList<String> renderInfoList = null;
ArrayList<String> showValList = null;
ArrayList<String> lineVisibleList = null;
ArrayList<String> dotThicknessList = null;
ArrayList<String> colorInfoList = null;
ArrayList<FilterInfo> fltrDtlList = null;
NodeList gridNodeList = null;
Node viewNode = null;
NodeList viewNodeList = null;
Node graphDataNode = null;
NodeList xAxsisNodeList = null;
Node xAxsisNode = null;
NodeList yAaxixNodeList = null;
Node yAxsisNode = null;
String childNodeName = "";
JSONString jsnStringKey = null;
JSONString dataStringValue = null;
String xmlMetadata = null;
LinkedHashMap<String, ArrayList<String>> gridMeataDataMap = null;
LinkedHashMap<String, ArrayList<String>> gridNameDataMap = null;
LinkedHashMap<String, String> gridSizeDataMap = null;
LinkedHashMap<String, String> gridAlignDataMap = null;
LinkedHashMap<String, String> typeGridMap= null;
LinkedHashMap<String, String> typeGraphMap= null;
LinkedHashMap<String, String> gridDataSourceMap =null;
LinkedHashMap<String, String> graphDataSourceMap = null;
LinkedHashMap<String, String> divIdGrpMap= null;
LinkedHashMap<String, String> gridCompTypeMap = null;
LinkedHashMap<String, String> componentTypeMap = null;
LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap = null;
LinkedHashMap<String, ArrayList<FilterInfo>> filterDtlMap = null;
HashMap<String, ArrayList<Object>> graphMeataDataMap = null;
HashMap<String, HashMap> gridNGraphMeataDataMap = null;
Node columnGrpNode = null;
NodeList columnGrpNodeList = null;
ArrayList<String> columnIDList = null;
ArrayList<String> chartTypeList = null;
ArrayList<String> columnNameList = null;
NodeList columsNodeList = null;
Node columnNode = null;
String title = "";
Node colGrpTitlNode = null;
String columnID = null;
String columnName = null;
Node rootNode = null;
NodeList rootNodeList = null;
ArrayList graphDtlList = null;
NodeList graphNodeList = null;
String attributeName = "";
String graphID = "";
String type = "";
int conuter = 0;
String columnGrpId = "";
String renderDtl = "";
String showValDtl = "";
String colorDtl = "";
String lineVisibleDtl = "";
String dotThicknessDtl = "";
//add on dated 9 july 201041
Node chartPropertyNode = null;
NodeList chartPropertyNodeList = null;
if (jsonObjMetadata != null)
{
gridNGraphMeataDataMap = new HashMap<String, HashMap>();
gridMeataDataMap = new LinkedHashMap<String, ArrayList<String>>();
gridNameDataMap = new LinkedHashMap<String, ArrayList<String>>();
gridSizeDataMap = new LinkedHashMap<String, String>();
gridAlignDataMap = new LinkedHashMap<String, String>();
divIdGrpMap= new LinkedHashMap<String, String>();
componentTypeMap = new LinkedHashMap<String, String>();
gridCompTypeMap = new LinkedHashMap<String, String>();
datsSourceDtlMap = new LinkedHashMap<String, ArrayList<String>>();
filterDtlMap = new LinkedHashMap<String, ArrayList<FilterInfo>>();
xmlMetadata = jsonObjMetadata.get("metaData").toString();
xmlMetadata = jsonObjMetadata.get("metaData").toString().replace("\\", "").trim();
xmlMetadata = xmlMetadata.replace('"', ' ').trim();
try
{
document = XMLParser.parse(xmlMetadata);
XMLParser.removeWhitespace(document);
if (document != null)
{
rootNodeList = document.getElementsByTagName("Root").item(0).getChildNodes();
for (int rootCtr = 0; rootCtr < rootNodeList.getLength(); rootCtr++)
{
rootNode = rootNodeList.item(rootCtr);
if ("datasource".equals(rootNode.getNodeName()))
{
datsSourceDtlList = new ArrayList<String>();
String id = rootNode.getAttributes().getNamedItem("id").getNodeValue();
datsSourceDtlList.add(rootNode.getAttributes().getNamedItem("driverName").getNodeValue());
datsSourceDtlList.add(rootNode.getChildNodes().item(0).getNodeValue());
datsSourceDtlMap.put(id, datsSourceDtlList);
}
String columnsize = "";
String columnAlign = "";
String dataSource="";
if ("view".equals(rootNode.getNodeName()))
{
viewNodeList = rootNode.getChildNodes();
if(viewOptionSelectd.equals(rootNode.getAttributes().getNamedItem("name").getNodeValue()))
{
for (int viewCtr = 0; viewCtr < viewNodeList.getLength(); viewCtr++)
{
viewNode = viewNodeList.item(viewCtr);
if ("grid".equals(viewNode.getNodeName()))
{
typeGridMap = new LinkedHashMap<String, String>();
gridDataSourceMap= new LinkedHashMap<String, String>();
graphID = viewNode.getAttributes().getNamedItem("id").getNodeValue();
dataSource = viewNode.getAttributes().getNamedItem("datasource").getNodeValue();
type= viewNode.getAttributes().getNamedItem("type").getNodeValue();
gridDataSourceMap.put("datasource"+graphID, dataSource);
typeGridMap.put("type"+graphID, type);
gridNodeList = viewNode.getChildNodes();
String componentType = "";
for (int gridCtr = 0; gridCtr < gridNodeList.getLength(); gridCtr++)
{
columnGrpNode = gridNodeList.item(gridCtr);
if (columnGrpNode.getNodeName().equals("component_type"))
{
componentType = columnGrpNode.getChildNodes().item(0).getNodeValue();
} else
{
columnGrpId = columnGrpNode.getAttributes().getNamedItem("id").getNodeValue();
columnGrpNodeList = columnGrpNode.getChildNodes();
for (int colmnCtr = 0; colmnCtr < columnGrpNodeList.getLength(); colmnCtr++)
{
columnIDList = new ArrayList<String>();
columnNameList = new ArrayList<String>();
colGrpTitlNode = columnGrpNodeList.item(colmnCtr);
if ("col_group_title".equals(colGrpTitlNode.getNodeName()))
{
title = colGrpTitlNode.getChildNodes().item(0).getNodeValue();
}
if ("column_size".equals(colGrpTitlNode.getNodeName()))
{
columnsize = colGrpTitlNode.getChildNodes().item(0).getNodeValue();
}
if ("column_alignment".equals(colGrpTitlNode.getNodeName()))
{
columnAlign = colGrpTitlNode.getChildNodes().item(0).getNodeValue();
}
if ("columns".equals(colGrpTitlNode.getNodeName()))
{
columsNodeList = colGrpTitlNode.getChildNodes();
for (int colCtr = 0; colCtr < columsNodeList.getLength(); colCtr++)
{
columnNode = columsNodeList.item(colCtr);
columnName = columnNode.getChildNodes().item(0).getNodeValue();
columnID = columnNode.getAttributes().getNamedItem("id").getNodeValue();
columnIDList.add(columnID);
columnNameList.add(columnName);
}
}
}
}
if (!columnGrpNode.getNodeName().equals("component_type"))
{
gridMeataDataMap.put(columnGrpId, columnIDList);
gridNameDataMap.put(title, columnNameList);
gridSizeDataMap.put(title, columnsize);
gridAlignDataMap.put(title, columnAlign);
}
}
gridCompTypeMap.put("buildComponent"+graphID, componentType);
gridNGraphMeataDataMap.put("componentType"+graphID, gridCompTypeMap);
gridNGraphMeataDataMap.put(graphID, gridMeataDataMap);
gridNGraphMeataDataMap.put("columnName"+graphID, gridNameDataMap);
gridNGraphMeataDataMap.put("columnSize"+graphID, gridSizeDataMap);
gridNGraphMeataDataMap.put("columnAlign"+graphID, gridAlignDataMap);
gridNGraphMeataDataMap.put("type"+graphID, typeGridMap);
gridNGraphMeataDataMap.put("datasource"+graphID, gridDataSourceMap);
}
if ("graph".equals(viewNode.getNodeName()))
{
typeGraphMap= new LinkedHashMap<String, String>();
graphDataSourceMap= new LinkedHashMap<String, String>();
graphID = viewNode.getAttributes().getNamedItem("id").getNodeValue();
type= viewNode.getAttributes().getNamedItem("type").getNodeValue();
dataSource = viewNode.getAttributes().getNamedItem("datasource").getNodeValue();
graphDataSourceMap.put("datasource"+graphID, dataSource);
typeGraphMap.put("type"+graphID, type);
graphDtlList = new ArrayList<String>();
xAxisColunList = new ArrayList<String>();
yAxisColunList = new ArrayList<String>();
metaDataList = new ArrayList<String>();
xAxisColumnName = new ArrayList<String>();
yAxisColumnName = new ArrayList<String>();
renderInfoList = new ArrayList<String>();
showValList = new ArrayList<String>();
lineVisibleList = new ArrayList<String>();
dotThicknessList = new ArrayList<String>();
colorInfoList = new ArrayList<String>();
graphMeataDataMap = new HashMap<String, ArrayList<Object>>();
graphNodeList = viewNode.getChildNodes();
for (int i = 0; i < graphNodeList.getLength(); i++)
{
graphDataNode = graphNodeList.item(i);
childNodeName = graphDataNode.getNodeName();
if ("column_group".equalsIgnoreCase(childNodeName))
{
attributeName = graphDataNode.getAttributes().getNamedItem("id").getNodeValue();
if ("x_axis".equalsIgnoreCase(attributeName))
{
xAxsisNodeList = graphDataNode.getChildNodes();
for (int j = 0; j < xAxsisNodeList.getLength(); j++)
{
xAxsisNode = xAxsisNodeList.item(j);
if ("col_group_title".equals(xAxsisNode.getNodeName()))
{
dataStringValue = new JSONString(xAxsisNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("xAxisName");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("columns".equals(xAxsisNode.getNodeName()))
{
xAxsisNodeList = xAxsisNode.getChildNodes();
for (int colCtr = 0; colCtr < xAxsisNodeList.getLength(); colCtr++)
{
columnNode = xAxsisNodeList.item(colCtr);
columnID = columnNode.getAttributes().getNamedItem("id").getNodeValue();
xAxisColunList.add(columnID);
xAxisColumnName.add(columnNode.getChildNodes().item(0).getNodeValue());
}
}
}
}
if ("y_axis".equalsIgnoreCase(attributeName))
{
yAaxixNodeList = graphDataNode.getChildNodes();
for (int j = 0; j < yAaxixNodeList.getLength(); j++)
{
yAxsisNode = yAaxixNodeList.item(j);
if ("col_group_title".equals(yAxsisNode.getNodeName()))
{
dataStringValue = new JSONString(yAxsisNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("yAxisName");
metaDataMap.put(jsnStringKey, dataStringValue);
}
String flag = null;
if ("columns".equals(yAxsisNode.getNodeName()))
{
flag = "false";
NodeList yAxsisNodeList = yAxsisNode.getChildNodes();
for (int colCtr = 0; colCtr < yAxsisNodeList.getLength(); colCtr++)
{
columnNode = yAxsisNodeList.item(colCtr);
columnID = columnNode.getAttributes().getNamedItem("id").getNodeValue();
yAxisColunList.add(columnID);
yAxisColumnName.add(columnNode.getChildNodes().item(0).getNodeValue());
renderDtl = columnNode.getAttributes().getNamedItem("render").getNodeValue();
renderInfoList.add(renderDtl);
showValDtl = columnNode.getAttributes().getNamedItem("showvalue").getNodeValue();
showValList.add(showValDtl);
colorDtl = columnNode.getAttributes().getNamedItem("color").getNodeValue();
colorInfoList.add(colorDtl);
if (columnNode.getAttributes().getNamedItem("linevisibility") != null)
{
lineVisibleDtl = columnNode.getAttributes().getNamedItem("linevisibility").getNodeValue();
if (!lineVisibleDtl.trim().equals("0"))
{
flag = "true";
}
lineVisibleList.add(lineVisibleDtl);
}
if (columnNode.getAttributes().getNamedItem("dotthickness") != null)
{
dotThicknessDtl = columnNode.getAttributes().getNamedItem("dotthickness").getNodeValue();
dotThicknessList.add(dotThicknessDtl);
}
}
if (flag.equals("false"))
{
metaDataMap.put(new JSONString("lineAlpha"), new JSONString("1"));
metaDataMap.put(new JSONString("anchorBorderThickness"), new JSONString("3"));
}
}
//added by swati "placevaluesinside": "1",rotatevalues
if ("left_yaxis_title".equals(yAxsisNode.getNodeName()))
{
dataStringValue = new JSONString(yAxsisNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("pyaxisname");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("right_yaxis_title".equals(yAxsisNode.getNodeName()))
{
dataStringValue = new JSONString(yAxsisNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("syaxisname");
metaDataMap.put(jsnStringKey, dataStringValue);
}
//end added by swati
}
}
}
//Add on dated by swati for chart_properties
if ("chart_properties".equalsIgnoreCase(childNodeName))
{
chartTypeList = new ArrayList<String>();
chartPropertyNodeList = graphDataNode.getChildNodes();
for (int k = 0; k < chartPropertyNodeList.getLength(); k++)
{
chartPropertyNode = chartPropertyNodeList.item(k);
if ("caption".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("caption");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("labelDisplay".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("labelDisplay");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("bg_color".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("bgcolor");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("showlegend".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("showLegend");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("useroundedges".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("useroundedges");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("rotatevalues".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("rotateValues");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("decimals".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("decimals");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("formatnumberscale".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("formatNumberScale");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("formatnumber".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("formatNumber");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("chart_type".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("chart_type");
graphDtlList.add(chartPropertyNode.getChildNodes().item(0).getNodeValue());
chartTypeList.add(chartPropertyNode.getAttributes().getNamedItem("id").getNodeValue());
}
if ("width".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("width");
graphDtlList.add(chartPropertyNode.getChildNodes().item(0).getNodeValue());
//metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("height".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("height");
graphDtlList.add(chartPropertyNode.getChildNodes().item(0).getNodeValue());
//metaDataMap.put(jsnStringKey, dataStringValue);
}
}
}
//end swati
}
metaDataList.add(metaDataMap.toString().replace('=', ':'));
graphDtlList.add(xAxisColunList);
graphDtlList.add(yAxisColunList);
graphDtlList.add(metaDataList);
graphDtlList.add(xAxisColumnName);
graphDtlList.add(yAxisColumnName);
graphDtlList.add(renderInfoList);
graphDtlList.add(colorInfoList);
graphDtlList.add(lineVisibleList);
graphDtlList.add(dotThicknessList);
graphDtlList.add(showValList);
graphDtlList.add(chartTypeList);
conuter++;
gridNGraphMeataDataMap.put("type"+graphID, typeGraphMap);
graphMeataDataMap.put("graph" + conuter, graphDtlList);
gridNGraphMeataDataMap.put(graphID, graphMeataDataMap);
gridNGraphMeataDataMap.put("datasource"+graphID, graphDataSourceMap);
}
}
}
}
}
}
} catch (Exception e)
{
Window.alert(" Exception :: getGridNMapMetData() :: MetaDataDtl [" + e.getMessage() + "]");
}
}
gridNGraphMeataDataMap.put("datSrc", datsSourceDtlMap);
return gridNGraphMeataDataMap;
}
public ArrayList<FilterInfo> getFilters(JSONObject jsonObjMetadata)
{
Document document = null;
String xmlMetadata = null;
Node rootNode = null;
NodeList rootNodeList = null;
NodeList filtrNodeList = null;
NodeList fltrDtlNodeList = null;
Node columNode = null;
ArrayList<FilterInfo> fltrDtlList = new ArrayList<FilterInfo>();
;
FilterInfo filterInfo = null;
if (jsonObjMetadata != null)
{
xmlMetadata = jsonObjMetadata.get("metaData").toString();
xmlMetadata = jsonObjMetadata.get("metaData").toString().replace("\\", "").trim();
xmlMetadata = xmlMetadata.replace('"', ' ').trim();
try
{
document = XMLParser.parse(xmlMetadata);
XMLParser.removeWhitespace(document);
if (document != null)
{
rootNodeList = document.getElementsByTagName("Root").item(0).getChildNodes();
for (int rootCtr = 0; rootCtr < rootNodeList.getLength(); rootCtr++)
{
rootNode = rootNodeList.item(rootCtr);
if ("filters".equals(rootNode.getNodeName()))
{
filtrNodeList = rootNode.getChildNodes();
for (int fltrCtr = 0; fltrCtr < filtrNodeList.getLength(); fltrCtr++)
{
fltrDtlNodeList = filtrNodeList.item(fltrCtr).getChildNodes();
filterInfo = new FilterInfo();
filterInfo.setFiltertype(filtrNodeList.item(fltrCtr).getAttributes().getNamedItem("type").getNodeValue());
for (int dtlCnt = 0; dtlCnt < fltrDtlNodeList.getLength(); dtlCnt++)
{
columNode = fltrDtlNodeList.item(dtlCnt);
if ("col_title".equals(columNode.getNodeName()))
{
// fltrDtlList.add(columNode.getChildNodes().item(0).getNodeValue());
filterInfo.setColTitle(columNode.getChildNodes().item(0).getNodeValue());
}
if ("col_name".equals(columNode.getNodeName()))
{
// fltrDtlList.add(columNode.getChildNodes().item(0).getNodeValue());
filterInfo.setColName(columNode.getChildNodes().item(0).getNodeValue());
filterInfo.setColNameId(columNode.getAttributes().getNamedItem("id").getNodeValue());
filterInfo.setColModuleName(columNode.getAttributes().getNamedItem("moduleName").getNodeValue());
}
if ("col_descr".equals(columNode.getNodeName()))
{
filterInfo.setColDescr(columNode.getChildNodes().item(0).getNodeValue());
// fltrDtlList.add(columNode.getChildNodes().item(0).getNodeValue());
}
}
fltrDtlList.add(filterInfo);
}
}
}
}
} catch (Exception e)
{
Window.alert(" Exception :: :: getFilters() :: MetaDataDtl [" + e.getMessage() + "]");
}
}
return fltrDtlList;
}
public ArrayList<String> getTitle(JSONObject jsonObjMetadata)
{
Document document = null;
String xmlMetadata = null;
Node rootNode = null;
NodeList rootNodeList = null;
ArrayList<String> pageTitle = new ArrayList<String>();
if (jsonObjMetadata != null)
{
xmlMetadata = jsonObjMetadata.get("metaData").toString();
xmlMetadata = jsonObjMetadata.get("metaData").toString().replace("\\", "").trim();
xmlMetadata = xmlMetadata.replace('"', ' ').trim();
try
{
document = XMLParser.parse(xmlMetadata);
XMLParser.removeWhitespace(document);
if (document != null)
{
rootNodeList = document.getElementsByTagName("Root").item(0).getChildNodes();
for (int rootCtr = 0; rootCtr < rootNodeList.getLength(); rootCtr++)
{
rootNode = rootNodeList.item(rootCtr);
if ("page_title".equals(rootNode.getNodeName()))
{
pageTitle.add(rootNode.getChildNodes().item(0).getNodeValue());
}
if ("sub_title".equals(rootNode.getNodeName()))
{
pageTitle.add(rootNode.getChildNodes().item(0).getNodeValue());
}
}
}
} catch (Exception e)
{
Window.alert(" Exception :: getGridNMapMetData() :: MetaDataDtl [" + e.getMessage() + "]");
}
}
return pageTitle;
}
}
package ibase.client;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;
/**
* This widget is to create <p> elements in a page.
*/
public class Paragraph extends Widget implements HasText {
public Paragraph() {
setElement(DOM.createElement("p"));
}
public Paragraph(String text) {
this();
setText(text);
}
public String getText() {
return getElement().getInnerText();
}
public void setText(String text) {
getElement().setInnerText(text);
}
}
package ibase.client;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasText;
/**
* This widget is to create <span> elements in a page.
*/
public class Span extends HTML implements HasText {
public Span() {
super(DOM.createElement("span"));
}
public Span(String text) {
this();
setText(text);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='gwtdashboardreport'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<add-linker name='xs' />
<extend-property name="locale" values="ru"/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<inherits name="com.google.gwt.xml.XML" />
<inherits name='com.google.gwt.widgetideas.WidgetIdeas'/>
<inherits name='com.google.gwt.widgetideas.ScrollTable'/>
<inherits name='com.google.gwt.gen2.table.ScrollTable'/>
<inherits name='com.google.gwt.gen2.table.FixedWidthFlexTable'/>
<inherits name='com.google.gwt.gen2.table.FixedWidthGrid'/>
<inherits name='com.google.gwt.uibinder.UiBinder'/>
<inherits name="com.google.gwt.http.HTTP"/>
<inherits name='com.google.code.gwt.storage.Html5Storage'/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- Other module inherits -->
<inherits name='org.gwt.mosaic.Mosaic' />
<inherits name="org.gwt.mosaic.actions.Actions"/>
<inherits name="org.gwt.mosaic.theme.aegean.AegeanResources" />
<inherits name='org.gwt.mosaic.theme.aegean.Aegean' />
<inherits name="org.helios.gwt.fonts.GwtWebFonts"/>
<inherits name="com.google.gwt.xml.XML" />
<inherits name="com.google.gwt.json.JSON" />
<inherits name="ibase.e12ria.e12table.E12Table" />
<inherits name="ibase.e12ria.e12widgets.E12Widgets" />
<!-- <inherits name='com.google.gwt.visualization.Visualization' />
<inherits name="com.googlecode.gwtTableToExcel.gwtTableToExcel" /> -->
<!-- Specify the app entry point class. -->
<entry-point class='ibase.client.GWTDashBoardReport' />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />
</module>
package snippet;
public class Snippet
{
String userId = "sachin";
String xmlMetadata =null;
public static void main(String[] args)
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment