Class: Y2Network::Widgets::S390WriteChannel

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

Overview

Widget for setting the s390 device write channel

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390WriteChannel

Constructor


89
90
91
92
# File 'src/lib/y2network/widgets/s390_channels.rb', line 89

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

Instance Method Details

#initObject

See Also:

  • CWM::AbstractWidget

95
96
97
# File 'src/lib/y2network/widgets/s390_channels.rb', line 95

def init
  self.value = @settings.write_channel
end

#labelObject

See Also:

  • CWM::AbstractWidget

105
106
107
# File 'src/lib/y2network/widgets/s390_channels.rb', line 105

def label
  _("&Write Channel")
end

#optObject

See Also:

  • CWM::AbstractWidget

100
101
102
# File 'src/lib/y2network/widgets/s390_channels.rb', line 100

def opt
  [:hstretch]
end

#storeObject

See Also:

  • CWM::AbstractWidget

110
111
112
# File 'src/lib/y2network/widgets/s390_channels.rb', line 110

def store
  @settings.write_channel = value
end