Package javascript.swing
Class JSSpinner
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.JSSpinner
-
public class JSSpinner extends JSComponent
The javax.swing.JSpinner clone- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description JSSpinner()Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChangeListener(ChangeListener listener)Clone of javax.swing.JSpinner.addChangeListenerdoublegetValue()Clone of javax.swing.JSpinner.getValuebooleangetValueIsAdjusting()Clone of javax.swing.JSpinner.getValueIsAdjustingvoidsetEnabled(boolean b)Clone of javax.swing.JComponent.setEnabledvoidsetModel(SpinnerNumberModel model)Clone of javax.swing.JSpinner.setModelvoidsetValue(double value)Clone of javax.swing.JSpinner.setValue-
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
-
setModel
public void setModel(SpinnerNumberModel model)
Clone of javax.swing.JSpinner.setModel- Parameters:
model- The model
-
addChangeListener
public void addChangeListener(ChangeListener listener)
Clone of javax.swing.JSpinner.addChangeListener- Parameters:
listener- The listener
-
setValue
public void setValue(double value)
Clone of javax.swing.JSpinner.setValue- Parameters:
value- The value
-
getValue
public double getValue()
Clone of javax.swing.JSpinner.getValue- Returns:
- The value
-
getValueIsAdjusting
public boolean getValueIsAdjusting()
Clone of javax.swing.JSpinner.getValueIsAdjusting- Returns:
- true if value is adjusting, false otherwise
-
setEnabled
public void setEnabled(boolean b)
Description copied from class:JSComponentClone of javax.swing.JComponent.setEnabled- Overrides:
setEnabledin classJSComponent- Parameters:
b- true to enable the button, false otherwise
-
-