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, #displayed?, #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.



135
136
137
138
139
# File 'library/cwm/src/lib/cwm/dialog.rb', line 135

def initialize(text)
  super("__fake_help_widget")

  @text = text
end

Instance Method Details

#helpObject



146
147
148
# File 'library/cwm/src/lib/cwm/dialog.rb', line 146

def help
  @text
end

#initObject



141
142
143
144
# File 'library/cwm/src/lib/cwm/dialog.rb', line 141

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