org.stellarium.ui.components
Class TimeZoneItem

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.StelContainer
                  extended by org.stellarium.ui.components.TimeZoneItem
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class TimeZoneItem
extends StelContainer

Widget used to set time zone. Initialized from a file of Type /usr/share/zoneinfo/zone.tab


Nested Class Summary
 
Nested classes/interfaces inherited from class org.stellarium.ui.components.StellariumComponent
StellariumComponent.S_GUI_VALUE
 
Field Summary
protected  java.util.Map<java.lang.String,StringList> continents
           
protected  StringList continentsNames
           
protected  StringList currentEdit
           
protected  StringList lb
           
 
Fields inherited from class org.stellarium.ui.components.StelContainer
childs
 
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
TimeZoneItem(java.lang.String zonetabFile)
          Builds a new TimeZoneItem
 
Method Summary
 void draw()
           
(package private)  java.lang.String gettz()
           
(package private)  void onCityClic()
           
(package private)  void onContinentClic()
           
(package private)  void setTz(java.lang.String tz)
           
 
Methods inherited from class org.stellarium.ui.components.StelContainer
addComponent, Filleddraw, keyPressed, mouseClicked, mouseMoved, removeAllComponents, removeComponent, setColorScheme, setFocus
 
Methods inherited from class org.stellarium.ui.components.CallbackComponent
callbackOnClic, callbackOnMove, getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getSize, getSizeX, getSizeY, getVisible, setActive, 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, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved, reshape, reshape, setBaseColor, 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

continentsNames

protected StringList continentsNames

continents

protected java.util.Map<java.lang.String,StringList> continents

currentEdit

protected StringList currentEdit

lb

protected StringList lb
Constructor Detail

TimeZoneItem

TimeZoneItem(java.lang.String zonetabFile)
       throws StellariumException
Builds a new TimeZoneItem

Parameters:
zonetabFile - The file name
Throws:
StellariumException - If the file name is empty, or if the file could not be read
Method Detail

draw

public void draw()
Overrides:
draw in class StelContainer

gettz

java.lang.String gettz()

setTz

void setTz(java.lang.String tz)

onContinentClic

void onContinentClic()

onCityClic

void onCityClic()