Package org.jmol.awtjs.swing
Class AbstractButton
java.lang.Object
org.jmol.awtjs.swing.Component
org.jmol.awtjs.swing.Container
org.jmol.awtjs.swing.JComponent
org.jmol.awtjs.swing.AbstractButton
- All Implemented Interfaces:
SC
- Direct Known Subclasses:
JButton
,JCheckBox
,JComboBox
,JMenuItem
,JPopupMenu
-
Field Summary
Fields inherited from class org.jmol.awtjs.swing.JComponent
actionCommand, actionListener, autoScrolls
Fields 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
void
addItemListener
(Object listener) protected String
getIcon()
protected String
protected String
htmlMenuOpener
(String type) void
void
boolean
void
void
setSelected
(boolean selected) Methods inherited from class org.jmol.awtjs.swing.JComponent
addActionListener, getActionCommand, setActionCommand, setAutoscrolls
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jmol.api.SC
addActionListener, addMouseListener, getActionCommand, getComponent, getComponentCount, getComponents, getName, getParent, getText, isEnabled, remove, removeAll, setActionCommand, setAutoscrolls, setEnabled, setName, setText
-
Constructor Details
-
AbstractButton
-
-
Method Details
-
setSelected
public void setSelected(boolean selected) - Specified by:
setSelected
in interfaceSC
-
isSelected
public boolean isSelected()- Specified by:
isSelected
in interfaceSC
-
addItemListener
- Specified by:
addItemListener
in interfaceSC
-
getIcon
-
setIcon
-
init
-
getTopPopupMenu
-
add
-
insert
-
getPopupMenu
- Specified by:
getPopupMenu
in interfaceSC
-
getMenuHTML
-
htmlMenuOpener
-
getHtmlDisabled
-