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

public class RoomModel extends Object implements IModel<Room>
Represents a model object of a room entity.
  • Property Details

    • roomID

      public javafx.beans.property.IntegerProperty roomIDProperty
      Gets room entity id.
    • roomName

      public javafx.beans.property.StringProperty roomNameProperty
      Gets room entity name.
    • capacity

      public javafx.beans.property.IntegerProperty capacityProperty
      Gets room entity capacity.
    • allBuildings

      public javafx.beans.property.ListProperty<Building> allBuildingsProperty
      Gets all building entities.
    • selectedBuilding

      public javafx.beans.property.ObjectProperty<Building> selectedBuildingProperty
      Gets selected building entity.
  • Constructor Details

    • RoomModel

      public RoomModel()
  • Method Details

    • importEntity

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

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

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

      public javafx.beans.property.IntegerProperty roomIDProperty()
      Gets room entity id.
    • roomNameProperty

      public javafx.beans.property.StringProperty roomNameProperty()
      Gets room entity name.
    • capacityProperty

      public javafx.beans.property.IntegerProperty capacityProperty()
      Gets room entity capacity.
    • allBuildingsProperty

      public javafx.beans.property.ListProperty<Building> allBuildingsProperty()
      Gets all building entities.
    • selectedBuildingProperty

      public javafx.beans.property.ObjectProperty<Building> selectedBuildingProperty()
      Gets selected building entity.