Class: Y2Network::Widgets::S390Layer2Support
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Y2Network::Widgets::S390Layer2Support
- Defined in:
- src/lib/y2network/widgets/s390_common.rb
Overview
Widget for enabling layer2 support in the configured device
Instance Method Summary collapse
- #help ⇒ Object
- #init ⇒ Object
-
#initialize(settings) ⇒ S390Layer2Support
constructor
Constructor.
- #label ⇒ Object
- #opt ⇒ Object
Constructor Details
#initialize(settings) ⇒ S390Layer2Support
Constructor
342 343 344 345 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 342 def initialize(settings) textdomain "network" @settings = settings end |
Instance Method Details
#help ⇒ Object
364 365 366 367 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 364 def help "<p>Select <b>Enable Layer 2 Support</b> if this card has been " \ "configured with layer 2 support.</p>" end |
#init ⇒ Object
348 349 350 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 348 def init self.value = !!@settings.layer2 end |
#label ⇒ Object
359 360 361 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 359 def label _("Enable Layer2 Support") end |
#opt ⇒ Object
353 354 355 356 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 353 def opt # Needed for handling the event in other widgets that contents it. [:notify] end |