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.


Constructor Index

 o Spinner()
 o Spinner(int)
 o Spinner(int, int)

Method Index

 o addActionListener(ActionListener)
 o addAdjustmentListener(AdjustmentListener)
 o adjustmentValueChanged(AdjustmentEvent)
 o getMaxValue()
Get the maximum value of the spinner
 o getMinimumSize()
Gets the minimum size of this component.
 o getMinValue()
Get the minimum value of the spinner
 o getText()
Get the value of the spinner
 o getValue()
Get the value of the spinner
 o paint(Graphics)
Paints the component.
 o processMouseEvent(MouseEvent)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
 o removeActionListener(ActionListener)
 o removeAdjustmentListener(AdjustmentListener)
 o setMaxValue(int)
Set the maximum value of the spinner
 o setMinValue(int)
Set the minimum value of the spinner
 o setText(String)
Set the value of the spinner
 o setValue(int)
Set the value of the spinner
 o update(Graphics)
Updates the component.
 o validate()
Ensures that a component has a valid layout.

Constructors

 o Spinner
 public Spinner()
 o Spinner
 public Spinner(int width)
 o Spinner
 public Spinner(int initValue,
                int width)

Methods

 o addAdjustmentListener
 public void addAdjustmentListener(AdjustmentListener al)
 o removeAdjustmentListener
 public void removeAdjustmentListener(AdjustmentListener al)
 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o setText
 public void setText(String text)
Set the value of the spinner

Parameters:
newValue - the new value for the spinner
 o getText
 public String getText()
Get the value of the spinner

Returns:
the current value for the spinner
 o setValue
 public void setValue(int newValue)
Set the value of the spinner

Parameters:
newValue - the new value for the spinner
 o getValue
 public int getValue()
Get the value of the spinner

Returns:
the current value for the spinner
 o setMinValue
 public void setMinValue(int min)
Set the minimum value of the spinner

Parameters:
minValue - the minimum value for the spinner
 o getMinValue
 public int getMinValue()
Get the minimum value of the spinner

Returns:
the minimum value for the spinner
 o setMaxValue
 public void setMaxValue(int max)
Set the maximum value of the spinner

Parameters:
maxValue - the maximum value for the spinner
 o getMaxValue
 public int getMaxValue()
Get the maximum value of the spinner

Returns:
the maximum value for the spinner
 o validate
 public void validate()
Ensures that a component has a valid layout.

Overrides:
validate in class Component
 o update
 public void update(Graphics g)
Updates the component.

Overrides:
update in class Component
 o paint
 public synchronized void paint(Graphics g)
Paints the component.

Overrides:
paint in class Component
 o 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
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o 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