Class: Y2Network::Widgets::Tunnel
- Inherits:
-
CWM::CustomWidget
- Object
- CWM::CustomWidget
- Y2Network::Widgets::Tunnel
- Defined in:
- src/lib/y2network/widgets/tunnel.rb
Instance Method Summary collapse
- #contents ⇒ Object
- #help ⇒ Object
- #init ⇒ Object
-
#initialize(settings) ⇒ Tunnel
constructor
A new instance of Tunnel.
- #store ⇒ Object
Constructor Details
#initialize(settings) ⇒ Tunnel
Returns a new instance of Tunnel.
28 29 30 31 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 28 def initialize(settings) textdomain "network" @settings = settings end |
Instance Method Details
#contents ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 33 def contents VBox( HBox( InputField(Id(:tunnel_owner), _("Tunnel owner")), InputField(Id(:tunnel_group), _("Tunnel group")) ) ) end |
#help ⇒ Object
42 43 44 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 42 def help "" # TODO: cannot find it in old helps end |
#init ⇒ Object
46 47 48 49 50 51 52 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 46 def init log.info "init tunnel with #{@settings.inspect}" owner, group = @settings.tunnel_user_group Yast::UI.ChangeWidget(:tunnel_owner, :Value, owner || "") Yast::UI.ChangeWidget(:tunnel_group, :Value, group || "") end |