Class: Y2Network::Widgets::S390Attributes

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

Overview

This widget permits to pass defined any extra attribute to set during Qeth device activation

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390Attributes

Constructor


147
148
149
150
# File 'src/lib/y2network/widgets/s390_common.rb', line 147

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

Instance Method Details

#helpObject

See Also:

  • CWM::AbstractWidget

168
169
170
171
# File 'src/lib/y2network/widgets/s390_common.rb', line 168

def help
  # TRANSLATORS: S/390 dialog help for QETH Options
  _("<p>Enter any additional <b>Options</b> for this interface (separated by spaces).</p>")
end

#initObject

See Also:

  • CWM::AbstractWidget

158
159
160
# File 'src/lib/y2network/widgets/s390_common.rb', line 158

def init
  self.value = @settings.attributes
end

#labelObject

See Also:

  • CWM::AbstractWidget

153
154
155
# File 'src/lib/y2network/widgets/s390_common.rb', line 153

def label
  _("Options")
end

#optObject

See Also:

  • CWM::AbstractWidget

163
164
165
# File 'src/lib/y2network/widgets/s390_common.rb', line 163

def opt
  [:hstretch]
end

#storeObject

See Also:

  • CWM::AbstractWidget

174
175
176
# File 'src/lib/y2network/widgets/s390_common.rb', line 174

def store
  @settings.attributes = value
end