wabadma.ui
Class NumericLabel

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Label
              |
              +--wabadma.ui.NumericLabel

public class NumericLabel
extends waba.ui.Label

A waba label control extended with methods to get and set int values. No attempt to validate the values is (yet) done.

Version:
0.1, 2000 Nov 10
Author:
David M. Archer

Fields inherited from class waba.ui.Label
CENTER, LEFT, RIGHT
 
Fields inherited from class waba.ui.Control
height, next, parent, prev, width, x, y
 
Constructor Summary
NumericLabel(int i)
          construct a new NumericLabel with an int
 
Method Summary
 int getInt()
          get the int value of the control.
 void setInt(int i)
          set the control to the value of an int.
 
Methods inherited from class waba.ui.Label
getText, onPaint, setText
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getFontMetrics, getNext, getParent, getRect, onEvent, postEvent, removeTimer, repaint, setRect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericLabel

public NumericLabel(int i)
construct a new NumericLabel with an int
Method Detail

getInt

public int getInt()
get the int value of the control.

setInt

public void setInt(int i)
set the control to the value of an int.
Parameters:
i - value to set control to