Class: OpenHAB::DSL::Sitemaps::ButtonBuilder
- Inherits:
-
WidgetBuilder
- Object
- WidgetBuilder
- OpenHAB::DSL::Sitemaps::ButtonBuilder
- Defined in:
- lib/openhab/dsl/sitemaps/builder.rb
Overview
Builds a Button element
This element can only exist within a Buttongrid element.
Instance Attribute Summary collapse
-
#click ⇒ String, Command
The command to send when the button is pressed.
-
#column ⇒ Integer
The column in which the button is placed.
-
#release ⇒ String, ...
The command to send when the button is released.
-
#row ⇒ Integer
The row in which the button is placed.
-
#stateless ⇒ true, ...
writeonly
Whether the button is stateless.
Attributes inherited from WidgetBuilder
#icon, #icon_colors, #item, #label, #label_colors, #static_icon, #value_colors, #visibilities
Instance Method Summary collapse
-
#stateless? ⇒ true, ...
Whether the button is stateless.
Methods inherited from WidgetBuilder
#confirm, #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 Attribute Details
#click ⇒ String, Command
The command to send when the button is pressed
825 826 827 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 825 def click @click end |
#column ⇒ Integer
The column in which the button is placed
821 822 823 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 821 def column @column end |
#release ⇒ String, ...
The command to send when the button is released
829 830 831 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 829 def release @release end |
#row ⇒ Integer
The row in which the button is placed
817 818 819 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 817 def row @row end |
#stateless=(value) ⇒ true, ... (writeonly)
Whether the button is stateless
833 834 835 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 833 def stateless=(value) @stateless = value end |
Instance Method Details
#stateless? ⇒ true, ...
Whether the button is stateless
867 868 869 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 867 def stateless? @stateless end |