public class XMLTableColumn extends XMLTableCell
TYPE_NONE
Constructor and Description |
---|
XMLTableColumn() |
Modifier and Type | Method and Description |
---|---|
int |
getColumnWidth()
Return the column width (-1 is the width is not fixed)
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.lang.String |
getEffectiveWidth()
Return the column effective width, if the width is specified for a column element.
|
boolean |
hasEffectiveWidth()
Return true if the column has an effective width.
|
boolean |
hasWidth()
Return true if the column has a specified width.
|
boolean |
isRelativeWidth()
Return true if the column width is relative (in %).
|
void |
setEffectiveWidth(java.lang.String width)
Set the column effective width, if the width is specified for a column element.
|
void |
setWidth(int width,
boolean relWidth)
Set the column width.
|
addElement, getAlignment, getColor, getColSpan, getElements, getRowIndex, getRowSpan, hasAlignment, setAlignment, setColor, setColSpan, setElements, setRowSpan
getCustomStyles, getInlinedStyle, setCustomStyles, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countElements, getElement, getFirstElement, getLastElement, hasElements, isEmpty
getStyle, hasInlinedStyle, setCustomStyles
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
getDeclaration
in class XMLTableCell
public boolean hasWidth()
public void setWidth(int width, boolean relWidth)
width
- the widthrelWidth
- true if the width is relative (in %)public int getColumnWidth()
public void setEffectiveWidth(java.lang.String width)
width
- the column effective widthpublic boolean hasEffectiveWidth()
public java.lang.String getEffectiveWidth()
public boolean isRelativeWidth()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence