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 32 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 28 def initialize(settings) super() textdomain "network" @settings = settings end |
Instance Method Details
#contents ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 34 def contents VBox( HBox( InputField(Id(:tunnel_owner), _("Tunnel owner")), InputField(Id(:tunnel_group), _("Tunnel group")) ) ) end |
#help ⇒ Object
43 44 45 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 43 def help "" # TODO: cannot find it in old helps end |
#init ⇒ Object
47 48 49 50 51 52 53 |
# File 'src/lib/y2network/widgets/tunnel.rb', line 47 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 |