Package javascript.swing
Class JSRadioButton
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.AbstractButton
-
- javascript.swing.JSRadioButton
-
public class JSRadioButton extends AbstractButton
The javax.swing.JRadioButton clone- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description JSRadioButton()
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Clone of javax.swing.JRadioButton.getTextboolean
isSelected()
Clone of javax.swing.JRadioButton.isSelectedvoid
setContentAreaFilled(boolean b)
Clone of javax.swing.JRadioButton.setContentAreaFilledvoid
setEnabled(boolean b)
Clone of javax.swing.JComponent.setEnabledvoid
setSelected(boolean selected)
Clone of javax.swing.JRadioButton.setSelectedvoid
setText(java.lang.String text)
Clone of javax.swing.JRadioButton.setTextvoid
setToggle()
Set this radiobutton as a toggle-
Methods inherited from class javascript.swing.AbstractButton
addActionListener, onclick, setIcon, 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, setID, setProperty
-
-
-
-
Method Detail
-
setToggle
public void setToggle()
Set this radiobutton as a toggle
-
setText
public void setText(java.lang.String text)
Clone of javax.swing.JRadioButton.setText- Parameters:
text
- The text
-
getText
public java.lang.String getText()
Clone of javax.swing.JRadioButton.getText- Returns:
- The text
-
setSelected
public void setSelected(boolean selected)
Clone of javax.swing.JRadioButton.setSelected- Parameters:
selected
- true to select, false otherwise
-
isSelected
public boolean isSelected()
Clone of javax.swing.JRadioButton.isSelected- Returns:
- true if selected, false otherwise
-
setEnabled
public void setEnabled(boolean b)
Description copied from class:JSComponent
Clone of javax.swing.JComponent.setEnabled- Overrides:
setEnabled
in classJSComponent
- Parameters:
b
- true to enable the button, false otherwise
-
setContentAreaFilled
public void setContentAreaFilled(boolean b)
Clone of javax.swing.JRadioButton.setContentAreaFilled- Parameters:
b
- true to fill the area, false otherwise
-
-