Examples of FunctionCategory


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

Examples of no.ugland.utransprod.model.FunctionCategory

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

Examples of no.ugland.utransprod.model.FunctionCategory

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

Examples of no.ugland.utransprod.model.FunctionCategory

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

Examples of no.ugland.utransprod.model.FunctionCategory

     * @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

Examples of no.ugland.utransprod.model.FunctionCategory

    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

Examples of no.ugland.utransprod.model.FunctionCategory

   */
  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

Examples of org.pentaho.reporting.libraries.formula.function.FunctionCategory

                                                final boolean cellHasFocus)
  {
    super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    if (value instanceof FunctionCategory)
    {
      final FunctionCategory cat = (FunctionCategory) value;
      setText(cat.getDisplayName(Locale.getDefault()));
      setToolTipText(cat.getDescription(Locale.getDefault()));
    }
    else
    {
      setText(Messages.getInstance().getString("FunctionCategoryCellRenderer.All"));
      setToolTipText(null);
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.function.FunctionCategory

    final DemoFormulaContext context = new DemoFormulaContext();
    final FunctionRegistry functionRegistry = context.getFunctionRegistry();
    final FunctionCategory[] categories = functionRegistry.getCategories();
    for (int c = 0; c < categories.length; c++)
    {
      final FunctionCategory category = categories[c];
      System.out.println();
      System.out.println("Category " + category.getDisplayName(Locale.US));
      final String[] strings = functionRegistry.getFunctionNamesByCategory(category);
      Arrays.sort(strings);
      for (int i = 0; i < strings.length; i++)
      {
        if (i != 0)
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.function.FunctionCategory

    final DemoFormulaContext context = new DemoFormulaContext();
    final FunctionRegistry functionRegistry = context.getFunctionRegistry();
    final FunctionCategory[] categories = functionRegistry.getCategories();
    for (int c = 0; c < categories.length; c++)
    {
      final FunctionCategory category = categories[c];
      System.out.println();
      System.out.println("Category " + category.getDisplayName(Locale.US));
      final String[] strings = functionRegistry.getFunctionNamesByCategory(category);
      Arrays.sort(strings);
      for (int i = 0; i < strings.length; i++)
      {
        if (i != 0)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.