diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-09-16 08:39:10 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-09-16 08:39:10 +0000 |
commit | 461b36809cbfc355916e050d3b24cc213f3d3fe0 (patch) | |
tree | ee0d633ae0a8a5d9830475d1de3d4a86668d6c19 /src/java/org/apache/fop/fo/flow/TableColumn.java | |
parent | d045c95550882cf20478f79dae253722d39fba90 (diff) | |
download | xmlgraphics-fop-461b36809cbfc355916e050d3b24cc213f3d3fe0.tar.gz xmlgraphics-fop-461b36809cbfc355916e050d3b24cc213f3d3fe0.zip |
An informative warning for the user if he doesn't supply enough table-column elements in fixed table layout.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289428 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/TableColumn.java')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/TableColumn.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/flow/TableColumn.java b/src/java/org/apache/fop/fo/flow/TableColumn.java index 8a87dcc28..a0aa9d647 100644 --- a/src/java/org/apache/fop/fo/flow/TableColumn.java +++ b/src/java/org/apache/fop/fo/flow/TableColumn.java @@ -48,12 +48,24 @@ public class TableColumn extends FObj { private int visibility; // End of property values + private boolean defaultColumn; + /** * @param parent FONode that is the parent of this object */ public TableColumn(FONode parent) { + this(parent, false); + } + + /** + * @param parent FONode that is the parent of this object + * @param defaultColumn true if this table-column has been manually created as a default column + */ + public TableColumn(FONode parent, boolean defaultColumn) { super(parent); + this.defaultColumn = defaultColumn; } + /** * @see org.apache.fop.fo.FObj#bind(PropertyList) @@ -157,6 +169,16 @@ public class TableColumn extends FObj { return FO_TABLE_COLUMN; } + /** + * Indicates whether this table-column has been created as default column for this table in + * case no table-columns have been defined. Note that this only used to provide better + * user feedback (see ColumnSetup). + * @return true if this table-column has been created as default column + */ + public boolean isDefaultColumn() { + return defaultColumn; + } + /** @see java.lang.Object#toString() */ public String toString() { StringBuffer sb = new StringBuffer("fo:table-column"); |