Border
Inheritance: java.lang.Object
public class Border
Encapsulates the object that represents the cell border.
Example
Workbook workbook = new Workbook();
WorksheetCollection sheets = workbook.getWorksheets();
Cell cell = sheets.get(0).getCells().get("A1");
Style style = cell.getStyle();
//Set top border style and color
Border border = style.getBorders().getByBorderType(BorderType.TOP_BORDER);
border.setLineStyle(CellBorderType.MEDIUM);
border.setColor(Color.getRed());
cell.setStyle(style);
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getArgbColor() | Gets the color with a 32-bit ARGB value. |
getClass() | |
getColor() | Gets the Color of the border. |
getLineStyle() | Gets the cell border type. |
getThemeColor() | Gets the theme color of the border. |
hashCode() | |
notify() | |
notifyAll() | |
setArgbColor(int value) | Sets the color with a 32-bit ARGB value. |
setColor(Color value) | Sets the Color of the border. |
setLineStyle(int value) | Sets the cell border type. |
setThemeColor(ThemeColor value) | Sets the theme color of the border. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getArgbColor()
public int getArgbColor()
Gets the color with a 32-bit ARGB value.
Returns: int
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getColor()
public Color getColor()
Gets the Color of the border.
Returns: Color
getLineStyle()
public int getLineStyle()
Gets the cell border type.
See CellBorderType.
Returns: int
getThemeColor()
public ThemeColor getThemeColor()
Gets the theme color of the border.
Returns: ThemeColor
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setArgbColor(int value)
public void setArgbColor(int value)
Sets the color with a 32-bit ARGB value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setColor(Color value)
public void setColor(Color value)
Sets the Color of the border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color |
setLineStyle(int value)
public void setLineStyle(int value)
Sets the cell border type.
See CellBorderType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setThemeColor(ThemeColor value)
public void setThemeColor(ThemeColor value)
Sets the theme color of the border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | ThemeColor |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |