-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
368 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,13 +91,65 @@ enum MTableAlign { | |
* @author ldelaigue | ||
*/ | ||
public interface MRow { | ||
|
||
/** | ||
* The height rule. | ||
* | ||
* @author <a href="mailto:[email protected]">Yvan Lussaud</a> | ||
*/ | ||
enum HeightRule { | ||
/** | ||
* Auto height. | ||
*/ | ||
AUTO, | ||
/** | ||
* Excact height. | ||
*/ | ||
EXACT, | ||
/** | ||
* At least height. | ||
*/ | ||
AT_LEAST; | ||
} | ||
|
||
/** | ||
* The row's defined cells (i.e. non-empty cells). A row may have no cell at all, or may not have a cell for each column of its | ||
* table. | ||
* | ||
* @return The row's defined cells. | ||
*/ | ||
List<MCell> getCells(); | ||
|
||
/** | ||
* Gets the height. | ||
* | ||
* @return the height if any, <code>-1</code> otherwise | ||
*/ | ||
int getHeight(); | ||
|
||
/** | ||
* Set the height. | ||
* | ||
* @param height | ||
* the height, <code>-1</code> for default | ||
*/ | ||
void setHeight(int height); | ||
|
||
/** | ||
* Gets the {@link HeightRule}. | ||
* | ||
* @return the {@link HeightRule} if any, <code>null</code> otherwise | ||
*/ | ||
HeightRule getHeightRule(); | ||
|
||
/** | ||
* Sets the {@link HeightRule}. | ||
* | ||
* @param rule | ||
* the {@link HeightRule} | ||
*/ | ||
void setHeightRule(HeightRule rule); | ||
|
||
} | ||
|
||
/** | ||
|
@@ -243,7 +295,7 @@ enum WidthType { | |
/** | ||
* Gets the width. | ||
* | ||
* @return the width | ||
* @return the width, <code>-1</code> otherwise | ||
*/ | ||
int getWitdh(); | ||
|
||
|
@@ -258,7 +310,7 @@ enum WidthType { | |
/** | ||
* Gets the {@link WidthType}. | ||
* | ||
* @return the {@link WidthType} if any, <code>-1</code> otherwise | ||
* @return the {@link WidthType} if any, <code>null</code> otherwise | ||
*/ | ||
WidthType getWidthType(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.