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.
160 161 162 163 |
# File 'src/lib/y2remote/widgets/remote.rb', line 160 def initialize super textdomain "network" end |
Instance Method Details
#init ⇒ Object
169 170 171 |
# File 'src/lib/y2remote/widgets/remote.rb', line 169 def init self.value = Y2Remote::Remote.instance.web_enabled? end |
#label ⇒ Object
165 166 167 |
# File 'src/lib/y2remote/widgets/remote.rb', line 165 def label _("Enable access using a &web browser") end |
#opt ⇒ Object
173 174 175 |
# File 'src/lib/y2remote/widgets/remote.rb', line 173 def opt [:notify] end |