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 TypeMethodDescriptionvoidvoidaddActionListener(Object owner) voidaddItemListener(Object owner) voidaddMouseListener(Object owner) getComponent(int i) intObject[]getIcon()getName()getText()voidvoidbooleanbooleanvoidremove(int i) voidvoidsetActionCommand(String script) voidsetAutoscrolls(boolean b) voidsetEnabled(boolean enabled) voidvoidvoidsetSelected(boolean b) void
-
Field Details
-
jc
-
deferred
public boolean deferred
-
-
Constructor Details
-
AwtSwingComponent
public AwtSwingComponent()
-
-
Method Details
-
add
-
addActionListener
- Specified by:
addActionListenerin interfaceSC
-
addItemListener
- Specified by:
addItemListenerin interfaceSC
-
addMouseListener
- Specified by:
addMouseListenerin interfaceSC
-
getActionCommand
- Specified by:
getActionCommandin interfaceSC
-
getComponent
- Specified by:
getComponentin interfaceSC
-
getComponentCount
public int getComponentCount()- Specified by:
getComponentCountin interfaceSC
-
getComponents
- Specified by:
getComponentsin interfaceSC
-
getName
-
getParent
-
getPopupMenu
- Specified by:
getPopupMenuin interfaceSC
-
getText
-
getIcon
-
init
-
insert
-
isEnabled
public boolean isEnabled() -
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceSC
-
remove
public void remove(int i) -
removeAll
public void removeAll() -
setActionCommand
- Specified by:
setActionCommandin interfaceSC
-
setAutoscrolls
public void setAutoscrolls(boolean b) - Specified by:
setAutoscrollsin interfaceSC
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceSC
-
setName
-
setSelected
public void setSelected(boolean b) - Specified by:
setSelectedin interfaceSC
-
setText
-
setIcon
-