Class CellStyle
java.lang.Object
javax.swing.text.SimpleAttributeSet
com.nomagic.magicreport.format.html.SimpleStyle
com.nomagic.magicreport.format.html.CellStyle
- All Implemented Interfaces:
Serializable,Cloneable,AttributeSet,MutableAttributeSet,Style
A collection of attributes, represent cell styles.
- Since:
- Jun 1, 2009
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstants for align attribute.static final StringConstants for cellborder attribute.static final StringConstants for cellpadding attribute.static final StringConstants for color attribute.static final StringConstants for colspan attribute.static final StringConstants for marginLeft attribute.static final StringConstants for marginRight attribute.static final StringConstants for rowspan attribute.static final StringConstants for valign attribute.static final StringConstants for width attribute.Fields inherited from class com.nomagic.magicreport.format.html.SimpleStyle
changeEvent, listenerListFields inherited from class javax.swing.text.SimpleAttributeSet
EMPTYFields inherited from interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.nomagic.magicreport.format.html.SimpleStyle
addAttribute, addAttributes, addChangeListener, fireStateChanged, getChangeListeners, getListeners, getName, removeAttribute, removeAttributes, removeAttributes, removeChangeListener, setNameMethods inherited from class javax.swing.text.SimpleAttributeSet
clone, containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEmpty, isEqual, setResolveParent, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.swing.text.AttributeSet
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqualMethods inherited from interface javax.swing.text.MutableAttributeSet
setResolveParent
-
Field Details
-
ALIGN
Constants for align attribute.- See Also:
-
VALIGN
Constants for valign attribute.- See Also:
-
COLOR
Constants for color attribute.- See Also:
-
ROWSPAN
Constants for rowspan attribute.- See Also:
-
COLSPAN
Constants for colspan attribute.- See Also:
-
WIDTH
Constants for width attribute.- See Also:
-
MARGIN_LEFT
Constants for marginLeft attribute.- See Also:
-
MARGIN_RIGHT
Constants for marginRight attribute.- See Also:
-
CELL_BORDER
Constants for cellborder attribute.- See Also:
-
CELL_PADDING
Constants for cellpadding attribute.- See Also:
-
-
Constructor Details
-
CellStyle
public CellStyle()Creates a new style, with a null name and parent. -
CellStyle
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:
hashCodein classSimpleStyle- Returns:
- a hashcode value for this set of attributes.
-
equals
Compares this object to the specified object. The result istrueif the object is an equivalent set of attributes.- Overrides:
equalsin classSimpleStyle- Parameters:
obj- the object to compare this attribute set with- Returns:
trueif the objects are equal;falseotherwise
-