2 * ================================================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ================================================================================
20 package org.openecomp.portalsdk.analytics.model.runtime;
24 import org.openecomp.portalsdk.analytics.*;
25 import org.openecomp.portalsdk.analytics.system.*;
26 import org.openecomp.portalsdk.analytics.util.*;
28 public class VisualManager extends RaptorObject {
29 private HashMap hiddenCols = new HashMap();
31 private String sortByColId = "";
33 private String sortByAscDesc = AppConstants.SO_ASC;
35 public VisualManager() {
39 public void hideColumn(String colId) {
40 hiddenCols.put(colId, "Y");
43 public void showColumn(String colId) {
44 hiddenCols.put(colId, "N");
47 public boolean isColumnVisible(String colId) {
48 return nvl((String) hiddenCols.get(colId), "N").equals("N");
51 public void setSortByColumn(String colId) {
52 if (sortByColId.equals(colId))
53 sortByAscDesc = sortByAscDesc.equals(AppConstants.SO_ASC) ? AppConstants.SO_DESC
54 : AppConstants.SO_ASC;
57 sortByAscDesc = AppConstants.SO_ASC;
61 public String getSortByColId() {
65 public String getSortByAscDesc() {