class Twb::DocDashboardImageVert
Attributes
image[R]
Public Class Methods
new()
click to toggle source
# File lib/twb/docdashboardimagevert.rb, line 63 def initialize @oneImageDash = Nokogiri::XML::Document.parse @@dashdoc # notes: # - adding a size element to the <dashboard element will change it from automatic, e.g. # # <dashboard name='One Column Web Page Laptop (800w 600h)'> # <style> # </style> # <size maxheight='600' maxwidth='800' minheight='600' minwidth='800' /> # # - the 'name' sttributes for the window and dashboard must match @type = 'columnar Image' @dashnode = @oneImageDash.at_xpath('//dashboard') @winnode = @oneImageDash.at_xpath('//window') end
Public Instance Methods
image=(imageFile)
click to toggle source
# File lib/twb/docdashboardimagevert.rb, line 85 def image=(imageFile) @image = imageFile dashImageZone = @dashnode.at_xpath('.//zone[@type="bitmap"]') dashImageZone['param'] = imageFile end
title=(title)
click to toggle source
# File lib/twb/docdashboardimagevert.rb, line 79 def title=(title) @title = title @dashnode['name'] = title @winnode['name'] = title end