From: Roland Häder Date: Mon, 25 Apr 2016 13:29:18 +0000 (+0200) Subject: added CSS style classes, similar as in juser-core X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1f0e30b40653674646409e7d62fce54b31ea8b7b;p=jcustomer-core.git added CSS style classes, similar as in juser-core --- diff --git a/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java b/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java index 2b34839..276f0a8 100644 --- a/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java +++ b/src/org/mxchange/jcustomercore/model/customer/status/CustomerAccountStatus.java @@ -28,31 +28,38 @@ public enum CustomerAccountStatus implements Serializable { /** * Unconfirmed (default) */ - UNCONFIRMED("CUSTOMER_ACCOUNT_STATUS_UNCONFIRMED"), //NOI18N + UNCONFIRMED("CUSTOMER_ACCOUNT_STATUS_UNCONFIRMED", "customer_status_unconfirmed"), //NOI18N /** * Confirmed (email address validated) */ - CONFIRMED("CUSTOMER_ACCOUNT_STATUS_CONFIRMED"), //NOI18N + CONFIRMED("CUSTOMER_ACCOUNT_STATUS_CONFIRMED", "customer_status_confirmed"), //NOI18N /** * Locked (maybe violated T&C) */ - LOCKED("CUSTOMER_ACCOUNT_STATUS_LOCKED"); //NOI18N + LOCKED("CUSTOMER_ACCOUNT_STATUS_LOCKED", "customer_status_locked"); //NOI18N /** * Message key */ private final String messageKey; + /** + * CSS style class + */ + private final String styleClass; + /** * Constructor with i18n translation key *

* @param messageKey Message key (i18n) + * @param styleClass CSS style class */ - private CustomerAccountStatus (final String messageKey) { + private CustomerAccountStatus (final String messageKey, final String styleClass) { // Set it here this.messageKey = messageKey; + this.styleClass = styleClass; } /** @@ -63,4 +70,14 @@ public enum CustomerAccountStatus implements Serializable { public String getMessageKey () { return this.messageKey; } + + /** + * Getter for CSS style class + *

+ * @return CSS style class + */ + public String getStyleClass () { + return this.styleClass; + } + }