EN · DE · RU · FR · ES

#463 : GanttObjectType.java

projectforge-business/src/main/java/org/projectforge/business/gantt/GanttObjectType.java Type : Java · Rôle : Diagramme de Gantt · Source : projectforge-business/src/main/java/org/projectforge/business/gantt/GanttObjectType.java 62 lignes · 28 code · 25 commentaires · 9 vides
Fichier de code source dans projectforge-business/src/main/java/org/projectforge/business/gantt/GanttObjectType.java contenant du code Java pour la couche Diagramme de Gantt.

Structure du code

Paquetage : org.projectforge.business.gantt

Énumérations : GanttObjectType

Implémente : I18nEnum

Méthodes (3) : isIn, getKey, getI18nKey

Champs (1) : key

Importations : 1 paquetage

Code source (abrégé)

package org.projectforge.business.gantt;

import org.projectforge.common.i18n.I18nEnum;

public enum GanttObjectType implements I18nEnum
{
  ACTIVITY("activity"), SUMMARY("summary"), MILESTONE("milestone");

  private String key;

  public boolean isIn(final GanttObjectType... types)
  {
    for (final GanttObjectType type : types) {
      if (this == type) {
        return true;
      }
    }
    return false;

  }

  /**
   * La clé sera utilisée p. ex. pour l'i18n.
   */
  public String getKey()
  {
    return key;
  }

  public String getI18nKey()
  {
    return "gantt.objectType." + key;
  }

  GanttObjectType(final String key)
  {
    this.key = key;
  }
}

Historique Git

868d6abb7 2025 -> 2026
63081666f En-têtes des fichiers source : 2024 -> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022