kennychou0529 / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

A flag indicating if a sitemap widget with linked page have any children with linked pages #326

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Feature Description
We need an additional flag attribute when rendering sitemap page in response to 
REST API request indicating for every widget which has a linked page if this 
page have any widgets with linked pages, or it only consists of 'stub' widgets.

2. Example Use Case
This is very useful to improve user experience during navigation in 
user-interface apps in multi-pane view mode.
The same can be achieved by downloading the whole sitemap and analyzing it's 
structure, but keeping in mind a typical openHAB usage pattern on mobile 
devices this will be a huge pain for the user, especially on a slow connection. 
So we need to pre-analyze this on the openHAB side to reduce the amount of data 
transferred and thus improving the interaction speed.

Original issue reported on code.google.com by belovic...@gmail.com on 30 May 2013 at 8:35

GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 13 Aug 2013 at 4:16

GoogleCodeExporter commented 9 years ago
Implemented with changeset 
https://code.google.com/p/openhab/source/detail?r=10131388ec05a3727b12fc92524e45
19163a8790.

The PageBean now has a boolean "leaf" property - this property is also set on 
"linkedPage" entries of widgets.
Please check if this according to your expectations.

Original comment by kai.openhab on 17 Aug 2013 at 9:07