org.stellarium.ui
Class STUI.IntegerItem

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by org.stellarium.ui.STUI.Component
          extended by org.stellarium.ui.STUI.CallbackComponent
              extended by org.stellarium.ui.STUI.SInteger
                  extended by org.stellarium.ui.STUI.IntegerItem
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener
Enclosing class:
STUI

static class STUI.IntegerItem
extends STUI.SInteger

SInteger item widget. The Callback function is called when the value is changed


Field Summary
protected  java.lang.String label
           
protected  int mmax
           
protected  int mmin
           
protected  boolean numInput
           
protected  java.lang.String strInput
           
 
Fields inherited from class org.stellarium.ui.STUI.SInteger
value
 
Fields inherited from class org.stellarium.ui.STUI.CallbackComponent
onChangeCallback
 
Fields inherited from class org.stellarium.ui.STUI.Component
active
 
Constructor Summary
STUI.IntegerItem(int someMin, int someMax, int initValue)
           
STUI.IntegerItem(int someMin, int someMax, int initValue, java.lang.String someLabel)
           
 
Method Summary
 java.lang.String getString()
          white is hilight
(package private)  boolean isEditable()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 
Methods inherited from class org.stellarium.ui.STUI.SInteger
getValue, setValue
 
Methods inherited from class org.stellarium.ui.STUI.CallbackComponent
keyReleased, keyTyped, setOnChangeCallback
 
Methods inherited from class org.stellarium.ui.STUI.Component
getActive, getCleanString, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numInput

protected boolean numInput

strInput

protected java.lang.String strInput

mmin

protected int mmin

mmax

protected int mmax

label

protected java.lang.String label
Constructor Detail

STUI.IntegerItem

STUI.IntegerItem(int someMin,
                 int someMax,
                 int initValue)

STUI.IntegerItem

STUI.IntegerItem(int someMin,
                 int someMax,
                 int initValue,
                 java.lang.String someLabel)
Method Detail

isEditable

boolean isEditable()
Overrides:
isEditable in class STUI.Component

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class STUI.Component

getString

public java.lang.String getString()
Description copied from class: STUI.Component
white is hilight

Overrides:
getString in class STUI.Component