Class: OpenHAB::DSL::Sitemaps::LinkableWidgetBuilder
- Inherits:
-
WidgetBuilder
- Object
- WidgetBuilder
- OpenHAB::DSL::Sitemaps::LinkableWidgetBuilder
- Defined in:
- lib/openhab/dsl/sitemaps/builder.rb
Overview
Parent class for builders of widgets that can contain other widgets.
Direct Known Subclasses
ButtongridBuilder, FrameBuilder, GroupBuilder, ImageBuilder, SitemapBuilder, TextBuilder
Instance Attribute Summary
Attributes inherited from WidgetBuilder
#icon, #icon_colors, #item, #label, #label_colors, #static_icon, #value_colors, #visibilities
Instance Method Summary collapse
-
#buttongrid(item: nil, label: nil, icon: nil, static_icon: nil, buttons: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ButtongridBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Buttongridelement. -
#chart(item: nil, label: nil, icon: nil, static_icon: nil, service: nil, refresh: nil, period: nil, legend: nil, group: nil, y_axis_pattern: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ChartBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Chartelement. -
#colorpicker(item: nil, label: nil, icon: nil, static_icon: nil, frequency: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ColorpickerBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Colorpickerelement. -
#colortemperaturepicker(item: nil, label: nil, icon: nil, static_icon: nil, range: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ColortemperaturepickerBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Colortemperaturepickerelement. -
#default(item: nil, label: nil, icon: nil, static_icon: nil, height: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ DefaultBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Defaultelement. -
#frame(item: nil, label: nil, icon: nil, static_icon: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ FrameBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Frameelement. -
#group(item: nil, label: nil, icon: nil, static_icon: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ GroupBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Groupelement. -
#image(item: nil, label: nil, icon: nil, static_icon: nil, url: nil, refresh: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ImageBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Imageelement. -
#input(item: nil, label: nil, icon: nil, static_icon: nil, hint: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ InputBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Inputelement. -
#mapview(item: nil, label: nil, icon: nil, static_icon: nil, height: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ MapviewBuilder
Create a new
Mapviewelement. -
#selection(item: nil, label: nil, icon: nil, static_icon: nil, mappings: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SelectionBuilder
Create a new
Selectionelement. -
#setpoint(item: nil, label: nil, icon: nil, static_icon: nil, range: nil, step: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SetpointBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Setpointelement. -
#slider(item: nil, label: nil, icon: nil, static_icon: nil, range: nil, step: nil, switch: nil, frequency: nil, release_only: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SliderBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Sliderelement. -
#switch(item: nil, label: nil, icon: nil, static_icon: nil, mappings: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SwitchBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Switchelement. -
#text(item: nil, label: nil, icon: nil, static_icon: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ TextBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Textelement. -
#video(item: nil, label: nil, icon: nil, static_icon: nil, url: nil, encoding: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ VideoBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Videoelement. -
#webview(item: nil, label: nil, icon: nil, static_icon: nil, url: nil, height: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ WebviewBuilder
One or more visibility rules (see WidgetBuilder#visibility) Create a new
Webviewelement.
Methods inherited from WidgetBuilder
#icon_color, #label_color, #value_color, #visibility
Methods included from Core::EntityLookup
#items, #method_missing, #things
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenHAB::Core::EntityLookup
Instance Method Details
#buttongrid(item: nil, label: nil, icon: nil, static_icon: nil, buttons: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ButtongridBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Buttongrid element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#chart(item: nil, label: nil, icon: nil, static_icon: nil, service: nil, refresh: nil, period: nil, legend: nil, group: nil, y_axis_pattern: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ChartBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Chart element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#colorpicker(item: nil, label: nil, icon: nil, static_icon: nil, frequency: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ColorpickerBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Colorpicker element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#colortemperaturepicker(item: nil, label: nil, icon: nil, static_icon: nil, range: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ColortemperaturepickerBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Colortemperaturepicker element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#default(item: nil, label: nil, icon: nil, static_icon: nil, height: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ DefaultBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Default element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#frame(item: nil, label: nil, icon: nil, static_icon: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ FrameBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Frame element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#group(item: nil, label: nil, icon: nil, static_icon: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ GroupBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Group element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#image(item: nil, label: nil, icon: nil, static_icon: nil, url: nil, refresh: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ ImageBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Image element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#input(item: nil, label: nil, icon: nil, static_icon: nil, hint: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ InputBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Input element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#mapview(item: nil, label: nil, icon: nil, static_icon: nil, height: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ MapviewBuilder
Create a new Mapview element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#selection(item: nil, label: nil, icon: nil, static_icon: nil, mappings: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SelectionBuilder
Create a new Selection element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#setpoint(item: nil, label: nil, icon: nil, static_icon: nil, range: nil, step: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SetpointBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Setpoint element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#slider(item: nil, label: nil, icon: nil, static_icon: nil, range: nil, step: nil, switch: nil, frequency: nil, release_only: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SliderBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Slider element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#switch(item: nil, label: nil, icon: nil, static_icon: nil, mappings: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ SwitchBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Switch element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#text(item: nil, label: nil, icon: nil, static_icon: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ TextBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Text element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#video(item: nil, label: nil, icon: nil, static_icon: nil, url: nil, encoding: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ VideoBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Video element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |
#webview(item: nil, label: nil, icon: nil, static_icon: nil, url: nil, height: nil, label_color: nil, value_color: nil, icon_color: nil, visibility: nil) { ... } ⇒ WebviewBuilder
One or more visibility rules (see WidgetBuilder#visibility)
Create a new Webview element.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 1129 i[frame text group image video chart webview switch mapview selection input setpoint colorpicker colortemperaturepicker default].each do |method| class_eval " def \#{method}(*args, **kwargs, &block) # def frame(*args, **kwargs, &block)\n widget = \#{method.capitalize}Builder.new(\#{method.inspect}, # widget = FrameBuilder.new(:frame,\n @builder_proxy, # @builder_proxy,\n *args, # *args,\n **kwargs, # **kwargs,\n &block) # &block)\n children << widget # children << widget\n widget # widget\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |