Class: VaultGUI::PasswordList
- Inherits:
-
ListCtrl
- Object
- ListCtrl
- VaultGUI::PasswordList
- Defined in:
- lib/gui.rb
Instance Method Summary collapse
-
#initialize(parent) ⇒ PasswordList
constructor
A new instance of PasswordList.
- #on_get_item_text(item, column) ⇒ Object
Constructor Details
#initialize(parent) ⇒ PasswordList
Returns a new instance of PasswordList.
165 166 167 168 169 170 171 172 |
# File 'lib/gui.rb', line 165 def initialize(parent) super(parent, :style=>LC_REPORT | LC_VIRTUAL | LC_SINGLE_SEL, :size=>[240, 240]) insert_column(0, "Name") set_column_width(0, 240) set_item_count(VaultGUI.vault.credentials_names.count) end |
Instance Method Details
#on_get_item_text(item, column) ⇒ Object
174 175 176 |
# File 'lib/gui.rb', line 174 def on_get_item_text(item, column) return VaultGUI.vault.credentials_names.to_a[item] end |