This adds the missing method to obtain the style sheet for the table row.
2006-07-07 Audrius Meskauskas <[EMAIL PROTECTED]>
* javax/swing/text/html/TableView.java
(getStyleSheet): New method. (RowView.getStyleSheet):
New method.
Index: TableView.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/text/html/TableView.java,v
retrieving revision 1.1
diff -u -r1.1 TableView.java
--- TableView.java 6 Jul 2006 10:55:29 -0000 1.1
+++ TableView.java 7 Jul 2006 15:47:09 -0000
@@ -38,6 +38,7 @@
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 @@
{
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 @@
}
/**
+ * 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