Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / src / javajs / swing / JComponent.java
index 3bba3a1..2f17ba0 100644 (file)
@@ -1,45 +1,45 @@
-package javajs.swing;\r
-\r
-import javajs.awt.Container;\r
-\r
-public abstract class JComponent extends Container {\r
-\r
-  protected boolean autoScrolls;\r
-  protected String actionCommand;\r
-  protected Object actionListener;\r
-\r
-  protected JComponent(String type) {\r
-    super(type);\r
-  }\r
-  \r
-  public void setAutoscrolls(boolean b) {\r
-    autoScrolls = b;\r
-  }\r
-  \r
-  /** \r
-   * Note that it will be the job of the JavaScript on the \r
-   * page to do with actionListener what is desired.\r
-   * \r
-   * In javax.swing, these methods are in AbstractButton, but\r
-   * this is better for javajs.swing, reducing the duplication\r
-   * of JTextField's actionListener business. \r
-   * \r
-   * @param listener \r
-   * \r
-   */\r
-  public void addActionListener(Object listener) {\r
-    actionListener = listener;\r
-  }\r
-\r
-  public String getActionCommand() {\r
-    return actionCommand;\r
-  }\r
-\r
-  public void setActionCommand(String actionCommand) {\r
-    this.actionCommand = actionCommand;\r
-  }\r
-\r
-\r
-\r
-  \r
-}\r
+package javajs.swing;
+
+import javajs.awt.Container;
+
+public abstract class JComponent extends Container {
+
+  protected boolean autoScrolls;
+  protected String actionCommand;
+  protected Object actionListener;
+
+  protected JComponent(String type) {
+    super(type);
+  }
+  
+  public void setAutoscrolls(boolean b) {
+    autoScrolls = b;
+  }
+  
+  /** 
+   * Note that it will be the job of the JavaScript on the 
+   * page to do with actionListener what is desired.
+   * 
+   * In javax.swing, these methods are in AbstractButton, but
+   * this is better for javajs.swing, reducing the duplication
+   * of JTextField's actionListener business. 
+   * 
+   * @param listener 
+   * 
+   */
+  public void addActionListener(Object listener) {
+    actionListener = listener;
+  }
+
+  public String getActionCommand() {
+    return actionCommand;
+  }
+
+  public void setActionCommand(String actionCommand) {
+    this.actionCommand = actionCommand;
+  }
+
+
+
+  
+}