Class: Bootloader::SystemdBootWidget::TimeoutWidget
- Inherits:
-
CWM::CustomWidget
- Object
- CWM::CustomWidget
- Bootloader::SystemdBootWidget::TimeoutWidget
- Includes:
- SystemdBootHelper
- Defined in:
- src/lib/bootloader/systemdboot_widgets.rb
Overview
Represents bootloader timeout value
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#maximum ⇒ Object
readonly
Returns the value of attribute maximum.
-
#minimum ⇒ Object
readonly
Returns the value of attribute minimum.
Instance Method Summary collapse
- #contents ⇒ Object
- #help ⇒ Object
- #init ⇒ Object
-
#initialize ⇒ TimeoutWidget
constructor
A new instance of TimeoutWidget.
- #store ⇒ Object
Methods included from SystemdBootHelper
Constructor Details
#initialize ⇒ TimeoutWidget
Returns a new instance of TimeoutWidget.
23 24 25 26 27 28 29 30 31 |
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 23 def initialize textdomain "bootloader" super() @minimum = 0 @maximum = 600 @default = 10 end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
33 34 35 |
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 33 def default @default end |
#maximum ⇒ Object (readonly)
Returns the value of attribute maximum.
33 34 35 |
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 33 def maximum @maximum end |
#minimum ⇒ Object (readonly)
Returns the value of attribute minimum.
33 34 35 |
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 33 def minimum @minimum end |
Instance Method Details
#contents ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 35 def contents CheckBoxFrame( Id(:cont_boot), _("Automatically boot the default entry after a timeout"), false, HBox( IntField(Id(:seconds), _("&Timeout in Seconds"), @minimum, @maximum, systemdboot..to_i), HStretch() ) ) end |
#help ⇒ Object
48 49 50 51 52 |
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 48 def help _("<p>Continue boot process after defined seconds.</p>" \ "<p><b>Timeout in Seconds</b>\n" \ "specifies the time the boot loader will wait until the default kernel is loaded.</p>\n") end |