...
Code Block |
---|
$ onos-create-app uitab org.meowster.app meowster-app |
Description of Template Files - Server Side
These files are under the directory ~/src/main/java/org/meowster/app.
The descriptions for both AppComponent and AppUiComponent remain the same as in the Custom View tutorial.
...
The sample table uses the default column identifier of "id", so can rely on the default implementation and does not need to override the method.
(2b) define column identifiers:
...
The sample table relies on the default formatter and comparator, and so does not need to override the method.
(2d) implement populateTable() to add rows to the supplied table model:
...
After which, it sends the message on its way by invoking sendMessage(...).
Description of Template Files - Client Side
Note that the directory naming convention must be observed for the files to be placed in the correct location when the archive is built. Since our view has the unique identifier "sample", its client source files should be placed under the directory ~/src/main/resources/app/view/sample.
~/src/main/resources/ | app/view/ | sample/ |
---|---|---|
client files | client files for UI views | client files for "sample" view |
sample.css
blah
sample.html
blah
sample.js
blah