Package org.jmol.awtjs.swing
Class JComponent
java.lang.Object
org.jmol.awtjs.swing.Component
org.jmol.awtjs.swing.Container
org.jmol.awtjs.swing.JComponent
- Direct Known Subclasses:
AbstractButton
,JComponentImp
,JContentPane
,JEditorPane
,JLabel
,JPanel
,JScrollPane
,JSplitPane
,JTable
,JTextField
,JTextPane
-
Field Summary
FieldsFields inherited from class org.jmol.awtjs.swing.Component
enabled, height, id, minHeight, minWidth, mouseListener, name, parent, renderHeight, renderWidth, text, width
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionListener
(Object listener) Note that it will be the job of the JavaScript on the page to do with actionListener what is desired.void
setActionCommand
(String actionCommand) void
setAutoscrolls
(boolean b) Methods inherited from class org.jmol.awtjs.swing.Container
add, addComponent, getComponent, getComponentCount, getComponents, getSubcomponentHeight, getSubcomponentWidth, insertComponent, remove, removeAll
Methods inherited from class org.jmol.awtjs.swing.Component
addMouseListener, getCSSstyle, getHeight, getName, getParent, getText, getWidth, isEnabled, isVisible, newID, repaint, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText, setVisible, toHTML
-
Field Details
-
autoScrolls
protected boolean autoScrolls -
actionCommand
-
actionListener
-
-
Constructor Details
-
JComponent
-
-
Method Details
-
setAutoscrolls
public void setAutoscrolls(boolean b) -
addActionListener
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
-
setActionCommand
-