Simon Hunt
Committed by Gerrit Code Review

GUI -- Minor adjustments to sample UI components (archetypes).

Change-Id: I410fc1822b0a3dac279b1e070e008a9c7b5d1b03
...@@ -35,35 +35,35 @@ ...@@ -35,35 +35,35 @@
35 .controller('OvSampleCustomCtrl', 35 .controller('OvSampleCustomCtrl',
36 ['$log', '$scope', 'WebSocketService', 'KeyService', 36 ['$log', '$scope', 'WebSocketService', 'KeyService',
37 37
38 - function (_$log_, _$scope_, _wss_, _ks_) { 38 + function (_$log_, _$scope_, _wss_, _ks_) {
39 - $log = _$log_; 39 + $log = _$log_;
40 - $scope = _$scope_; 40 + $scope = _$scope_;
41 - wss = _wss_; 41 + wss = _wss_;
42 - ks = _ks_; 42 + ks = _ks_;
43 43
44 - var handlers = {}; 44 + var handlers = {};
45 - $scope.data = {}; 45 + $scope.data = {};
46 46
47 - // data response handler 47 + // data response handler
48 - handlers[dataResp] = respDataCb; 48 + handlers[dataResp] = respDataCb;
49 - wss.bindHandlers(handlers); 49 + wss.bindHandlers(handlers);
50 50
51 - addKeyBindings(); 51 + addKeyBindings();
52 52
53 - // custom click handler 53 + // custom click handler
54 - $scope.getData = getData; 54 + $scope.getData = getData;
55 55
56 - // get data the first time... 56 + // get data the first time...
57 - getData(); 57 + getData();
58 58
59 - // cleanup 59 + // cleanup
60 - $scope.$on('$destroy', function () { 60 + $scope.$on('$destroy', function () {
61 - wss.unbindHandlers(handlers); 61 + wss.unbindHandlers(handlers);
62 - ks.unbindKeys(); 62 + ks.unbindKeys();
63 - $log.log('OvSampleCustomCtrl has been destroyed'); 63 + $log.log('OvSampleCustomCtrl has been destroyed');
64 - }); 64 + });
65 65
66 - $log.log('OvSampleCustomCtrl has been created'); 66 + $log.log('OvSampleCustomCtrl has been created');
67 - }]); 67 + }]);
68 68
69 }()); 69 }());
......
...@@ -123,8 +123,8 @@ public class AppUiTableMessageHandler extends UiMessageHandler { ...@@ -123,8 +123,8 @@ public class AppUiTableMessageHandler extends UiMessageHandler {
123 // fake data for demonstration purposes... 123 // fake data for demonstration purposes...
124 Item item = getItem(id); 124 Item item = getItem(id);
125 125
126 - ObjectNode rootNode = MAPPER.createObjectNode(); 126 + ObjectNode rootNode = objectNode();
127 - ObjectNode data = MAPPER.createObjectNode(); 127 + ObjectNode data = objectNode();
128 rootNode.set(DETAILS, data); 128 rootNode.set(DETAILS, data);
129 129
130 if (item == null) { 130 if (item == null) {
......
1 /* css for sample app view */ 1 /* css for sample app view */
2 2
3 -#ov-sample h2 { 3 +#ov-sample-table h2 {
4 display: inline-block; 4 display: inline-block;
5 } 5 }
6 6
7 +#ov-sample-table div.ctrl-btns {
8 + width: 45px;
9 +}
10 +
7 /* Panel Styling */ 11 /* Panel Styling */
8 #ov-sample-table-item-details-panel.floatpanel { 12 #ov-sample-table-item-details-panel.floatpanel {
9 position: absolute; 13 position: absolute;
......