Class: OpenHAB::DSL::Sitemaps::ImageBuilder
- Inherits:
- 
      LinkableWidgetBuilder
      
        - Object
- WidgetBuilder
- LinkableWidgetBuilder
- OpenHAB::DSL::Sitemaps::ImageBuilder
 
- Defined in:
- lib/openhab/dsl/sitemaps/builder.rb
Overview
Builds an Image element
item can refer to either an ImageItem whose state is the raw data of the image, or a StringItem whose state is a URL that points to an image.
Instance Attribute Summary collapse
- 
  
    
      #refresh  ⇒ Numeric? 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    How often to refresh the image (in seconds). 
- 
  
    
      #url  ⇒ String? 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The default URL for the image, if there is no associated item, or if the associated item's state is not a URL. 
Attributes inherited from WidgetBuilder
#icon, #icon_colors, #item, #label, #label_colors, #static_icon, #value_colors, #visibilities
Method Summary
Methods inherited from LinkableWidgetBuilder
#buttongrid, #chart, #colorpicker, #default, #frame, #group, #image, #input, #mapview, #selection, #setpoint, #slider, #switch, #text, #video, #webview
Methods inherited from WidgetBuilder
#icon_color, #label_color, #value_color, #visibility
Methods included from Core::EntityLookup
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenHAB::Core::EntityLookup
Instance Attribute Details
#refresh ⇒ Numeric?
Returns How often to refresh the image (in seconds).
| 1143 1144 1145 | # File 'lib/openhab/dsl/sitemaps/builder.rb', line 1143 def refresh @refresh end | 
#url ⇒ String?
Returns The default URL for the image, if there is no associated item, or if the associated item's state is not a URL.
| 1141 1142 1143 | # File 'lib/openhab/dsl/sitemaps/builder.rb', line 1141 def url @url end | 
 
          