PresetController

web/Presetcontroller~ PresetController

This class handles the Preset buttons

Constructor

new PresetController(model, view, sc, pc)

Description:
  • Constructor

Source:
Parameters:
Name Type Description
model XKPasswd

reference to PresetModel

view PresetView

reference to PresetView

sc SettingsController

reference to SettingsController

pc PasswordController

reference to PasswordController

Members

updatePresetView

Description:
  • Activate a preset button

Source:

Activate a preset button

Methods

onPresetChanged(preset)

Description:
  • Handle the selection of the preset

Source:
Parameters:
Name Type Description
preset string

reference to the selected preset