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
public abstract class AbstractButton extends JComponent implements SC
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Objectapplet(package private) StringhtmlNameprivate Stringicon(package private) ObjectitemListenerprivate SCpopupMenu(package private) booleanselected-
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 Modifier Constructor Description protectedAbstractButton(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(SC item)voidaddItemListener(Object listener)protected StringgetHtmlDisabled()ObjectgetIcon()protected StringgetMenuHTML()ObjectgetPopupMenu()SCgetTopPopupMenu()protected StringhtmlMenuOpener(String type)voidinit(String text, Object icon, String actionCommand, SC popupMenu)voidinsert(SC subMenu, int index)booleanisSelected()voidsetIcon(Object icon)voidsetSelected(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 Detail
-
AbstractButton
protected AbstractButton(String type)
-
-
Method Detail
-
setSelected
public void setSelected(boolean selected)
- Specified by:
setSelectedin interfaceSC
-
isSelected
public boolean isSelected()
- Specified by:
isSelectedin interfaceSC
-
addItemListener
public void addItemListener(Object listener)
- Specified by:
addItemListenerin interfaceSC
-
getTopPopupMenu
public SC getTopPopupMenu()
-
getPopupMenu
public Object getPopupMenu()
- Specified by:
getPopupMenuin interfaceSC
-
getMenuHTML
protected String getMenuHTML()
-
getHtmlDisabled
protected String getHtmlDisabled()
-
-