All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hfg.css.CSSBorderStyle Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
package com.hfg.css;


import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class CSSBorderStyle
{
   private static final Map sValueMap = new HashMap(15);

   public static final CSSBorderStyle NONE    = new CSSBorderStyle("none");
   public static final CSSBorderStyle HIDDEN  = new CSSBorderStyle("hidden");
   public static final CSSBorderStyle DOTTED  = new CSSBorderStyle("dotted");
   public static final CSSBorderStyle DASHED  = new CSSBorderStyle("dashed");
   public static final CSSBorderStyle SOLID   = new CSSBorderStyle("solid");
   public static final CSSBorderStyle DOUBLE  = new CSSBorderStyle("double");
   public static final CSSBorderStyle GROOVE  = new CSSBorderStyle("groove");
   public static final CSSBorderStyle RIDGE   = new CSSBorderStyle("ridge");
   public static final CSSBorderStyle INSET   = new CSSBorderStyle("inset");
   public static final CSSBorderStyle OUTSET  = new CSSBorderStyle("outset");
   public static final CSSBorderStyle INHERIT = new CSSBorderStyle("inherit");


   private String mName;

   //---------------------------------------------------------------------------
   private CSSBorderStyle(String inName)
   {
      mName = inName;
      sValueMap.put(mName, this);
   }

   //---------------------------------------------------------------------------
   public static CSSBorderStyle valueOf(String inString)
   {
      return sValueMap.get(inString);
   }

   //---------------------------------------------------------------------------
   public static Collection values()
   {
      return sValueMap.values();
   }

   //---------------------------------------------------------------------------
   public String name()
   {
      return mName;
   }

   //---------------------------------------------------------------------------
   @Override
   public String toString()
   {
      return name();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy