Class: Y2Network::Widgets::S390ReadChannel

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

Overview

Widget for setting the s390 device read channel

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390ReadChannel

Constructor


58
59
60
61
# File 'src/lib/y2network/widgets/s390_channels.rb', line 58

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

Instance Method Details

#initObject

See Also:

  • CWM::AbstractWidget

64
65
66
# File 'src/lib/y2network/widgets/s390_channels.rb', line 64

def init
  self.value = @settings.read_channel
end

#labelObject

See Also:

  • CWM::AbstractWidget

74
75
76
# File 'src/lib/y2network/widgets/s390_channels.rb', line 74

def label
  _("&Read Channel")
end

#optObject

See Also:

  • CWM::AbstractWidget

69
70
71
# File 'src/lib/y2network/widgets/s390_channels.rb', line 69

def opt
  [:hstretch]
end

#storeObject

See Also:

  • CWM::AbstractWidget

79
80
81
# File 'src/lib/y2network/widgets/s390_channels.rb', line 79

def store
  @settings.read_channel = value
end