Class: Y2Network::Widgets::WirelessEap
- Inherits:
-
CWM::CustomWidget
- Object
- CWM::CustomWidget
- Y2Network::Widgets::WirelessEap
- 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
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
- #contents ⇒ Object
- #handle(event) ⇒ Object
- #init ⇒ Object
-
#initialize(settings) ⇒ WirelessEap
constructor
A new instance of WirelessEap.
Constructor Details
#initialize(settings) ⇒ WirelessEap
Returns a new instance of WirelessEap.
35 36 37 38 39 |
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 35 def initialize(settings) super() @settings = settings self.handle_all_events = true end |
Instance Attribute Details
#settings ⇒ Object (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
#contents ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 53 def contents VBox( HStretch(), eap_mode, VSpacing(0.2), ) end |
#handle(event) ⇒ Object
46 47 48 49 50 51 |
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 46 def handle(event) return if event["ID"] != eap_mode. refresh nil end |
#init ⇒ Object
41 42 43 44 |
# File 'src/lib/y2network/widgets/wireless_eap.rb', line 41 def init eap_mode.init refresh end |