Class DOCXBorder
- All Implemented Interfaces:
ICTElement
BorderType Definition.
Represents border element in the schema.
- Author:
- Jamson Chan
-
Constructor Summary
ConstructorsConstructorDescriptionDOCXBorder(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border) Create a new BorderType by given CTBorder. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the border color.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBordergetCT()Returns the CT object of current element.getFrame()Returns whether to create frame effect.Returns the border shadow.getSpace()Returns the border spacing measurement.getSz()Returns the border width.org.openxmlformats.schemas.wordprocessingml.x2006.main.STThemeColor.EnumReturns the border theme color.byte[]Returns the border theme shade.byte[]Returns the border theme tint.org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder.EnumgetVal()Returns the border style.voidSets the border color.voidSets whether to create frame effect.voidSets the border shadow.voidSets the border spacing measurement.voidSets the border width.voidsetThemeColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.STThemeColor.Enum themeColor) Sets the border theme color.voidsetThemeShade(byte[] themeShade) Sets the border theme shade.voidsetThemeTint(byte[] themeTint) Sets the border theme tint.voidsetVal(org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder.Enum val) Sets the border style.
-
Constructor Details
-
DOCXBorder
public DOCXBorder(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border) Create a new BorderType by given CTBorder.- Parameters:
border- the CTBorder object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder getCT()Description copied from interface:ICTElementReturns the CT object of current element.- Specified by:
getCTin interfaceICTElement
-
getColor
Returns the border color.Represents the following element tag in the schema:
w:color.- Returns:
- the border color.
-
setColor
Sets the border color.Represents the following element tag in the schema:
w:color.- Parameters:
color- the border color.
-
getSz
Returns the border width.Represents the following element tag in the schema:
w:sz.- Returns:
- the border width.
-
setSz
Sets the border width.Represents the following element tag in the schema:
w:sz.- Parameters:
sz- the border width.
-
getVal
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder.Enum getVal()Returns the border style.Represents the following element tag in the schema:
w:val.- Returns:
- the border style.
-
setVal
public void setVal(org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder.Enum val) Sets the border style.Represents the following element tag in the schema:
w:val.- Parameters:
val- the border style.
-
getSpace
Returns the border spacing measurement.Represents the following element tag in the schema:
w:space.- Returns:
- the border spacing measurement.
-
setSpace
Sets the border spacing measurement.Represents the following element tag in the schema:
w:space.- Parameters:
space- the border spacing measurement.
-
getFrame
Returns whether to create frame effect.Represents the following element tag in the schema:
w:frame.- Returns:
- whether to create frame effect.
-
setFrame
Sets whether to create frame effect.Represents the following element tag in the schema:
w:frame.- Parameters:
frame- whether to create frame effect.
-
getShadow
Returns the border shadow.Represents the following element tag in the schema:
w:shadow.- Returns:
- the border shadow.
-
setShadow
Sets the border shadow.Represents the following element tag in the schema:
w:shadow.- Parameters:
shadow- the border shadow.
-
getThemeColor
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STThemeColor.Enum getThemeColor()Returns the border theme color.Represents the following element tag in the schema:
w:themeColor.- Returns:
- the border theme color.
-
setThemeColor
public void setThemeColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.STThemeColor.Enum themeColor) Sets the border theme color.Represents the following element tag in the schema:
w:themeColor.- Parameters:
themeColor- the border theme color.
-
getThemeTint
public byte[] getThemeTint()Returns the border theme tint.Represents the following element tag in the schema:
w:themeTint.- Returns:
- the border theme tint.
-
setThemeTint
public void setThemeTint(byte[] themeTint) Sets the border theme tint.Represents the following element tag in the schema:
w:themeTint.- Parameters:
themeTint- the border theme tint.
-
getThemeShade
public byte[] getThemeShade()Returns the border theme shade.Represents the following element tag in the schema:
w:themeShade.- Returns:
- the border theme shade.
-
setThemeShade
public void setThemeShade(byte[] themeShade) Sets the border theme shade.Represents the following element tag in the schema:
w:themeShade.- Parameters:
themeShade- the border theme shade.
-