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) Object
applet
(package private) String
htmlName
private String
icon
(package private) Object
itemListener
private SC
popupMenu
(package private) boolean
selected
-
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 protected
AbstractButton(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SC item)
void
addItemListener(Object listener)
protected String
getHtmlDisabled()
Object
getIcon()
protected String
getMenuHTML()
Object
getPopupMenu()
SC
getTopPopupMenu()
protected String
htmlMenuOpener(String type)
void
init(String text, Object icon, String actionCommand, SC popupMenu)
void
insert(SC subMenu, int index)
boolean
isSelected()
void
setIcon(Object icon)
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 Detail
-
AbstractButton
protected AbstractButton(String type)
-
-
Method Detail
-
setSelected
public void setSelected(boolean selected)
- Specified by:
setSelected
in interfaceSC
-
isSelected
public boolean isSelected()
- Specified by:
isSelected
in interfaceSC
-
addItemListener
public void addItemListener(Object listener)
- Specified by:
addItemListener
in interfaceSC
-
getTopPopupMenu
public SC getTopPopupMenu()
-
getPopupMenu
public Object getPopupMenu()
- Specified by:
getPopupMenu
in interfaceSC
-
getMenuHTML
protected String getMenuHTML()
-
getHtmlDisabled
protected String getHtmlDisabled()
-
-