1 #set( $symbol_pound = '#' )
2 #set( $symbol_dollar = '$' )
3 #set( $symbol_escape = '\' )
5 * Copyright 2014,2015 Open Networking Laboratory
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.
21 import org.onosproject.ui.UiTopoOverlay;
22 import org.onosproject.ui.topo.ButtonId;
23 import org.onosproject.ui.topo.PropertyPanel;
24 import org.onosproject.ui.topo.TopoConstants.CoreButtons;
25 import org.onosproject.ui.topo.TopoConstants.Glyphs;
27 import static org.onosproject.ui.topo.TopoConstants.Properties.*;
30 * Our topology overlay.
32 public class AppUiTopovOverlay extends UiTopoOverlay {
34 // NOTE: this must match the ID defined in sampleTopov.js
35 private static final String OVERLAY_ID = "meowster-overlay";
37 private static final String MY_TITLE = "My App Rocks!";
38 private static final String MY_VERSION = "Beta-1.0.0042";
39 private static final String MY_DEVICE_TITLE = "I changed the title";
41 private static final ButtonId FOO_BUTTON = new ButtonId("foo");
42 private static final ButtonId BAR_BUTTON = new ButtonId("bar");
44 public AppUiTopovOverlay() {
50 public void modifySummary(PropertyPanel pp) {
60 .addProp(VERSION, MY_VERSION);
64 public void modifyDeviceDetails(PropertyPanel pp) {
65 pp.title(MY_DEVICE_TITLE);
66 pp.removeProps(LATITUDE, LONGITUDE);
68 pp.addButton(FOO_BUTTON)
69 .addButton(BAR_BUTTON);
71 pp.removeButtons(CoreButtons.SHOW_PORT_VIEW)
72 .removeButtons(CoreButtons.SHOW_GROUP_VIEW);