Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.FunctionCategory


  /**
   * @see no.ugland.utransprod.gui.model.AbstractModel#getBufferedObjectModel(com.jgoodies.binding.PresentationModel)
   */
  @Override
  public FunctionCategoryModel getBufferedObjectModel(PresentationModel presentationModel) {
    FunctionCategoryModel model = new FunctionCategoryModel(new FunctionCategory());
    model.setFunctionCategoryDescription((String)presentationModel.getBufferedValue(PROPERTY_FUNCTION_CATEGORY_DESCRIPTION));
    model.setFunctionCategoryName((String)presentationModel.getBufferedValue(PROPERTY_FUNCTION_CATEGORY_NAME));
    model.setJobFunction((JobFunction)presentationModel.getBufferedValue(PROPERTY_JOB_FUNCTION));
    return model;
  }
View Full Code Here


  /**
   * @param functionCategory
   */
  public void setFunctionCategory(FunctionCategory functionCategory) {
    FunctionCategory oldCategory = getFunctionCategory();
    object.setFunctionCategory(functionCategory);
    firePropertyChange(PROPERTY_FUNCTION_CATEGORY, oldCategory,
        functionCategory);
  }
View Full Code Here

    /**
     * @param functionCategory
     */
    public void setFunctionCategory(FunctionCategory functionCategory) {
        FunctionCategory oldCategory = getFunctionCategory();
        object.setFunctionCategory(functionCategory);
        firePropertyChange(PROPERTY_FUNCTION_CATEGORY, oldCategory,
                functionCategory);
    }
View Full Code Here

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

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(int rowIndex, int columnIndex) {
      FunctionCategory functionCategory = (FunctionCategory) getRow(rowIndex);
      switch (columnIndex) {
      case 0:
        return functionCategory.getFunctionCategoryName();
      case 1:
        return functionCategory.getFunctionCategoryDescription();
      case 2:
        return functionCategory.getJobFunction();
      default:
        throw new IllegalStateException("Unknown column");
      }

    }
View Full Code Here

    public final FunctionCategory getFunctionCategory() {
        return functionCategory;
    }

    public final void setFunctionCategory(final FunctionCategory aFunctionCategory) {
        FunctionCategory oldCat = getFunctionCategory();
        this.functionCategory = aFunctionCategory;
        firePropertyChange(PROPERTY_FUNCTION_CATEGORY, oldCat, aFunctionCategory);
    }
View Full Code Here

   */
  void setPreventiveActionList(PresentationModel presentationModel,
      PreventiveAction selectedAction) {
    JobFunction deviationFunction = (JobFunction) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);
    FunctionCategory functionCategory = (FunctionCategory) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_FUNCTION_CATEGORY);

    if (deviationFunction != null && functionCategory != null) {
      PreventiveActionManager preventiveActionManager = (PreventiveActionManager) ModelUtil
          .getBean("preventiveActionManager");
View Full Code Here

TOP

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

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.