Package javascript.swing
Class AbstractButton
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.AbstractButton
-
- Direct Known Subclasses:
JSButton
,JSCheckBox
,JSRadioButton
,JSToggleButton
public abstract class AbstractButton extends JSComponent
The javax.swing.AbstractButton clone- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description AbstractButton(def.dom.HTMLElement element)
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActionListener(ActionListener listener)
Clone of javax.swing.AbstractButton.addActionListenervoid
onclick()
The method for click eventsvoid
setIcon(AbstractHTMLImageProducer<?> producer)
Sets the iconvoid
setTooltip(java.lang.String text)
Clone of javax.swing.AbstractButton.setTooltip-
Methods inherited from class javascript.swing.JSComponent
addChildEventListenerByQuery, addEventListener, appendChild, appendChildInTree, appendInBody, appendNodeChild, appendNodeChildInTree, clearChildContentByQuery, clearContent, cssAddClass, cssClassList, cssRemoveClass, cssToggleClass, getAttribute, getChildAttributeByIndex, getChildAttributeByQuery, getChildCount, getChildPropertyByQuery, getChilStyleByIndex, getChilStyleByQuery, getID, getProperty, getStyle, insertBefore, insertBeforeInTree, insertNodeBefore, insertNodeBeforeInTree, invoke, invokeInTree, prependChild, prependChildInTree, prependNodeChild, prependNodeChildInTree, removeAttribute, removeChildAttributeByQuery, removeFromBody, setAttribute, setBackground, setChildAttributeByIndex, setChildAttributeByQuery, setChildPropertyByQuery, setContent, setEnabled, setID, setProperty
-
-
-
-
Method Detail
-
addActionListener
public void addActionListener(ActionListener listener)
Clone of javax.swing.AbstractButton.addActionListener- Parameters:
listener
- The listener
-
onclick
public void onclick()
The method for click events
-
setTooltip
public void setTooltip(java.lang.String text)
Clone of javax.swing.AbstractButton.setTooltip- Parameters:
text
- The text
-
setIcon
public void setIcon(AbstractHTMLImageProducer<?> producer)
Sets the icon- Parameters:
producer
- The icon producer
-
-