blob: 072404e7a7b16c8a5dd86d937ee7e207ba358a8e [file] [log] [blame]
Simon Hunt1002cd82015-04-23 14:44:03 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.ui;
17
18import com.google.common.base.MoreObjects;
19
20/**
21 * Represents user interface view addition, except that this one should not
22 * have an entry in the navigation panel.
23 */
24public class UiViewHidden extends UiView {
25
26 /**
27 * Creates a new user interface hidden view descriptor.
28 *
Thomas Vachuska8b91f4f2015-04-23 17:55:36 -070029 * @param id view identifier
Simon Hunt1002cd82015-04-23 14:44:03 -070030 */
31 public UiViewHidden(String id) {
Thomas Vachuska8b91f4f2015-04-23 17:55:36 -070032 super(Category.OTHER, id, null);
Simon Hunt1002cd82015-04-23 14:44:03 -070033 }
34
35 @Override
36 public String toString() {
37 return MoreObjects.toStringHelper(this)
38 .add("id", id())
39 .toString();
40 }
41}