Tabular views, unsurprisingly, present data in a tabular form. As an example, here is a screenshot of the hosts view...
Applications can create (and inject into the GUI) their own view(s) of tabular data. This tutorial will step you through the process...
Setting up the application is exactly the same as for the Custom View tutorial, with one minor difference: the choice of archetype in step (2) should be uitab instead of ui:
Currently, the uitab archetype has not been implemented, so the following command will not work until this has been fixed. |
(2) Overlay the UI additional components
$ onos-create-app uitab org.meowster.app meowster-app |
Similarly, the descriptions for both AppComponent and AppUiComponent remain the same as in the Custom View tutorial.
This class extends UiMessageHandler to implement code to handle events from the (client-side) sample application view. Salient features to note:
(1) implement createRequestHandlers() to provide request handler implementations for specific event types from our view.
@Override protected Collection<RequestHandler> createRequestHandlers() { return ImmutableSet.of( new SampleDataRequestHandler(), new SampleDetailRequestHandler() ); } |