Class: Y2Network::Widgets::S390Layer2Support

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

Overview

Widget for enabling layer2 support in the configured device

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390Layer2Support

Constructor


302
303
304
305
# File 'src/lib/y2network/widgets/s390_common.rb', line 302

def initialize(settings)
  textdomain "network"
  @settings = settings
end

Instance Method Details

#helpObject

See Also:

  • CWM::AbstractWidget

324
325
326
327
# File 'src/lib/y2network/widgets/s390_common.rb', line 324

def help
  "<p>Select <b>Enable Layer 2 Support</b> if this card has been " \
   "configured with layer 2 support.</p>"
end

#initObject

See Also:

  • CWM::AbstractWidget

308
309
310
# File 'src/lib/y2network/widgets/s390_common.rb', line 308

def init
  self.value = !!@settings.layer2
end

#labelObject

See Also:

  • CWM::AbstractWidget

319
320
321
# File 'src/lib/y2network/widgets/s390_common.rb', line 319

def label
  _("Enable Layer2 Support")
end

#optObject

See Also:

  • CWM::AbstractWidget

313
314
315
316
# File 'src/lib/y2network/widgets/s390_common.rb', line 313

def opt
  # Needed for handling the event in other widgets that contents it.
  [:notify]
end

#storeObject

See Also:

  • CWM::AbstractWidget

330
331
332
# File 'src/lib/y2network/widgets/s390_common.rb', line 330

def store
  @settings.layer2 = value
end