Package org.jmol.awt
Class AwtSwingComponent
- java.lang.Object
-
- org.jmol.awt.AwtSwingComponent
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AbstractButton
ab
JComponent
jc
(package private) JMenu
jm
(package private) JMenuItem
jmi
private SC
parent
-
Constructor Summary
Constructors Constructor Description AwtSwingComponent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SC item)
void
addActionListener(Object owner)
void
addItemListener(Object owner)
void
addMouseListener(Object owner)
String
getActionCommand()
(package private) static SC
getCheckBox(AwtPopupHelper helper, String name, Map<Object,SC> htSources)
Object
getComponent(int i)
int
getComponentCount()
Object[]
getComponents()
Object
getIcon()
(package private) static SC
getMenu(String name, Map<Object,SC> htSources)
(package private) static SC
getMenuItem(AwtPopupHelper helper, String name, Map<Object,SC> htSources)
String
getName()
Object
getParent()
(package private) static SC
getPopup(String title, Map<Object,SC> htSources)
Object
getPopupMenu()
(package private) static SC
getRadio(AwtPopupHelper helper, String name, Map<Object,SC> htSources)
String
getText()
void
init(String text, Object icon, String actionCommand, SC popupMenu)
void
insert(SC subMenu, int index)
boolean
isEnabled()
boolean
isSelected()
void
remove(int i)
void
removeAll()
void
setActionCommand(String script)
void
setAutoscrolls(boolean b)
void
setEnabled(boolean enabled)
void
setIcon(Object icon)
void
setName(String name)
void
setSelected(boolean b)
void
setText(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:
addActionListener
in interfaceSC
-
addItemListener
public void addItemListener(Object owner)
- Specified by:
addItemListener
in interfaceSC
-
addMouseListener
public void addMouseListener(Object owner)
- Specified by:
addMouseListener
in interfaceSC
-
getActionCommand
public String getActionCommand()
- Specified by:
getActionCommand
in interfaceSC
-
getComponent
public Object getComponent(int i)
- Specified by:
getComponent
in interfaceSC
-
getComponentCount
public int getComponentCount()
- Specified by:
getComponentCount
in interfaceSC
-
getComponents
public Object[] getComponents()
- Specified by:
getComponents
in interfaceSC
-
getPopupMenu
public Object getPopupMenu()
- Specified by:
getPopupMenu
in interfaceSC
-
isSelected
public boolean isSelected()
- Specified by:
isSelected
in interfaceSC
-
setActionCommand
public void setActionCommand(String script)
- 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
-
setSelected
public void setSelected(boolean b)
- Specified by:
setSelected
in interfaceSC
-
-