Adnaan Sachidanandan | cf386b1 | 2017-08-09 15:12:45 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 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 | */ |
| 16 | package org.onosproject.linkprops; |
| 17 | |
| 18 | import org.onosproject.ui.UiTopoOverlay; |
| 19 | import org.onosproject.ui.topo.PropertyPanel; |
| 20 | import org.onosproject.ui.GlyphConstants; |
| 21 | |
| 22 | import static org.onosproject.ui.topo.TopoConstants.Properties.FLOWS; |
| 23 | import static org.onosproject.ui.topo.TopoConstants.Properties.INTENTS; |
| 24 | import static org.onosproject.ui.topo.TopoConstants.Properties.TOPOLOGY_SSCS; |
| 25 | import static org.onosproject.ui.topo.TopoConstants.Properties.TUNNELS; |
| 26 | import static org.onosproject.ui.topo.TopoConstants.Properties.VERSION; |
| 27 | |
| 28 | /** |
| 29 | * Link Properties topology overlay. |
| 30 | */ |
| 31 | public class LinkPropsTopovOverlay extends UiTopoOverlay { |
| 32 | |
| 33 | // NOTE: this must match the ID defined in sampleTopov.js |
| 34 | private static final String OVERLAY_ID = "linkprops-overlay"; |
| 35 | |
| 36 | private static final String MY_TITLE = "Link Properties"; |
| 37 | private static final String MY_VERSION = "Beta-1.0.0042"; |
| 38 | |
| 39 | |
| 40 | public LinkPropsTopovOverlay() { |
| 41 | super(OVERLAY_ID); |
| 42 | } |
| 43 | |
| 44 | |
| 45 | @Override |
| 46 | public void modifySummary(PropertyPanel pp) { |
| 47 | pp.title(MY_TITLE) |
| 48 | .glyphId(GlyphConstants.CROWN) |
| 49 | .removeProps( |
| 50 | TOPOLOGY_SSCS, |
| 51 | INTENTS, |
| 52 | TUNNELS, |
| 53 | FLOWS, |
| 54 | VERSION |
| 55 | ) |
Ray Milkey | 312221c | 2019-02-19 11:31:29 -0800 | [diff] [blame] | 56 | .addProp(VERSION, VERSION, MY_VERSION); |
Adnaan Sachidanandan | cf386b1 | 2017-08-09 15:12:45 -0700 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | } |