Enum BorderStyle

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DASHED
      Displays a series of short square-ended dashes or line segments.
      The exact size and length of the segments are not defined by the specification and are implementation-specific.
      DOTTED
      Displays a series of rounded dots.
      The spacing of the dots is not defined by the specification and is implementation-specific.
      DOUBLE
      Displays two straight lines that add up to the pixel size defined by border width.
      GROOVE
      Displays a border with a carved appearance.
      HIDDEN
      Like the none keyword, displays no border.
      INSET
      Displays a border that makes the element appear embedded.
      NONE
      Like the hidden keyword, displays no border.
      OUTSET
      Displays a border that makes the element appear embossed.
      RIDGE
      Displays a border with an extruded appearance.
      SOLID
      Displays a single, straight, solid line.
    • Enum Constant Detail

      • NONE

        public static final BorderStyle NONE
        Like the hidden keyword, displays no border.
      • DOTTED

        public static final BorderStyle DOTTED
        Displays a series of rounded dots.
        The spacing of the dots is not defined by the specification and is implementation-specific.
      • DASHED

        public static final BorderStyle DASHED
        Displays a series of short square-ended dashes or line segments.
        The exact size and length of the segments are not defined by the specification and are implementation-specific.
      • HIDDEN

        public static final BorderStyle HIDDEN
        Like the none keyword, displays no border.
      • SOLID

        public static final BorderStyle SOLID
        Displays a single, straight, solid line.
      • DOUBLE

        public static final BorderStyle DOUBLE
        Displays two straight lines that add up to the pixel size defined by border width.
      • GROOVE

        public static final BorderStyle GROOVE
        Displays a border with a carved appearance. It is the opposite of RIDGE.
      • RIDGE

        public static final BorderStyle RIDGE
        Displays a border with an extruded appearance. It is the opposite of GROOVE.
      • INSET

        public static final BorderStyle INSET
        Displays a border that makes the element appear embedded. It is the opposite of OUTSET.
      • OUTSET

        public static final BorderStyle OUTSET
        Displays a border that makes the element appear embossed. It is the opposite of INSET.
    • Method Detail

      • values

        public static BorderStyle[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BorderStyle c : BorderStyle.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BorderStyle valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property