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

public class ClassModel extends Object implements IModel<SchoolClass>
  • Property Details

    • classID

      public javafx.beans.property.IntegerProperty classIDProperty
      Gets class entity id.
    • className

      public javafx.beans.property.StringProperty classNameProperty
      Gets class entity name.
    • allRooms

      public javafx.beans.property.ListProperty<Room> allRoomsProperty
      Gets all room entities.
    • allTeacher

      public javafx.beans.property.ListProperty<Teacher> allTeacherProperty
      Gets all teacher entities.
    • selectedRoom

      public javafx.beans.property.ObjectProperty<Room> selectedRoomProperty
      Gets selected room entity.
    • selectedTeacher

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

      public javafx.beans.property.ListProperty<Subject> allSubjectsProperty
    • selectedSubjects

      public javafx.beans.property.ObjectProperty<Subject> selectedSubjectsProperty
    • allTeacherSubjects

      public javafx.beans.property.ListProperty<Subject> allTeacherSubjectsProperty
  • Constructor Details

    • ClassModel

      public ClassModel()
  • Method Details

    • importEntity

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

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

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

      public javafx.beans.property.IntegerProperty classIDProperty()
      Gets class entity id.
    • classNameProperty

      public javafx.beans.property.StringProperty classNameProperty()
      Gets class entity name.
    • allRoomsProperty

      public javafx.beans.property.ListProperty<Room> allRoomsProperty()
      Gets all room entities.
    • allTeacherProperty

      public javafx.beans.property.ListProperty<Teacher> allTeacherProperty()
      Gets all teacher entities.
    • selectedRoomProperty

      public javafx.beans.property.ObjectProperty<Room> selectedRoomProperty()
      Gets selected room entity.
    • selectedTeacherProperty

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

      public javafx.beans.property.ListProperty<Subject> allSubjectsProperty()
    • selectedSubjectsProperty

      public javafx.beans.property.ObjectProperty<Subject> selectedSubjectsProperty()
    • allTeacherSubjectsProperty

      public javafx.beans.property.ListProperty<Subject> allTeacherSubjectsProperty()