Class: Y2Network::Widgets::WirelessEap

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

Overview

High Level widget that allow to select kind of EAP authentication and also dynamically change its content according to the selection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ WirelessEap


35
36
37
38
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 35

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

Instance Attribute Details

#settingsObject (readonly)

Returns the value of attribute settings


33
34
35
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 33

def settings
  @settings
end

Instance Method Details

#contentsObject


51
52
53
54
55
56
57
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 51

def contents
  VBox(
    eap_mode,
    VSpacing(0.2),
    replace_widget
  )
end

#handle(event) ⇒ Object


44
45
46
47
48
49
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 44

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

  refresh
  nil
end

#initObject


40
41
42
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 40

def init
  refresh
end