Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Employee


  /**
   * @param employee
   */
  public void setEmployee(Employee employee) {
    Employee oldEmployee = getEmployee();
    object.setEmployee(employee);
    firePropertyChange(PROPERTY_EMPLOYEE, oldEmployee, employee);
  }
View Full Code Here


   * @see no.ugland.utransprod.gui.model.AbstractModel#getBufferedObjectModel(com.jgoodies.binding.PresentationModel)
   */
  @Override
  public EmployeeModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    EmployeeModel employeeModel = new EmployeeModel(new Employee());
    employeeModel.setEmployeeId((Integer) presentationModel
        .getBufferedValue(PROPERTY_EMPLOYEE_ID));
    employeeModel.setFirstName((String) presentationModel
        .getBufferedValue(PROPERTY_FIRST_NAME));
    employeeModel.setLastName((String) presentationModel
View Full Code Here

  /**
   * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
   */
  @Override
  public Employee getNewObject() {
    return new Employee(null, null, null, null, null, supplier);
  }
View Full Code Here

   * @param window
   *
   * @return ansatt
   */
  public Employee insertNewEmployee(WindowInterface window) {
    Employee employee = new Employee();
    openEditView(employee, false, window);
    return employee;
  }
View Full Code Here

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(int rowIndex, int columnIndex) {
      Employee employee = (Employee) getRow(rowIndex);
      switch (columnIndex) {
      case 0:
        return employee.getFirstName();
      case 1:
        return employee.getLastName();
      case 2:
        return employee.getPhone();
      case 3:
        return employee.getEmployeeType();
      case 4:
        return employee.getInactive()==null||employee.getInactive()==0?Boolean.FALSE:Boolean.TRUE;
      case 5:
        return employee.getInactive()==null||employee.getInactive()==0?"Ja":"Nei";
      default:
        throw new IllegalStateException("Unknown column");
      }

    }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.Employee

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.