| javax.swing.JSpinner com.xoetrope.swing.XSpinner
XSpinner | public class XSpinner extends JSpinner implements ChangeListener,XAttributedComponent,XListenerHelper,XValueHolder(Code) | | An Up-Down control or spin edit component
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.14 $
|
SPINNER_TYPE_DOUBLE | final public static int SPINNER_TYPE_DOUBLE(Code) | | |
SPINNER_TYPE_INT | final public static int SPINNER_TYPE_INT(Code) | | |
XSpinner | public XSpinner()(Code) | | Create a new spinner
|
addNotify | public void addNotify()(Code) | | Repaint the component once it has been created
|
getMax | public double getMax()(Code) | | Gets the value corresponding to the maximum value of the meter
the max value |
getMin | public double getMin()(Code) | | Gets the value corresponding to the minimum value of the meter
the min value |
getStep | public double getStep()(Code) | | Gets the step size for the spinner
the step size |
getText | public String getText()(Code) | | Get the text/label of the component
the component's text |
getValue | public Object getValue()(Code) | | Get the object's value
the value for this object |
init | public void init() throws IOException(Code) | | Performs any post creation initialisation of the control.
throws: java.io.IOException - This component diesnt do any IO, but the exception is a boilerplate |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
- min, value=the minimum field value
- max, value=the maximum field value
- step, value=the field step size
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value 0 for success, non zero otherwise |
setBackground | public void setBackground(Color c)(Code) | | Set the background color of the editor component
Parameters: c - the new color |
setBuddy | public void setBuddy(XEdit je)(Code) | | Set an edit component to update
Parameters: je - the component to update |
setForeground | public void setForeground(Color c)(Code) | | Set the foreground color of the editor component
Parameters: c - the new color |
setMax | public void setMax(double _value)(Code) | | Sets the value corresponding to the maximum value of the meter
Parameters: _value - the new max value |
setMin | public void setMin(double _value)(Code) | | Sets the value corresponding to the minimum value of the meter
Parameters: _value - the new min value |
setRange | public void setRange(int min, int max)(Code) | | Set the spinner range
Parameters: min - the max value Parameters: max - teh minimum value |
setStep | public void setStep(double _value)(Code) | | Sets the step size for the spinner
Parameters: _value - the new step size |
setText | public void setText(String string)(Code) | | Get the text/label of the component
the component's text |
setValue | public void setValue(Object value)(Code) | | Set the value associated with this component
Parameters: newValue - the new object value |
stateChanged | public void stateChanged(ChangeEvent e)(Code) | | The state changed
Parameters: e - the state event |
|
|