Class: Installation::Widgets::LSM

Inherits:
CWM::CustomWidget
  • Object
show all
Defined in:
src/lib/installation/widgets/lsm.rb

Overview

Note:

the selinux module will show also a selector for choosing the SELinux mode to be used after the system is booted

This widget contents a selector for choosing between the supported Linux Security Major Modules during installation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ LSM

Constructor

Parameters:



37
38
39
40
41
# File 'src/lib/installation/widgets/lsm.rb', line 37

def initialize(settings)
  super()
  @settings = settings
  self.handle_all_events = true
end

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



32
33
34
# File 'src/lib/installation/widgets/lsm.rb', line 32

def settings
  @settings
end

Instance Method Details

#contentsObject

See Also:

  • CWM::CustomWidget#contents


50
51
52
53
54
55
# File 'src/lib/installation/widgets/lsm.rb', line 50

def contents
  VBox(
    lsm_selector_widget,
    Left(replace_widget)
  )
end

#handle(event) ⇒ Object

It refresh the widget content dinamically when the selection of the LSM is modified

Parameters:

  • event (Hash)

    a UI event



60
61
62
63
64
65
# File 'src/lib/installation/widgets/lsm.rb', line 60

def handle(event)
  return if event["ID"] != lsm_selector_widget.widget_id

  refresh
  nil
end

#initObject

See Also:

  • CWM::CustomWidget#init


44
45
46
47
# File 'src/lib/installation/widgets/lsm.rb', line 44

def init
  lsm_selector_widget.init
  refresh
end