Bri Prebilic Cole
Committed by Gerrit Code Review

GUI -- Refresh Icon added. - Fixed default column ID for intents view.

Change-Id: Ic8991a1886e0e88de38b75c2885d42fc9ad00512
......@@ -5,4 +5,4 @@ export OC1="192.168.56.101"
export OC2="192.168.56.102"
export OCN="192.168.56.103"
export ONOS_APPS="openflow,fwd,proxyarp,mobility"
export ONOS_APPS="drivers,openflow,fwd,proxyarp,mobility"
......
......@@ -51,6 +51,12 @@ public class IntentViewMessageHandler extends UiMessageHandler {
private static final String INTENT_DATA_REQ = "intentDataRequest";
private static final String APP_ID = "appId";
private static final String KEY = "key";
private static final String TYPE = "type";
private static final String PRIORITY = "priority";
private static final String RESOURCES = "resources";
private static final String DETAILS = "details";
@Override
protected Collection<RequestHandler> getHandlers() {
......@@ -67,7 +73,7 @@ public class IntentViewMessageHandler extends UiMessageHandler {
@Override
public void process(long sid, ObjectNode payload) {
RowComparator rc = TableUtils.createRowComparator(payload);
RowComparator rc = TableUtils.createRowComparator(payload, APP_ID);
IntentService service = get(IntentService.class);
TableRow[] rows = generateTableRows(service);
......@@ -94,13 +100,6 @@ public class IntentViewMessageHandler extends UiMessageHandler {
*/
private static class IntentTableRow extends AbstractTableRow {
private static final String APP_ID = "appId";
private static final String KEY = "key";
private static final String TYPE = "type";
private static final String PRIORITY = "priority";
private static final String RESOURCES = "resources";
private static final String DETAILS = "details";
private static final String[] COL_IDS = {
APP_ID, KEY, TYPE, PRIORITY, RESOURCES, DETAILS
};
......
......@@ -124,6 +124,14 @@
'76.3z M31.1,85.1v-4.9l32.8-26.4c0.3,0.3,0.8,0.5,1.3,0.5h10.5l' +
'7.7,21.9h-3c-1,0-1.9,0.8-1.9,1.9v6.9H31.1z',
refresh: 'M102.6,40.8L88.4,70.5L69.8,43.4L80,42.6c-0.7-2.3-1.7-' +
'5.1-3.4-7.8C71.8,27,64,23.1,53.5,23.1c-19.5,0-24.8,11.2-24.8,' +
'11.3l-10.1-4.3c0.3-0.7,7.9-18,35-18c24.8,0,35,17.3,37.7,29.6L' +
'102.6,40.8z M81.5,74.5c-0.2,0.5-5.5,11.4-24.9,11.4c-10.5,0-18.3' +
'-3.9-23.1-11.7c-1.7-2.8-2.8-5.6-3.4-7.8l10.2-0.8L21.7,38.5L7.5,' +
'68.2l11.4-0.9c2.7,12.3,12.9,29.6,37.7,29.6c26.9,0,34.6-17.2,34.9' +
'-18L81.5,74.5z',
// --- Navigation glyphs ------------------------------------
flowTable: 'M15.9,19.1h-8v-13h8V19.1z M90.5,6.1H75.6v13h14.9V6.1z' +
......
......@@ -37,7 +37,7 @@
play: 'play',
stop: 'stop',
crown: 'crown',
refresh: 'refresh',
upArrow: 'triangleUp',
downArrow: 'triangleDown',
......
......@@ -4,7 +4,7 @@
<h2>Applications ({{ctrl.tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh active"
icon icon-size="36" icon-id="crown"
icon icon-size="36" icon-id="refresh"
ng-click="refresh()"></div>
<div class="separator"></div>
<div id="app-install" icon icon-size="36" icon-id="plus" class="active"></div>
......
......@@ -20,7 +20,7 @@
<h2>Cluster Nodes ({{ctrl.tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh active"
icon icon-size="36" icon-id="crown"
icon icon-size="36" icon-id="refresh"
ng-click="refresh()"></div>
</div>
</div>
......
......@@ -4,7 +4,7 @@
<h2>Devices ({{ctrl.tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh active"
icon icon-size="36" icon-id="crown"
icon icon-size="36" icon-id="refresh"
ng-click="refresh()"></div>
</div>
</div>
......
......@@ -7,7 +7,7 @@
</h2>
<div class="ctrl-btns">
<div class="refresh active"
icon icon-size="36" icon-id="crown"
icon icon-size="36" icon-id="refresh"
ng-click="refresh()"></div>
</div>
</div>
......
......@@ -4,7 +4,7 @@
<h2>Hosts ({{ctrl.tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh active"
icon icon-size="36" icon-id="crown"
icon icon-size="36" icon-id="refresh"
ng-click="refresh()"></div>
</div>
</div>
......
......@@ -20,7 +20,7 @@
<h2>Intents ({{ctrl.tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh active"
icon icon-size="36" icon-id="crown"
icon icon-size="36" icon-id="refresh"
ng-click="refresh()"></div>
</div>
</div>
......
......@@ -20,7 +20,7 @@
<h2>Links ({{ctrl.tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh active"
icon icon-size="36" icon-id="crown"
icon icon-size="36" icon-id="refresh"
ng-click="refresh()"></div>
</div>
</div>
......
......@@ -20,7 +20,7 @@
describe('factory: fw/svg/glyph.js', function() {
var $log, fs, gs, d3Elem, svg;
var numBaseGlyphs = 38,
var numBaseGlyphs = 39,
vbBird = '352 224 113 112',
vbGlyph = '0 0 110 110',
vbBadge = '0 0 10 10',
......@@ -39,6 +39,7 @@ describe('factory: fw/svg/glyph.js', function() {
crown: 'M99.5,21.6c0,',
lock: 'M79.4,48.6h',
topo: 'M97.2,76.3H86.6',
refresh: 'M102.6,40.8L88.4',
// navigation specific glyphs
flowTable: 'M15.9,19.1h-8v-13h',
......@@ -79,9 +80,9 @@ describe('factory: fw/svg/glyph.js', function() {
},
glyphIds = [
'unknown', 'node', 'switch', 'roadm', 'endstation', 'router',
'bgpSpeaker', 'chain', 'crown', 'lock', 'topo', 'flowTable',
'summary', 'details', 'ports', 'map', 'cycleLabels', 'oblique',
'filters', 'resetZoom', 'relatedIntents', 'nextIntent',
'bgpSpeaker', 'chain', 'crown', 'lock', 'topo', 'refresh',
'flowTable', 'summary', 'details', 'ports', 'map', 'cycleLabels',
'oblique', 'filters', 'resetZoom', 'relatedIntents', 'nextIntent',
'prevIntent', 'intentTraffic', 'allTraffic', 'flows', 'eqMaster'
],
badgeIds = [
......