public class MarkdownTableCell extends Object
Constructor and Description |
---|
MarkdownTableCell()
Creates a new, empty MarkdownTableCell
|
MarkdownTableCell(String contents)
Creates a new MarkdownTableCell with only contents
|
MarkdownTableCell(String contents,
int colspan)
Creates a new MarkdownTableCell with contents and a colspan
|
MarkdownTableCell(String contents,
MarkdownTable.Alignment alignment)
Creates a new MarkdownTableCell with contents and alignment
|
MarkdownTableCell(String contents,
MarkdownTable.Alignment alignment,
int colspan)
Creates a new MarkdownTableCell with contents and a colspan
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
MarkdownTable.Alignment |
getAlignment()
Gets the text-alignment of this cell
|
int |
getColspan() |
String |
getContents() |
int |
getWidth()
Returns the number of characters needed to show this column.
|
int |
hashCode() |
void |
setAlignment(MarkdownTable.Alignment alignment)
Sets the text-alignment.
|
void |
setColspan(int colspan)
Sets the number of columns this cell spans.
|
void |
setContents(String contents)
Sets the contents of this cell.
|
String |
toString() |
public MarkdownTableCell()
public MarkdownTableCell(String contents)
contents
- The contents of this cellpublic MarkdownTableCell(String contents, MarkdownTable.Alignment alignment)
contents
- The contents of this cellalignment
- The alignment of this cell (if specified)public MarkdownTableCell(String contents, int colspan)
contents
- The contents of this cellcolspan
- The number of columns this cell spanspublic MarkdownTableCell(String contents, MarkdownTable.Alignment alignment, int colspan)
contents
- The contents of this cellalignment
- The alignment of this cell (if specified)colspan
- The number of columns this cell spanspublic MarkdownTable.Alignment getAlignment()
public void setAlignment(MarkdownTable.Alignment alignment)
alignment
- The new alignmentpublic String getContents()
public void setContents(String contents)
contents
- The new cell contentspublic int getColspan()
public void setColspan(int colspan)
colspan
- The new colspanpublic int getWidth()
Copyright © 2017. All rights reserved.