Class: SmarterMeter::Interfaces::Wizard::CompletePage

Inherits:
Object
  • Object
show all
Includes:
WizardPage
Defined in:
lib/smartermeter/interfaces/swing.rb

Instance Method Summary collapse

Methods included from WizardPage

#build, #header

Constructor Details

#initialize(buttons) ⇒ CompletePage

Returns a new instance of CompletePage.



472
473
474
475
476
477
478
479
480
481
482
# File 'lib/smartermeter/interfaces/swing.rb', line 472

def initialize(buttons)
  @buttons = buttons

  title = "<html><b>SmarterMeter Setup Complete</b></html>"
  message =  "SmarterMeter will now run in your taskbar and periodically check for new power data "
  message += "and relay it to Google PowerMeter.<br><br>"
  message += "If you encounter an issue or would like to help improve SmarterMeter visit <a href='http://github.com/mcolyer/smartermeter/'>http://github.com/mcolyer/smatermeter</a>"
  message += "<br><br>Enjoy!"

  header(title, message, false)
end

Instance Method Details

#validate(*ignored_args) ⇒ Object

Enable the next button

Returns nothing.



487
488
489
# File 'lib/smartermeter/interfaces/swing.rb', line 487

def validate(*ignored_args)
  @buttons.next.enabled = true
end