Package javascript.swing
Class JSCheckBox
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.AbstractButton
-
- javascript.swing.JSCheckBox
-
public class JSCheckBox extends AbstractButton
The javax.swing.JCheckBox clone- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description JSCheckBox()
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Clone of javax.swing.JCheckBox.getTextboolean
isSelected()
Clone of javax.swing.JCheckBox.isSelectedvoid
setEnabled(boolean b)
Clone of javax.swing.JComponent.setEnabledvoid
setSelected(boolean selected)
Clone of javax.swing.JCheckBox.setSelectedvoid
setText(java.lang.String text)
Clone of javax.swing.JCheckBox.setText-
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
-
setText
public void setText(java.lang.String text)
Clone of javax.swing.JCheckBox.setText- Parameters:
text
- The text
-
getText
public java.lang.String getText()
Clone of javax.swing.JCheckBox.getText- Returns:
- The text
-
setSelected
public void setSelected(boolean selected)
Clone of javax.swing.JCheckBox.setSelected- Parameters:
selected
- true to select, false otherwise
-
isSelected
public boolean isSelected()
Clone of javax.swing.JCheckBox.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
-
-