diff options
author | Christopher Lott (cl778h) <clott@research.att.com> | 2017-08-31 15:16:38 -0400 |
---|---|---|
committer | Christopher Lott (cl778h) <clott@research.att.com> | 2017-08-31 15:42:50 -0400 |
commit | 7f535078ef80a7b7efa3e3325bfccb994fbd00e8 (patch) | |
tree | 66d908df2eb7cf0b048f754eac6b44619255eb8a /ecomp-sdk/epsdk-analytics/src/main/java/org/openecomp/portalsdk/analytics/view/DataValue.java | |
parent | 224487bc124df7988442a60d72d4aa106697306b (diff) |
Rename packages to org.onap in 1.4.0-SNAPSHOT
19 - remove openecomp
72 - remediate Sonar scan issues
79 - removed unwanted left menu under Report
90 - apply approved license text
Issue: PORTAL-19, PORTAL-72, PORTAL-79, PORTAL-90
Change-Id: I41a0ef5fba623d2242574bd15f2d9fb8029a496c
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/main/java/org/openecomp/portalsdk/analytics/view/DataValue.java')
-rw-r--r-- | ecomp-sdk/epsdk-analytics/src/main/java/org/openecomp/portalsdk/analytics/view/DataValue.java | 361 |
1 files changed, 0 insertions, 361 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/openecomp/portalsdk/analytics/view/DataValue.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/openecomp/portalsdk/analytics/view/DataValue.java deleted file mode 100644 index af018cf7..00000000 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/openecomp/portalsdk/analytics/view/DataValue.java +++ /dev/null @@ -1,361 +0,0 @@ -/*- - * ================================================================================ - * ECOMP Portal SDK - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ================================================================================ - */ -package org.openecomp.portalsdk.analytics.view; - -import org.openecomp.portalsdk.analytics.util.*; - -public class DataValue extends org.openecomp.portalsdk.analytics.RaptorObject { - private String displayValue = ""; - - private String displayCalculatedValue = ""; - - private String drillDownURL = null; - - private boolean drillDowninPoPUp = false; - - private String indentation = ""; - - private String alignment = "Left"; - - private boolean visible = true; - - private boolean hidden = false; - - private boolean bold = false; - - private HtmlFormatter cellFormatter = null; - - private HtmlFormatter rowFormatter = null; - - private String formatId = null; - - private boolean cellFormat = false; - - private String colId = null; - - private String displayTotal = null; - - private String colName = null; - - private String displayName = null; - - private String nowrap = "False"; - - private String hyperlinkURL = ""; - - private String displayType = ""; - - private String actionImg = ""; - - - public String getColName() { - - return colName; - } - - - public void setColName(String colName) { - - this.colName = colName; - } - - public DataValue() { - super(); - } - - public String getFormatId() { - return formatId; - } - - - public void setFormatId(String formatId) { - this.formatId = formatId; - } - - public void setCellFormat(boolean b) { - cellFormat = b; - } - public boolean isCellFormat() { - return cellFormat; - } - - public String getDisplayValue() { - return displayValue; - } - - public String getDrillDownURL() { - return drillDownURL; - } - - public String getAlignment() { - return alignment; - } - - public boolean isVisible() { - return visible; - } - - public boolean isBold() { - return bold; - } - - public HtmlFormatter getCellFormatter() { - return cellFormatter; - } - - public HtmlFormatter getRowFormatter() { - return rowFormatter; - } - - public void setDisplayValue(String displayValue) { - this.displayValue = nvl(displayValue); - } - - public void setDrillDownURL(String drillDownURL) { - this.drillDownURL = drillDownURL; - } - - public void setAlignment(String alignment) { - this.alignment = alignment; - } - - public void setVisible(boolean visible) { - this.visible = visible; - } - - public void setBold(boolean bold) { - this.bold = bold; - } - - public void setCellFormatter(HtmlFormatter cellFormatter) { - this.cellFormatter = cellFormatter; - } - - public void setRowFormatter(HtmlFormatter rowFormatter) { - this.rowFormatter = rowFormatter; - } - - private String getFormattedValue(String value) { - value = nvl(value.trim()).length()<=0 ? " ":value; - if (cellFormatter != null) - return cellFormatter.formatValue(value); - else if (rowFormatter != null) - return rowFormatter.formatValue(value); - else - return value; - } // getFormattedValue - - private String getFormattedLink(String value) { - if (cellFormatter != null) - return cellFormatter.formatLink(value, drillDownURL, isDrillDowninPoPUp()); - else if (rowFormatter != null) - return rowFormatter.formatLink(value, drillDownURL, isDrillDowninPoPUp()); - else { - if(!isDrillDowninPoPUp()) { - return "<a href=\"" + drillDownURL + "\">" + value + "</a>"; - } else { - return "<a href=\"#\" onClick=\"showDrillDownInPopup('" + drillDownURL + "&noFormFields=Y&isEmbedded=Y&show_back_btn=N"+ "')\">" + value + "</a>"; - } - - } - } // getFormattedValue - - private String getValueHtml() { - return (nvl(displayValue).trim().length() == 0) ? " " : displayValue; - } - - public String getDisplayValueHtml() { - return getFormattedValue(getValueHtml()); - } - - public String getDisplayValueLinkHtml() { - if (nvl(drillDownURL).length() == 0) - return getDisplayValueHtml(); - else - return getFormattedLink(getValueHtml()); - // return getFormattedValue("<a - // href=\""+drillDownURL+"\">"+getValueHtml()+"</a>"); - } // getDisplayValueLinkHtml - - public String getAlignmentHtml() { - if (cellFormatter != null && cellFormatter.getAlignment().length() > 0) - return " align=" + cellFormatter.getAlignment(); - else if (rowFormatter != null && rowFormatter.getAlignment().length() > 0) - return " align=" + rowFormatter.getAlignment(); - else - return (alignment.length() == 0) ? "" : (" align=" + alignment); - } // getAlignmentHtml - - public String getBgColorHtml() { - if (cellFormatter != null && cellFormatter.getBgColor().length() > 0) - return " bgcolor=" + cellFormatter.getBgColor(); - else if (rowFormatter != null && rowFormatter.getBgColor().length() > 0) - return " bgcolor=" + rowFormatter.getBgColor(); - else - return ""; - } // getBgColorHtml - - - public String getColId() { - - return colId; - } - - - public void setColId(String colId) { - - this.colId = colId; - } - - - public String getDisplayTotal() { - - return displayTotal; - } - - - public void setDisplayTotal(String displayTotal) { - - this.displayTotal = displayTotal; - } - - - - public String getDisplayName() { - - return displayName; - } - - - - public void setDisplayName(String displayName) { - - this.displayName = displayName; - } - - - public boolean isHidden() { - return hidden; - } - - - public void setHidden(boolean hidden) { - this.hidden = hidden; - } - - public String getNowrap() { - return nowrap; - } - - - public void setNowrap(String nowrap) { - this.nowrap = nowrap; - } - - public boolean isDrillDowninPoPUp() { - return drillDowninPoPUp; - } - - - public void setDrillDowninPoPUp(boolean drillDowninPoPUp) { - this.drillDowninPoPUp = drillDowninPoPUp; - } - - - /** - * @return the displayCalculatedValue - */ - public String getDisplayCalculatedValue() { - return displayCalculatedValue; - } - - - /** - * @param displayCalculatedValue the displayCalculatedValue to set - */ - public void setDisplayCalculatedValue(String displayCalculatedValue) { - this.displayCalculatedValue = displayCalculatedValue; - } - - - /** - * @return the indentation - */ - public String getIndentation() { - return indentation; - } - - - /** - * @param indentation the indentation to set - */ - public void setIndentation(String indentation) { - this.indentation = indentation; - } - - - /** - * @return the hyperlinkURL - */ - public String getHyperlinkURL() { - return hyperlinkURL; - } - - - /** - * @param hyperlinkURL the hyperlinkURL to set - */ - public void setHyperlinkURL(String hyperlinkURL) { - this.hyperlinkURL = hyperlinkURL; - } - - - /** - * @return the displayType - */ - public String getDisplayType() { - return displayType; - } - - - /** - * @param displayType the displayType to set - */ - public void setDisplayType(String displayType) { - this.displayType = displayType; - } - - - /** - * @return the actionImg - */ - public String getActionImg() { - return actionImg; - } - - - /** - * @param actionImg the actionImg to set - */ - public void setActionImg(String actionImg) { - this.actionImg = actionImg; - } - -} // DataValue |