Class SubjectModel

java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.gui.form.nmodel.SubjectModel
All Implemented Interfaces:
IModel<Subject>

public class SubjectModel extends Object implements IModel<Subject>
Represents a model object of a subject entity.
  • Property Details

    • subjectID

      public javafx.beans.property.IntegerProperty subjectIDProperty
      Gets subject entity id.
    • subjectName

      public javafx.beans.property.StringProperty subjectNameProperty
      Gets subject entity name.
    • allSubjectLists

      public javafx.beans.property.ListProperty<SubjectList> allSubjectListsProperty
      Gets list of all subject list entities.
    • allTeachers

      public javafx.beans.property.ListProperty<Teacher> allTeachersProperty
      Gets list of all teacher entities.
    • selectedSubjectList

      public javafx.beans.property.ObjectProperty<SubjectList> selectedSubjectListProperty
      Gets selected subject list entity.
    • selectedTeacher

      public javafx.beans.property.ObjectProperty<Teacher> selectedTeacherProperty
      Gets selected teacher entity.
  • Constructor Details

    • SubjectModel

      public SubjectModel()
  • Method Details

    • importEntity

      public void importEntity(Subject entity)
      Description copied from interface: IModel
      Imports entity field to model.
      Specified by:
      importEntity in interface IModel<Subject>
      Parameters:
      entity - reference entity
    • exportEntity

      public Subject exportEntity()
      Description copied from interface: IModel
      Exports entity from model.
      Specified by:
      exportEntity in interface IModel<Subject>
      Returns:
      entity from model
    • fillAdditionalEntities

      public void fillAdditionalEntities() throws FetchException
      Specified by:
      fillAdditionalEntities in interface IModel<Subject>
      Throws:
      FetchException
    • subjectIDProperty

      public javafx.beans.property.IntegerProperty subjectIDProperty()
      Gets subject entity id.
    • subjectNameProperty

      public javafx.beans.property.StringProperty subjectNameProperty()
      Gets subject entity name.
    • allSubjectListsProperty

      public javafx.beans.property.ListProperty<SubjectList> allSubjectListsProperty()
      Gets list of all subject list entities.
    • allTeachersProperty

      public javafx.beans.property.ListProperty<Teacher> allTeachersProperty()
      Gets list of all teacher entities.
    • selectedSubjectListProperty

      public javafx.beans.property.ObjectProperty<SubjectList> selectedSubjectListProperty()
      Gets selected subject list entity.
    • selectedTeacherProperty

      public javafx.beans.property.ObjectProperty<Teacher> selectedTeacherProperty()
      Gets selected teacher entity.