Remove List element from sitemap syntax (#3423)
Related to openhab/openhab-webui#1755 Related to openhab/openhab-android#3285 This sitemap widget is not documented. It is not implemented neither in Android app nor iOS app. It was implemented in BasicUI but was buggy. Support in BasicUI has been removed. Signed-off-by: Laurent Garnier <lg.hc@free.fr>pull/3427/head
parent
ac5bbb90b8
commit
6d989ea6e2
|
@ -75,7 +75,6 @@ import org.openhab.core.model.sitemap.sitemap.ColorArray;
|
|||
import org.openhab.core.model.sitemap.sitemap.Frame;
|
||||
import org.openhab.core.model.sitemap.sitemap.Image;
|
||||
import org.openhab.core.model.sitemap.sitemap.LinkableWidget;
|
||||
import org.openhab.core.model.sitemap.sitemap.List;
|
||||
import org.openhab.core.model.sitemap.sitemap.Mapping;
|
||||
import org.openhab.core.model.sitemap.sitemap.Mapview;
|
||||
import org.openhab.core.model.sitemap.sitemap.Selection;
|
||||
|
@ -564,10 +563,6 @@ public class SitemapResource
|
|||
bean.maxValue = sliderWidget.getMaxValue();
|
||||
bean.step = sliderWidget.getStep();
|
||||
}
|
||||
if (widget instanceof List) {
|
||||
List listWidget = (List) widget;
|
||||
bean.separator = listWidget.getSeparator();
|
||||
}
|
||||
if (widget instanceof Image) {
|
||||
bean.url = buildProxyUrl(sitemapName, widget, uri);
|
||||
Image imageWidget = (Image) widget;
|
||||
|
|
|
@ -42,7 +42,6 @@ public class WidgetDTO {
|
|||
public final List<MappingDTO> mappings = new ArrayList<>();
|
||||
public Boolean switchSupport;
|
||||
public Integer sendFrequency;
|
||||
public String separator;
|
||||
public Integer refresh;
|
||||
public Integer height;
|
||||
public BigDecimal minValue;
|
||||
|
|
|
@ -15,7 +15,7 @@ Widget:
|
|||
(LinkableWidget | NonLinkableWidget);
|
||||
|
||||
NonLinkableWidget:
|
||||
Switch | Selection | Slider | List | Setpoint | Video | Chart | Webview | Colorpicker | Mapview | Input | Default;
|
||||
Switch | Selection | Slider | Setpoint | Video | Chart | Webview | Colorpicker | Mapview | Input | Default;
|
||||
|
||||
LinkableWidget:
|
||||
(Text | Group | Image | Frame)
|
||||
|
@ -111,14 +111,6 @@ Selection:
|
|||
('iconcolor=[' (IconColor+=ColorArray (',' IconColor+=ColorArray)* ']'))? &
|
||||
('visibility=[' (Visibility+=VisibilityRule (',' Visibility+=VisibilityRule)* ']'))?);
|
||||
|
||||
List:
|
||||
'List' (('item=' item=ItemRef) & ('label=' label=(ID | STRING))? & ('icon=' icon=Icon)? &
|
||||
('separator=' separator=STRING) &
|
||||
('labelcolor=[' (LabelColor+=ColorArray (',' LabelColor+=ColorArray)* ']'))? &
|
||||
('valuecolor=[' (ValueColor+=ColorArray (',' ValueColor+=ColorArray)* ']'))? &
|
||||
('iconcolor=[' (IconColor+=ColorArray (',' IconColor+=ColorArray)* ']'))? &
|
||||
('visibility=[' (Visibility+=VisibilityRule (',' Visibility+=VisibilityRule)* ']'))?);
|
||||
|
||||
Setpoint:
|
||||
'Setpoint' (('item=' item=ItemRef) & ('label=' label=(ID | STRING))? & ('icon=' icon=Icon)? &
|
||||
('minValue=' minValue=Number)? & ('maxValue=' maxValue=Number)? & ('step=' step=Number)? &
|
||||
|
|
|
@ -45,7 +45,6 @@ import org.openhab.core.model.sitemap.sitemap.impl.DefaultImpl;
|
|||
import org.openhab.core.model.sitemap.sitemap.impl.FrameImpl;
|
||||
import org.openhab.core.model.sitemap.sitemap.impl.GroupImpl;
|
||||
import org.openhab.core.model.sitemap.sitemap.impl.ImageImpl;
|
||||
import org.openhab.core.model.sitemap.sitemap.impl.ListImpl;
|
||||
import org.openhab.core.model.sitemap.sitemap.impl.MappingImpl;
|
||||
import org.openhab.core.model.sitemap.sitemap.impl.MapviewImpl;
|
||||
import org.openhab.core.model.sitemap.sitemap.impl.SelectionImpl;
|
||||
|
@ -236,11 +235,6 @@ public class UIComponentSitemapProvider implements SitemapProvider, RegistryChan
|
|||
addWidgetMappings(selectionWidget.getMappings(), component);
|
||||
widget = selectionWidget;
|
||||
break;
|
||||
case "List":
|
||||
ListImpl listWidget = (ListImpl) SitemapFactory.eINSTANCE.createList();
|
||||
widget = listWidget;
|
||||
setWidgetPropertyFromComponentConfig(widget, component, "separator", SitemapPackage.LIST__SEPARATOR);
|
||||
break;
|
||||
case "Setpoint":
|
||||
SetpointImpl setpointWidget = (SetpointImpl) SitemapFactory.eINSTANCE.createSetpoint();
|
||||
widget = setpointWidget;
|
||||
|
|
Loading…
Reference in New Issue