|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xssf.usermodel.extensions.XSSFCellBorder
public class XSSFCellBorder
This element contains border formatting information, specifying border definition formats (left, right, top, bottom, diagonal) for cells in the workbook. Color is optional.
Nested Class Summary | |
---|---|
static class |
XSSFCellBorder.BorderSide
The enumeration value indicating the side being used for a cell border. |
Constructor Summary | |
---|---|
XSSFCellBorder()
Creates a new, empty Cell Border. |
|
XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border)
Creates a Cell Border from the supplied XML definition |
|
XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border,
ThemesTable theme)
Creates a Cell Border from the supplied XML definition |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
XSSFColor |
getBorderColor(XSSFCellBorder.BorderSide side)
Get the color to use for the selected border |
BorderStyle |
getBorderStyle(XSSFCellBorder.BorderSide side)
Get the type of border to use for the selected border |
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder |
getCTBorder()
Returns the underlying XML bean. |
int |
hashCode()
|
void |
setBorderColor(XSSFCellBorder.BorderSide side,
XSSFColor color)
Set the color to use for the selected border |
void |
setBorderStyle(XSSFCellBorder.BorderSide side,
BorderStyle style)
Set the type of border to use for the selected border |
void |
setThemesTable(ThemesTable themes)
Records the Themes Table that is associated with the current font, used when looking up theme based colours and properties. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border, ThemesTable theme)
public XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border)
public XSSFCellBorder()
Method Detail |
---|
public void setThemesTable(ThemesTable themes)
@Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder getCTBorder()
public BorderStyle getBorderStyle(XSSFCellBorder.BorderSide side)
side
- - - where to apply the color definition
BorderStyle
public void setBorderStyle(XSSFCellBorder.BorderSide side, BorderStyle style)
side
- - - where to apply the color definitionstyle
- - border styleBorderStyle
public XSSFColor getBorderColor(XSSFCellBorder.BorderSide side)
side
- - where to apply the color definition
public void setBorderColor(XSSFCellBorder.BorderSide side, XSSFColor color)
side
- - where to apply the color definitioncolor
- - the color to usepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |