diff options
author | Audrius Meskauskas <audriusa@Bioinformatics.org> | 2006-07-07 15:52:14 +0000 |
---|---|---|
committer | Audrius Meskauskas <audriusa@Bioinformatics.org> | 2006-07-07 15:52:14 +0000 |
commit | 5a27e249255625e86a82f3773b32006ccfeb0458 (patch) | |
tree | b1e37fb320e02cde521b0af4bfb5c732bd658c3c /javax/swing/text/html/TableView.java | |
parent | fb4fc48746c895a014dffbb28b06e7ed347b1296 (diff) | |
download | classpath-5a27e249255625e86a82f3773b32006ccfeb0458.tar.gz |
2006-07-07 Audrius Meskauskas <AudriusA@Bioinformatics.org>
* javax/swing/text/html/TableView.java
(getStyleSheet): New method. (RowView.getStyleSheet):
New method.
Diffstat (limited to 'javax/swing/text/html/TableView.java')
-rw-r--r-- | javax/swing/text/html/TableView.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/javax/swing/text/html/TableView.java b/javax/swing/text/html/TableView.java index d1b4a8e6a..c2edc8cdd 100644 --- a/javax/swing/text/html/TableView.java +++ b/javax/swing/text/html/TableView.java @@ -38,6 +38,7 @@ exception statement from your version. */ package javax.swing.text.html; +import javax.swing.text.Document; import javax.swing.text.Element; import javax.swing.text.View; import javax.swing.text.ViewFactory; @@ -64,6 +65,20 @@ class TableView { super(el); } + + /** + * Get the associated style sheet from the document. + * + * @return the associated style sheet. + */ + protected StyleSheet getStyleSheet() + { + Document d = getElement().getDocument(); + if (d instanceof HTMLDocument) + return ((HTMLDocument) d).getStyleSheet(); + else + return null; + } } /** @@ -77,6 +92,20 @@ class TableView } /** + * Get the associated style sheet from the document. + * + * @return the associated style sheet. + */ + protected StyleSheet getStyleSheet() + { + Document d = getElement().getDocument(); + if (d instanceof HTMLDocument) + return ((HTMLDocument) d).getStyleSheet(); + else + return null; + } + + /** * Creates a view for a table row. * * @param el the element that represents the table row |