Class SubjectModel
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.gui.form.nmodel.SubjectModel
Represents a model object of a subject entity.
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ListProperty<SubjectList>
Gets list of all subject list entities.javafx.beans.property.ListProperty<Teacher>
Gets list of all teacher entities.javafx.beans.property.ObjectProperty<SubjectList>
Gets selected subject list entity.javafx.beans.property.ObjectProperty<Teacher>
Gets selected teacher entity.javafx.beans.property.IntegerProperty
Gets subject entity id.javafx.beans.property.StringProperty
Gets subject entity name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ListProperty<SubjectList>
Gets list of all subject list entities.javafx.beans.property.ListProperty<Teacher>
Gets list of all teacher entities.Exports entity from model.void
void
importEntity
(Subject entity) Imports entity field to model.javafx.beans.property.ObjectProperty<SubjectList>
Gets selected subject list entity.javafx.beans.property.ObjectProperty<Teacher>
Gets selected teacher entity.javafx.beans.property.IntegerProperty
Gets subject entity id.javafx.beans.property.StringProperty
Gets subject entity name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.zcu.fav.kiv.mjakubas.saf.gui.form.nmodel.IModel
makeAdditionalRequests
-
Property Details
-
subjectID
public javafx.beans.property.IntegerProperty subjectIDPropertyGets subject entity id. -
subjectName
public javafx.beans.property.StringProperty subjectNamePropertyGets subject entity name. -
allSubjectLists
Gets list of all subject list entities. -
allTeachers
Gets list of all teacher entities. -
selectedSubjectList
Gets selected subject list entity. -
selectedTeacher
Gets selected teacher entity.
-
-
Constructor Details
-
SubjectModel
public SubjectModel()
-
-
Method Details
-
importEntity
Description copied from interface:IModel
Imports entity field to model.- Specified by:
importEntity
in interfaceIModel<Subject>
- Parameters:
entity
- reference entity
-
exportEntity
Description copied from interface:IModel
Exports entity from model.- Specified by:
exportEntity
in interfaceIModel<Subject>
- Returns:
- entity from model
-
fillAdditionalEntities
- Specified by:
fillAdditionalEntities
in interfaceIModel<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
Gets list of all subject list entities. -
allTeachersProperty
Gets list of all teacher entities. -
selectedSubjectListProperty
Gets selected subject list entity. -
selectedTeacherProperty
Gets selected teacher entity.
-