Class: OpenHAB::DSL::Sitemaps::ButtonBuilder

Inherits:
WidgetBuilder show all
Defined in:
lib/openhab/dsl/sitemaps/builder.rb

Overview

Builds a Button element

This element can only exist within a Buttongrid element.

See Also:

Since:

  • openHAB 4.2

Instance Attribute Summary collapse

Attributes inherited from WidgetBuilder

#icon, #icon_colors, #item, #label, #label_colors, #static_icon, #value_colors, #visibilities

Instance Method Summary collapse

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 Attribute Details

#clickString, Command

The command to send when the button is pressed

Returns:

Since:

  • openHAB 4.2



769
770
771
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 769

def click
  @click
end

#columnInteger

The column in which the button is placed

Returns:

Since:

  • openHAB 4.2



765
766
767
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 765

def column
  @column
end

#releaseString, ...

The command to send when the button is released

Returns:

Since:

  • openHAB 4.2



773
774
775
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 773

def release
  @release
end

#rowInteger

The row in which the button is placed

Returns:

Since:

  • openHAB 4.2



761
762
763
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 761

def row
  @row
end

#stateless=(value) ⇒ true, ... (writeonly)

Whether the button is stateless

Returns:

  • (true, false, nil)

Since:

  • openHAB 4.2



777
778
779
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 777

def stateless=(value)
  @stateless = value
end

Instance Method Details

#stateless?true, ...

Whether the button is stateless

Returns:

  • (true, false, nil)

Since:

  • openHAB 4.2



811
812
813
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 811

def stateless?
  @stateless
end