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.
-
JDPSpinner()
-
-
JDPSpinner(JDPUser)
-
-
JDPSpinner(JDPUser, int)
-
-
JDPSpinner(JDPUser, String, int)
-
-
getBackground()
-
-
getColumns()
- Get the number of columns for the spinner
-
getEditable()
- Get the editable setting of the spinner
-
getEnabled()
- Get the enabled setting of the spinner
-
getFont()
-
-
getForeground()
-
-
getMaxValue()
- Get the maximum value of the spinner
-
getMinValue()
- Get the minimum value of the spinner
-
getText()
- Get the value of the spinner
-
getValue()
- Get the value of the spinner
-
handleEvent(Event)
-
-
setBackground(Color)
-
-
setEditable(boolean)
- Set the editable setting of the spinner
-
setEnabled(boolean)
- Set the enabled setting of the spinner
-
setFont(Font)
-
-
setForeground(Color)
-
-
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
JDPSpinner
public JDPSpinner()
JDPSpinner
public JDPSpinner(JDPUser user)
JDPSpinner
public JDPSpinner(JDPUser user,
int width)
JDPSpinner
public JDPSpinner(JDPUser user,
String initValue,
int width)
getColumns
public int getColumns()
- Get the number of columns for the spinner
- Returns:
- the number of columns for the spinner
setFont
public void setFont(Font thisFont)
- Overrides:
- setFont in class Component
getFont
public Font getFont()
- Overrides:
- getFont in class Component
setBackground
public void setBackground(Color thisColor)
- Overrides:
- setBackground in class Component
getBackground
public Color getBackground()
- Overrides:
- getBackground in class Component
setForeground
public void setForeground(Color thisColor)
- Overrides:
- setForeground in class Component
getForeground
public Color getForeground()
- Overrides:
- getForeground in class Component
setText
public void setText(String newValue)
- 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:
- newValue the new 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
setEditable
public void setEditable(boolean editable)
- Set the editable setting of the spinner
- Parameters:
- editable - the editable setting for the spinner
getEditable
public boolean getEditable()
- Get the editable setting of the spinner
- Returns:
- the editable setting for the spinner
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
getEnabled
public boolean getEnabled()
- Get the enabled setting of the spinner
- Returns:
- the enabled setting for the spinner
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component