]> git.mxchange.org Git - juser-login-core.git/commitdiff
Added CSS style class for being used in JSF pages like:
authorRoland Haeder <roland@mxchange.org>
Thu, 14 Apr 2016 15:24:25 +0000 (17:24 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 14 Apr 2016 15:24:25 +0000 (17:24 +0200)
styleClass="#{user.userAccountStatus.styleClass}"

src/org/mxchange/jusercore/model/user/status/UserAccountStatus.java

index 328f1244714896843ffdac43192451e80543d1fe..61c968b740ed81520bb71c3dc69bdef0400b0c85 100644 (file)
@@ -28,39 +28,56 @@ public enum UserAccountStatus implements Serializable {
        /**
         * Unconfirmed (default)
         */
-       UNCONFIRMED("USER_ACCOUNT_STATUS_UNCONFIRMED"), //NOI18N
+       UNCONFIRMED("USER_ACCOUNT_STATUS_UNCONFIRMED", "user_status_unconfirmed"), //NOI18N
 
        /**
         * Confirmed (email address validated)
         */
-       CONFIRMED("USER_ACCOUNT_STATUS_CONFIRMED"), //NOI18N
+       CONFIRMED("USER_ACCOUNT_STATUS_CONFIRMED", "user_status_confirmed"), //NOI18N
 
        /**
         * Locked (maybe violated T&C)
         */
-       LOCKED("USER_ACCOUNT_STATUS_LOCKED"); //NOI18N
+       LOCKED("USER_ACCOUNT_STATUS_LOCKED", "user_status_locked"); //NOI18N
 
        /**
         * Message key
         */
        private final String messageKey;
 
+       /**
+        * CSS style class
+        */
+       private final String styleClass;
+
        /**
         * Constructor with i18n translation key
         * <p>
-        * @param messageKey Message key (i18n)
+        * @param messageKey  Message key (i18n)
+        * @param styyleClass CSS style class
         */
-       private UserAccountStatus (final String messageKey) {
+       private UserAccountStatus (final String messageKey, final String styleClass) {
                // Set it here
                this.messageKey = messageKey;
+               this.styleClass = styleClass;
        }
 
        /**
-        * Output value (for messages)
+        * Getter for message key
         * <p>
-        * @return the messageKey
+        * @return Message key (i18n)
         */
        public String getMessageKey () {
                return this.messageKey;
        }
+
+       /**
+        * Getter for CSS style class
+        * <p>
+        * @return CSS style class
+        */
+       public String getStyleClass () {
+               return this.styleClass;
+       }
+
 }