Package org.jmol.awt
Class AwtSwingComponent
- java.lang.Object
-
- org.jmol.awt.AwtSwingComponent
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AbstractButtonabJComponentjc(package private) JMenujm(package private) JMenuItemjmiprivate SCparent
-
Constructor Summary
Constructors Constructor Description AwtSwingComponent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(SC item)voidaddActionListener(Object owner)voidaddItemListener(Object owner)voidaddMouseListener(Object owner)StringgetActionCommand()(package private) static SCgetCheckBox(AwtPopupHelper helper, String name, Map<Object,SC> htSources)ObjectgetComponent(int i)intgetComponentCount()Object[]getComponents()ObjectgetIcon()(package private) static SCgetMenu(String name, Map<Object,SC> htSources)(package private) static SCgetMenuItem(AwtPopupHelper helper, String name, Map<Object,SC> htSources)StringgetName()ObjectgetParent()(package private) static SCgetPopup(String title, Map<Object,SC> htSources)ObjectgetPopupMenu()(package private) static SCgetRadio(AwtPopupHelper helper, String name, Map<Object,SC> htSources)StringgetText()voidinit(String text, Object icon, String actionCommand, SC popupMenu)voidinsert(SC subMenu, int index)booleanisEnabled()booleanisSelected()voidremove(int i)voidremoveAll()voidsetActionCommand(String script)voidsetAutoscrolls(boolean b)voidsetEnabled(boolean enabled)voidsetIcon(Object icon)voidsetName(String name)voidsetSelected(boolean b)voidsetText(String text)
-
-
-
Field Detail
-
jc
public JComponent jc
-
ab
AbstractButton ab
-
jmi
JMenuItem jmi
-
jm
JMenu jm
-
parent
private SC parent
-
-
Method Detail
-
addActionListener
public void addActionListener(Object owner)
- Specified by:
addActionListenerin interfaceSC
-
addItemListener
public void addItemListener(Object owner)
- Specified by:
addItemListenerin interfaceSC
-
addMouseListener
public void addMouseListener(Object owner)
- Specified by:
addMouseListenerin interfaceSC
-
getActionCommand
public String getActionCommand()
- Specified by:
getActionCommandin interfaceSC
-
getComponent
public Object getComponent(int i)
- Specified by:
getComponentin interfaceSC
-
getComponentCount
public int getComponentCount()
- Specified by:
getComponentCountin interfaceSC
-
getComponents
public Object[] getComponents()
- Specified by:
getComponentsin interfaceSC
-
getPopupMenu
public Object getPopupMenu()
- Specified by:
getPopupMenuin interfaceSC
-
isSelected
public boolean isSelected()
- Specified by:
isSelectedin interfaceSC
-
setActionCommand
public void setActionCommand(String script)
- Specified by:
setActionCommandin interfaceSC
-
setAutoscrolls
public void setAutoscrolls(boolean b)
- Specified by:
setAutoscrollsin interfaceSC
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceSC
-
setSelected
public void setSelected(boolean b)
- Specified by:
setSelectedin interfaceSC
-
-