Class: Y2Network::Widgets::WirelessAccessPoint

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

Overview

Widget to select access point if site consist of multiple ones

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ WirelessAccessPoint


97
98
99
100
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 97

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

Instance Method Details

#initObject


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

def init
  self.value = @settings.access_point
end

#labelObject


106
107
108
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 106

def label
  _("&Access Point")
end

#optObject


102
103
104
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 102

def opt
  [:hstretch]
end

#storeObject


114
115
116
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 114

def store
  @settings.access_point = value
end