All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.Spinner
java.lang.Object
|
+----com.bulletproof.gui.Component
|
+----com.bulletproof.gui.Spinner
- public class Spinner
- extends Component
- implements AdjustmentListener
Class Spinner represents a textfield with spinner buttons.
-
Spinner()
-
-
Spinner(int)
-
-
Spinner(int, int)
-
-
addActionListener(ActionListener)
-
-
addAdjustmentListener(AdjustmentListener)
-
-
adjustmentValueChanged(AdjustmentEvent)
-
-
getMaxValue()
- Get the maximum value of the spinner
-
getMinimumSize()
- Gets the minimum size of this component.
-
getMinValue()
- Get the minimum value of the spinner
-
getText()
- Get the value of the spinner
-
getValue()
- Get the value of the spinner
-
paint(Graphics)
-
Paints the component.
-
processMouseEvent(MouseEvent)
-
Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
-
removeActionListener(ActionListener)
-
-
removeAdjustmentListener(AdjustmentListener)
-
-
setMaxValue(int)
- Set the maximum value of the spinner
-
setMinValue(int)
- Set the minimum value of the spinner
-
setText(String)
- Set the value of the spinner
-
setValue(int)
- Set the value of the spinner
-
update(Graphics)
-
Updates the component.
-
validate()
-
Ensures that a component has a valid layout.
Spinner
public Spinner()
Spinner
public Spinner(int width)
Spinner
public Spinner(int initValue,
int width)
addAdjustmentListener
public void addAdjustmentListener(AdjustmentListener al)
removeAdjustmentListener
public void removeAdjustmentListener(AdjustmentListener al)
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
setText
public void setText(String text)
- Set the value of the spinner
- Parameters:
- newValue - the new value for the spinner
getText
public String getText()
- Get the value of the spinner
- Returns:
- the current value for the spinner
setValue
public void setValue(int newValue)
- Set the value of the spinner
- Parameters:
- newValue - the new value for the spinner
getValue
public int getValue()
- Get the value of the spinner
- Returns:
- the current value for the spinner
setMinValue
public void setMinValue(int min)
- Set the minimum value of the spinner
- Parameters:
- minValue - the minimum value for the spinner
getMinValue
public int getMinValue()
- Get the minimum value of the spinner
- Returns:
- the minimum value for the spinner
setMaxValue
public void setMaxValue(int max)
- Set the maximum value of the spinner
- Parameters:
- maxValue - the maximum value for the spinner
getMaxValue
public int getMaxValue()
- Get the maximum value of the spinner
- Returns:
- the maximum value for the spinner
validate
public void validate()
- Ensures that a component has a valid layout.
- Overrides:
- validate in class Component
update
public void update(Graphics g)
- Updates the component.
- Overrides:
- update in class Component
paint
public synchronized void paint(Graphics g)
- Paints the component.
- Overrides:
- paint in class Component
processMouseEvent
public synchronized void processMouseEvent(MouseEvent me)
- Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
- Overrides:
- processMouseEvent in class Component
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
getMinimumSize
public Dimension getMinimumSize()
- Gets the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index