Class CellStyle

All Implemented Interfaces:
Serializable, Cloneable, AttributeSet, MutableAttributeSet, Style

@OpenApiAll public class CellStyle extends SimpleStyle
A collection of attributes, represent cell styles.
Since:
Jun 1, 2009
See Also:
  • Field Details

  • Constructor Details

    • CellStyle

      public CellStyle()
      Creates a new style, with a null name and parent.
    • CellStyle

      public CellStyle(String name)
      Creates a new style.
      Parameters:
      name - the style name, null for unnamed
  • Method Details

    • isHeader

      public boolean isHeader()
      Return a header.
      Returns:
      the header
    • setHeader

      public void setHeader(boolean header)
      Set a header.
      Parameters:
      header - the header to set
    • hashCode

      public int hashCode()
      Returns a hashcode for this set of attributes.
      Overrides:
      hashCode in class SimpleStyle
      Returns:
      a hashcode value for this set of attributes.
    • equals

      public boolean equals(Object obj)
      Compares this object to the specified object. The result is true if the object is an equivalent set of attributes.
      Overrides:
      equals in class SimpleStyle
      Parameters:
      obj - the object to compare this attribute set with
      Returns:
      true if the objects are equal; false otherwise