Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.ClassRoom


        Prevayler prevaylerToRead = PrevaylerFactory.createPrevayler(new PrevalentSystem(), dataDirectory);
       
        Person person3 = (Person) prevaylerToRead.execute(new GetStudent("milhouse"));
        assertEquals("milhouse", person3.getName());
       
        ClassRoom classRoom = (ClassRoom) prevaylerToRead.execute(new GetClassRoom("sala1"));
        assertEquals("sala1", classRoom.getClassRoomName());
       
        Person person4 = (Person) prevaylerToRead.execute(new GetEmployee("Havaiana"));
        assertEquals("Havaiana", person4.getName());
       
       
View Full Code Here


        createClassRoomNameLabel();
        createClassRoomNameText();
        createTabFolder();
      if(classRoomId != null) {
        try {
          ClassRoom classRoom = (ClassRoom) system.query(new GetClassRoom(classRoomId));
          loadScreen(classRoom.getId());
        } catch (Exception e) {
          logger.error("createFields ClassRoomControlCenter Exception: ", e);
        }
      }
    }
View Full Code Here

        });
    }

    public void loadScreen(String classRoomId) {
        try {
            ClassRoom classRoom = (ClassRoom) system.query(new GetClassRoom(classRoomId));
          setClassRoomId(classRoom.getId());
          setClassRoomName(classRoom.getClassRoomName());
          computerItem.setTableContents(classRoom.getComputers());
          scheduleItem.setTableContents(classRoom.getSchedules());
        } catch (Exception e) {
           logger.error("GetClassRoomByName Exception: ",e);
        }
    }
View Full Code Here

      listHours = new ArrayList<String>();
     
      List<String> changedDays = new ArrayList<String>();
     
      try {
      ClassRoom classRoom = (ClassRoom) system.query(new GetClassRoom(classRoomId));
      int numberOfComputerOld = classRoom.getComputers().size();
      int numberOfComputersNew = computerItem.getTableContents().size();
      int numberOfComputers = numberOfComputerOld - numberOfComputersNew;
     
          if(scheduleItem.getChangedDays().size() > 0) {
          changedDays.addAll(scheduleItem.getChangedDays());
          if(numberOfComputers == 0){
            numberOfComputers = classRoom.getComputers().size();
          }
        } else if(numberOfComputers > 0){
        GD gd = GD.getInstance();
        int startWorkTime = gd.getWorktime("start");
        int endWorkTime = gd.getWorktime("end");
View Full Code Here

        propertyChangeSupport.addPropertyChangeListener(propertyChangeListener);
    }
   
    public void updateTables() {
    try {
      ClassRoom classRoom = (ClassRoom) system.query(new GetClassRoom(classRoomId));
      scheduleItem.setTableContents(classRoom.getSchedules());
      scheduleItem.getChangedDays().clear();
      computerItem.setTableContents(classRoom.getComputers());
    } catch (Exception e) {
      e.printStackTrace();
    }
    }
View Full Code Here

    this.computers = computers;
    this.schedules = schedules;
  }

  protected void execute(PrevalentSystem system) throws BusinessException {
    system.getClassRooms().put(id, new ClassRoom(id, classRoomName, computers, schedules));   
  }
View Full Code Here

TOP

Related Classes of br.com.visualmidia.business.ClassRoom

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.