Thomas Vachuska | 8871691 | 2015-11-13 08:15:01 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2014-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 | */ |
| 16 | |
| 17 | package org.onosproject.byon.gui; |
| 18 | |
| 19 | import org.onosproject.ui.UiTopoOverlay; |
| 20 | |
| 21 | /** |
| 22 | * Network Topology Overlay hooks. |
| 23 | */ |
| 24 | public class NetworkTopoOverlay extends UiTopoOverlay { |
| 25 | // NOTE: this must match the ID defined in uiRefTopov.js |
| 26 | private static final String OVERLAY_ID = "byon-overlay"; |
| 27 | |
| 28 | // private static final String MY_TITLE = "My App Rocks!"; |
| 29 | // private static final String MY_VERSION = "Beta-1.0.0042"; |
| 30 | // private static final String MY_DEVICE_TITLE = "I changed the title"; |
| 31 | // |
| 32 | // private static final ButtonId FOO_BUTTON = new ButtonId("foo"); |
| 33 | // private static final ButtonId BAR_BUTTON = new ButtonId("bar"); |
| 34 | |
| 35 | public NetworkTopoOverlay() { |
| 36 | super(OVERLAY_ID); |
| 37 | } |
| 38 | |
| 39 | /* |
| 40 | @Override |
| 41 | public void modifySummary(PropertyPanel pp) { |
| 42 | pp.title(MY_TITLE) |
| 43 | .typeId(TopoConstants.Glyphs.CROWN) |
| 44 | .removeProps( |
| 45 | TOPOLOGY_SSCS, |
| 46 | INTENTS, |
| 47 | TUNNELS, |
| 48 | FLOWS, |
| 49 | VERSION |
| 50 | ) |
| 51 | .addProp(VERSION, MY_VERSION); |
| 52 | } |
| 53 | |
| 54 | @Override |
| 55 | public void modifyDeviceDetails(PropertyPanel pp, DeviceId deviceId) { |
| 56 | pp.title(MY_DEVICE_TITLE); |
| 57 | pp.removeProps(LATITUDE, LONGITUDE); |
| 58 | |
| 59 | pp.addButton(FOO_BUTTON) |
| 60 | .addButton(BAR_BUTTON); |
| 61 | |
| 62 | pp.removeButtons(TopoConstants.CoreButtons.SHOW_PORT_VIEW) |
| 63 | .removeButtons(TopoConstants.CoreButtons.SHOW_GROUP_VIEW); |
| 64 | } |
| 65 | */ |
| 66 | |
| 67 | } |