@OpenApiAll public class CellStyle extends SimpleStyle
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALIGN
Constants for align attribute.
|
static java.lang.String |
CELL_BORDER
Constants for cellborder attribute.
|
static java.lang.String |
CELL_PADDING
Constants for cellpadding attribute.
|
static java.lang.String |
COLOR
Constants for color attribute.
|
static java.lang.String |
COLSPAN
Constants for colspan attribute.
|
static java.lang.String |
MARGIN_LEFT
Constants for marginLeft attribute.
|
static java.lang.String |
MARGIN_RIGHT
Constants for marginRight attribute.
|
static java.lang.String |
ROWSPAN
Constants for rowspan attribute.
|
static java.lang.String |
VALIGN
Constants for valign attribute.
|
static java.lang.String |
WIDTH
Constants for width attribute.
|
changeEvent, listenerList
Constructor and Description |
---|
CellStyle()
Creates a new style, with a null name and parent.
|
CellStyle(java.lang.String name)
Creates a new style.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this object to the specified object.
|
int |
hashCode()
Returns a hashcode for this set of attributes.
|
boolean |
isHeader()
Return a header.
|
void |
setHeader(boolean header)
Set a header.
|
addAttribute, addAttributes, addChangeListener, fireStateChanged, getChangeListeners, getListeners, getName, removeAttribute, removeAttributes, removeAttributes, removeChangeListener, setName
clone, containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEmpty, isEqual, setResolveParent, toString
public static final java.lang.String ALIGN
public static final java.lang.String VALIGN
public static final java.lang.String COLOR
public static final java.lang.String ROWSPAN
public static final java.lang.String COLSPAN
public static final java.lang.String WIDTH
public static final java.lang.String MARGIN_LEFT
public static final java.lang.String MARGIN_RIGHT
public static final java.lang.String CELL_BORDER
public static final java.lang.String CELL_PADDING
public CellStyle()
public CellStyle(java.lang.String name)
name
- the style name, null for unnamedpublic boolean isHeader()
public void setHeader(boolean header)
header
- the header to setpublic int hashCode()
hashCode
in class SimpleStyle
public boolean equals(java.lang.Object obj)
true
if the object is an equivalent
set of attributes.equals
in class SimpleStyle
obj
- the object to compare this attribute set withtrue
if the objects are equal; false
otherwiseCopyright © 2010 - No Magic Asia