All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.l2f.gui.Spinner

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----fr.l2f.gui.Spinner

public abstract class Spinner
extends Panel

Variable Index

 o current
 o increment
 o max
 o min
 o ORIENTATION_DEFAULT
 o ORIENTATION_HORIZONTAL
 o ORIENTATION_VERTICAL
 o text
 o textField
 o textWidth

Constructor Index

 o Spinner()
Construct an empty Spinner

Method Index

 o addNotify()
Called when the Spinner is added to the Container setup
 o getCurrent()
 o getCurrentText()
 o getEditable()
Is the Spinner's TextField editable?
 o getMax()
 o getMin()
 o getOrientation()
 o getWrappable()
 o processKeyEvent(KeyEvent)
 o scrollDown()
 o scrollUp()
 o setCurrent(int)
 o setEditable(boolean)
Allow/Disallow editing of the Spinner's TextField
 o setLayout(LayoutManager)
 o setMax(int)
 o setMin(int)
 o setOrientation(int)
 o setWrappable(boolean)
 o updateText()

Variables

 o ORIENTATION_VERTICAL
 public final int ORIENTATION_VERTICAL
 o ORIENTATION_HORIZONTAL
 public final int ORIENTATION_HORIZONTAL
 o ORIENTATION_DEFAULT
 public final int ORIENTATION_DEFAULT
 o min
 protected int min
 o max
 protected int max
 o current
 protected int current
 o text
 protected String text
 o textWidth
 protected int textWidth
 o textField
 protected TextField textField
 o increment
 protected int increment

Constructors

 o Spinner
 protected Spinner()
Construct an empty Spinner

Methods

 o setEditable
 public void setEditable(boolean f)
Allow/Disallow editing of the Spinner's TextField

Parameters:
boolean - f true = allow editing; false = disallow editing
 o getEditable
 public boolean getEditable()
Is the Spinner's TextField editable?

Returns:
boolean true = TextField can be edited; false = TextField cannot be edited
 o setWrappable
 public void setWrappable(boolean f)
 o getWrappable
 public boolean getWrappable()
 o setMin
 public void setMin(int i)
 o getMin
 public int getMin()
 o setMax
 public void setMax(int i)
 o getMax
 public int getMax()
 o setCurrent
 public void setCurrent(int i)
 o getCurrent
 public int getCurrent()
 o setOrientation
 public void setOrientation(int o)
 o getOrientation
 public int getOrientation()
 o processKeyEvent
 public void processKeyEvent(KeyEvent e)
Overrides:
processKeyEvent in class Component
 o addNotify
 public void addNotify()
Called when the Spinner is added to the Container setup

Overrides:
addNotify in class Panel
 o scrollUp
 protected void scrollUp()
 o scrollDown
 protected void scrollDown()
 o updateText
 protected void updateText()
 o getCurrentText
 protected abstract String getCurrentText()
 o setLayout
 public void setLayout(LayoutManager lm)
Overrides:
setLayout in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index