Class: CreateStudentDialog

Inherits:
FXDialogBox
  • Object
show all
Defined in:
lib/source/database/dialog_create_student.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, controller) ⇒ CreateStudentDialog

Returns a new instance of CreateStudentDialog.



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/source/database/dialog_create_student.rb', line 6

def initialize(parent, controller)
  # Создаем родительское модальное окно
  super(parent, "Добавление студента", DECOR_TITLE | DECOR_BORDER | DECOR_RESIZE)

  @controller = controller
  @student = nil

  # Устанавливаем размер окна и делаем его модальным
  setWidth(500)
  setHeight(400)
  add_fields
  # setModal(true)
end

Instance Method Details

#set_student(student, editable_fields) ⇒ Object



20
21
22
23
# File 'lib/source/database/dialog_create_student.rb', line 20

def set_student(student, editable_fields)
  @student=student
  enter_student(editable_fields)
end