Package org.jmol.awt
Class AwtSwingComponent
java.lang.Object
org.jmol.awt.AwtSwingComponent
- All Implemented Interfaces:
SC
A javax.swing implementation of SwingComponent
that mirrors org.jmol.awtjs.swing for compatibility with
compilation with java2script.
- Author:
- Bob Hanson, hansonr
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addActionListener
(Object owner) void
addItemListener
(Object owner) void
addMouseListener
(Object owner) getComponent
(int i) int
Object[]
getIcon()
getName()
getText()
void
void
boolean
boolean
void
remove
(int i) void
void
setActionCommand
(String script) void
setAutoscrolls
(boolean b) void
setEnabled
(boolean enabled) void
void
void
setSelected
(boolean b) void
-
Field Details
-
jc
-
deferred
public boolean deferred
-
-
Constructor Details
-
AwtSwingComponent
public AwtSwingComponent()
-
-
Method Details
-
add
-
addActionListener
- Specified by:
addActionListener
in interfaceSC
-
addItemListener
- Specified by:
addItemListener
in interfaceSC
-
addMouseListener
- Specified by:
addMouseListener
in interfaceSC
-
getActionCommand
- Specified by:
getActionCommand
in interfaceSC
-
getComponent
- Specified by:
getComponent
in interfaceSC
-
getComponentCount
public int getComponentCount()- Specified by:
getComponentCount
in interfaceSC
-
getComponents
- Specified by:
getComponents
in interfaceSC
-
getName
-
getParent
-
getPopupMenu
- Specified by:
getPopupMenu
in interfaceSC
-
getText
-
getIcon
-
init
-
insert
-
isEnabled
public boolean isEnabled() -
isSelected
public boolean isSelected()- Specified by:
isSelected
in interfaceSC
-
remove
public void remove(int i) -
removeAll
public void removeAll() -
setActionCommand
- Specified by:
setActionCommand
in interfaceSC
-
setAutoscrolls
public void setAutoscrolls(boolean b) - Specified by:
setAutoscrolls
in interfaceSC
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceSC
-
setName
-
setSelected
public void setSelected(boolean b) - Specified by:
setSelected
in interfaceSC
-
setText
-
setIcon
-