Implemented noRowsMessage method to UiRefTableViewMessageHandler.
Change-Id: I73a5ad8bce1668336ede05433cc9c57d9a572049
diff --git a/uiref/src/main/java/org/onosproject/uiref/UiRefTableViewMessageHandler.java b/uiref/src/main/java/org/onosproject/uiref/UiRefTableViewMessageHandler.java
index 4cf6ace..a4f33d1 100644
--- a/uiref/src/main/java/org/onosproject/uiref/UiRefTableViewMessageHandler.java
+++ b/uiref/src/main/java/org/onosproject/uiref/UiRefTableViewMessageHandler.java
@@ -64,6 +64,8 @@
// handler for table view data requests
private final class UiRefTableDataRequestHandler extends TableRequestHandler {
+ private static final String NO_ROWS_MESSAGE = "No items found";
+
private UiRefTableDataRequestHandler() {
super(UI_REF_TABLE_DATA_REQ, UI_REF_TABLE_DATA_RESP, UI_REF_TABLES);
}
@@ -75,6 +77,11 @@
return COLUMN_IDS;
}
+ @Override
+ protected String noRowsMessage(ObjectNode payload) {
+ return NO_ROWS_MESSAGE;
+ }
+
// if required, override createTableModel() to set
// column formatters / comparators