Package io.keikai.doc.io.schema.docx
Class DOCXTcBorders
java.lang.Object
io.keikai.doc.io.schema.docx.DOCXTcBorders
- All Implemented Interfaces:
ICTElement
Internal Use Only.
TcBorders Definition.
Represents tcBorders in xml.
- Author:
- Jamson Chan
-
Constructor Summary
ConstructorsConstructorDescriptionDOCXTcBorders(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcBorders borders) Create a new Borders by given CTTcBorders. -
Method Summary
Modifier and TypeMethodDescriptionReturns all borders in the order of top, right, bottom, left.getBorders(boolean create) Returns all borders in the order of top, right, bottom, left.Returns the bottom border.getBottom(boolean create) Returns the bottom border.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcBordersgetCT()Returns the CT object of current element.getLeft()Returns the left border.getLeft(boolean create) Returns the left border.getRight()Returns the right border.getRight(boolean create) Returns the right border.getTop()Returns the top border.getTop(boolean create) Returns the top border.booleanReturns whether all borders are empty.
-
Constructor Details
-
DOCXTcBorders
public DOCXTcBorders(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcBorders borders) Create a new Borders by given CTTcBorders.- Parameters:
borders- the CTTcBorders object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcBorders getCT()Description copied from interface:ICTElementReturns the CT object of current element.- Specified by:
getCTin interfaceICTElement
-
getBorders
Returns all borders in the order of top, right, bottom, left.- Returns:
- all borders.
-
getBorders
Returns all borders in the order of top, right, bottom, left.- Parameters:
create- whether to create new borders if any of them is not set.- Returns:
- all borders.
-
isBordersEmpty
public boolean isBordersEmpty()Returns whether all borders are empty.- Returns:
- whether all borders are empty.
-
getTop
Returns the top border.Represents the following element tag in the schema:
w:top.- Returns:
- the top border.
-
getTop
Returns the top border.Represents the following element tag in the schema:
w:top.- Parameters:
create- whether to create a new border if it is not set.- Returns:
- the top border.
-
getLeft
Returns the left border.Represents the following element tag in the schema:
w:left.- Returns:
- the left border.
-
getLeft
Returns the left border.Represents the following element tag in the schema:
w:left.- Parameters:
create- whether to create a new border if it is not set.- Returns:
- the left border.
-
getBottom
Returns the bottom border.Represents the following element tag in the schema:
w:bottom.- Returns:
- the bottom border.
-
getBottom
Returns the bottom border.Represents the following element tag in the schema:
w:bottom.- Parameters:
create- whether to create a new border if it is not set.- Returns:
- the bottom border.
-
getRight
Returns the right border.Represents the following element tag in the schema:
w:right.- Returns:
- the right border.
-
getRight
Returns the right border.Represents the following element tag in the schema:
w:right.- Parameters:
create- whether to create a new border if it is not set.- Returns:
- the right border.
-