Class: Y2Network::Widgets::ClientKeyPath

Inherits:
PathWidget
  • Object
show all
Defined in:
src/lib/y2network/widgets/client_key_path.rb

Instance Method Summary collapse

Methods inherited from PathWidget

#ask_method, #button_id, #button_label, #contents, #handle, #text_id, #value, #value=

Constructor Details

#initialize(builder) ⇒ ClientKeyPath


25
26
27
28
# File 'src/lib/y2network/widgets/client_key_path.rb', line 25

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

Instance Method Details

#browse_labelObject


38
39
40
# File 'src/lib/y2network/widgets/client_key_path.rb', line 38

def browse_label
  _("Choose a File with Private Key")
end

#helpObject


34
35
36
# File 'src/lib/y2network/widgets/client_key_path.rb', line 34

def help
  "" # TODO: was missing, write something
end

#initObject


42
43
44
# File 'src/lib/y2network/widgets/client_key_path.rb', line 42

def init
  self.value = @builder.client_key
end

#labelObject


30
31
32
# File 'src/lib/y2network/widgets/client_key_path.rb', line 30

def label
  _("Client &Key")
end

#storeObject


46
47
48
# File 'src/lib/y2network/widgets/client_key_path.rb', line 46

def store
  @builder.client_key = value
end