Class JDPSpinner

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPSpinner

public class JDPSpinner
extends Panel
Class JDPSpinner represents a textfield with spinner buttons.


Constructor Index

 o JDPSpinner()
 o JDPSpinner(JDPUser)
 o JDPSpinner(JDPUser, int)
 o JDPSpinner(JDPUser, String, int)

Method Index

 o getBackground()
 o getColumns()
Get the number of columns for the spinner
 o getEditable()
Get the editable setting of the spinner
 o getEnabled()
Get the enabled setting of the spinner
 o getFont()
 o getForeground()
 o getMaxValue()
Get the maximum value of the spinner
 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 handleEvent(Event)
 o setBackground(Color)
 o setEditable(boolean)
Set the editable setting of the spinner
 o setEnabled(boolean)
Set the enabled setting of the spinner
 o setFont(Font)
 o setForeground(Color)
 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

Constructors

 o JDPSpinner
 public JDPSpinner()
 o JDPSpinner
 public JDPSpinner(JDPUser user)
 o JDPSpinner
 public JDPSpinner(JDPUser user,
                   int width)
 o JDPSpinner
 public JDPSpinner(JDPUser user,
                   String initValue,
                   int width)

Methods

 o getColumns
 public int getColumns()
Get the number of columns for the spinner

Returns:
the number of columns for the spinner
 o setFont
 public void setFont(Font thisFont)
Overrides:
setFont in class Component
 o getFont
 public Font getFont()
Overrides:
getFont in class Component
 o setBackground
 public void setBackground(Color thisColor)
Overrides:
setBackground in class Component
 o getBackground
 public Color getBackground()
Overrides:
getBackground in class Component
 o setForeground
 public void setForeground(Color thisColor)
Overrides:
setForeground in class Component
 o getForeground
 public Color getForeground()
Overrides:
getForeground in class Component
 o setText
 public void setText(String newValue)
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:
newValue the new 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 setEditable
 public void setEditable(boolean editable)
Set the editable setting of the spinner

Parameters:
editable - the editable setting for the spinner
 o getEditable
 public boolean getEditable()
Get the editable setting of the spinner

Returns:
the editable setting for the spinner
 o setEnabled
 public void setEnabled(boolean enabled)
Set the enabled setting of the spinner

Parameters:
enabled - the enabled setting for the spinner
Overrides:
setEnabled in class Component
 o getEnabled
 public boolean getEnabled()
Get the enabled setting of the spinner

Returns:
the enabled setting for the spinner
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component