org.stellarium.ui.components
Class StringList

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by org.stellarium.ui.components.StellariumComponent
          extended by org.stellarium.ui.components.CallbackComponent
              extended by org.stellarium.ui.components.StringList
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class StringList
extends CallbackComponent

ClicList


Nested Class Summary
 
Nested classes/interfaces inherited from class org.stellarium.ui.components.StellariumComponent
StellariumComponent.S_GUI_VALUE
 
Field Summary
private  java.lang.String current
           
private  int elemsSize
           
private  java.util.LinkedList<java.lang.String> items
           
private  int itemSize
           
 
Fields inherited from class org.stellarium.ui.components.CallbackComponent
isMouseOver, onMouseInOutCallback, onPressCallback
 
Fields inherited from class org.stellarium.ui.components.StellariumComponent
active, defaultPainter, desktop, focus, focusing, guiBaseColor, guiColorSchemeMember, guiTextColor, moveToFront, needNewTopEdit, painter, pos, scissor, size, type, visible
 
Constructor Summary
StringList()
           
 
Method Summary
 void addItem(java.lang.String newitem)
           
 void adjustSize()
           
 void draw()
           
 java.lang.String getValue()
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 boolean setValue(java.lang.String s)
           
 
Methods inherited from class org.stellarium.ui.components.CallbackComponent
callbackOnClic, callbackOnMove, getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getSize, getSizeX, getSizeY, getVisible, mouseClicked, mouseMoved, setActive, setFocus, setFont, setOnMouseInOutCallback, setOnPressCallback, setPos, setPos, setPosx, setPosy, setSize, setSize, setSizeX, setSizey, setTexture, setVisible
 
Methods inherited from class org.stellarium.ui.components.StellariumComponent
deleteScissor, disableScissor, enableScissor, getFont, getNeedNewEdit, getType, inFront, initScissor, isIn, keyPressed, mouseDragged, mouseEntered, mouseExited, mouseReleased, mouseWheelMoved, reshape, reshape, setBaseColor, setColorScheme, setDefaultPainter, setGUIColorSchemeMember, setInFront, setNeedNewEdit, setOpaque, setPainter, setTextColor
 
Methods inherited from class java.awt.event.KeyAdapter
keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elemsSize

private int elemsSize

itemSize

private int itemSize

items

private java.util.LinkedList<java.lang.String> items

current

private java.lang.String current
Constructor Detail

StringList

public StringList()
Method Detail

draw

public void draw()
Specified by:
draw in class StellariumComponent

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class StellariumComponent

addItem

public void addItem(java.lang.String newitem)

getValue

public java.lang.String getValue()

setValue

public boolean setValue(java.lang.String s)

adjustSize

public void adjustSize()