Class: Y2Network::Widgets::S390DataChannel

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

Overview

Widget for setting the s390 device data channel

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390DataChannel

Constructor


120
121
122
123
# File 'src/lib/y2network/widgets/s390_channels.rb', line 120

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

Instance Method Details

#initObject

See Also:

  • CWM::AbstractWidget

126
127
128
# File 'src/lib/y2network/widgets/s390_channels.rb', line 126

def init
  self.value = @settings.data_channel
end

#labelObject

See Also:

  • CWM::AbstractWidget

136
137
138
# File 'src/lib/y2network/widgets/s390_channels.rb', line 136

def label
  _("Control Channel")
end

#optObject

See Also:

  • CWM::AbstractWidget

131
132
133
# File 'src/lib/y2network/widgets/s390_channels.rb', line 131

def opt
  [:hstretch]
end

#storeObject

See Also:

  • CWM::AbstractWidget

141
142
143
# File 'src/lib/y2network/widgets/s390_channels.rb', line 141

def store
  @settings.data_channel = value
end