Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / src / javajs / swing / Cell.java
index 77c5b06..dd53025 100644 (file)
@@ -1,25 +1,25 @@
-package javajs.swing;\r
-\r
-public class Cell {\r
-\r
-       private JComponent component;\r
-       private int colspan;\r
-       private int rowspan;\r
-       int textAlign;\r
-       private GridBagConstraints c;\r
-\r
-       public Cell(JComponent btn, GridBagConstraints c) {\r
-               this.component = btn;\r
-               colspan = c.gridwidth;\r
-               rowspan = c.gridheight;  // ignoring for now\r
-               this.c = c;\r
-       }\r
-\r
-       public String toHTML(String id) {\r
-               String style = c.getStyle(false); \r
-               return "<td id='" + id +"' " + (colspan < 2 ? "" : "colspan='" + colspan + "' ") \r
-               + style + "><span " + c.getStyle(true) + ">" + component.toHTML() + "</span></td>";\r
-       }\r
-\r
-\r
-}\r
+package javajs.swing;
+
+public class Cell {
+
+       private JComponent component;
+       private int colspan;
+       private int rowspan;
+       int textAlign;
+       private GridBagConstraints c;
+
+       public Cell(JComponent btn, GridBagConstraints c) {
+               this.component = btn;
+               colspan = c.gridwidth;
+               rowspan = c.gridheight;  // ignoring for now
+               this.c = c;
+       }
+
+       public String toHTML(String id) {
+               String style = c.getStyle(false); 
+               return "<td id='" + id +"' " + (colspan < 2 ? "" : "colspan='" + colspan + "' ") 
+               + style + "><span " + c.getStyle(true) + ">" + component.toHTML() + "</span></td>";
+       }
+
+
+}