Class JComponent

    • Field Detail

      • autoScrolls

        protected boolean autoScrolls
      • actionCommand

        protected java.lang.String actionCommand
      • actionListener

        protected java.lang.Object actionListener
    • Constructor Detail

      • JComponent

        protected JComponent​(java.lang.String type)
    • Method Detail

      • setAutoscrolls

        public void setAutoscrolls​(boolean b)
      • addActionListener

        public void addActionListener​(java.lang.Object listener)
        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 org.jmol.awtjs.swing, reducing the duplication of JTextField's actionListener business.
        Parameters:
        listener -
      • getActionCommand

        public java.lang.String getActionCommand()
      • setActionCommand

        public void setActionCommand​(java.lang.String actionCommand)