Class: CWM::Dialog::FakeHelp

Inherits:
Empty show all
Defined in:
library/cwm/src/lib/cwm/dialog.rb

Overview

Empty widget which is first on the page and contain help for whole dialog

Instance Attribute Summary

Attributes inherited from AbstractWidget

#handle_all_events, #widget_id

Instance Method Summary collapse

Methods inherited from AbstractWidget

#cleanup, #cwm_definition, #disable, #enable, #enabled?, #focus, #fun_ref, #handle, #label, #my_event?, #opt, #refresh_help, #store, #validate, widget_type=

Constructor Details

#initialize(text) ⇒ FakeHelp

Returns a new instance of FakeHelp.


121
122
123
# File 'library/cwm/src/lib/cwm/dialog.rb', line 121

def initialize(text)
  @text = text
end

Instance Method Details

#helpObject


130
131
132
# File 'library/cwm/src/lib/cwm/dialog.rb', line 130

def help
  @text
end

#initObject


125
126
127
128
# File 'library/cwm/src/lib/cwm/dialog.rb', line 125

def init
  Yast::CWM.ReplaceWidgetHelp # needed for popup to properly set help text outside wizard
  log.info "calling init on fake help"
end