Class: Y2Remote::Widgets::AllowWeb
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Y2Remote::Widgets::AllowWeb
- Defined in:
- src/lib/y2remote/widgets/remote.rb
Overview
Checkbox widget for setting vnc web access as enabled when checked.
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize ⇒ AllowWeb
constructor
A new instance of AllowWeb.
- #label ⇒ Object
- #opt ⇒ Object
Constructor Details
#initialize ⇒ AllowWeb
Returns a new instance of AllowWeb.
159 160 161 |
# File 'src/lib/y2remote/widgets/remote.rb', line 159 def initialize textdomain "network" end |
Instance Method Details
#init ⇒ Object
167 168 169 |
# File 'src/lib/y2remote/widgets/remote.rb', line 167 def init self.value = Y2Remote::Remote.instance.web_enabled? end |
#label ⇒ Object
163 164 165 |
# File 'src/lib/y2remote/widgets/remote.rb', line 163 def label _("Enable access using a &web browser") end |
#opt ⇒ Object
171 172 173 |
# File 'src/lib/y2remote/widgets/remote.rb', line 171 def opt [:notify] end |