org.stellarium.ui
Class STUI.TimeZoneItem

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.TimeZoneItem
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener
Enclosing class:
STUI

static class STUI.TimeZoneItem
extends STUI.CallbackComponent

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


Field Summary
protected  java.util.Map<java.lang.String,STUI.MultiSetItem> continents
           
protected  STUI.MultiSetItem continentsNames
           
protected  STUI.MultiSetItem currentEdit
           
protected  java.lang.String label
           
 
Fields inherited from class org.stellarium.ui.STUI.CallbackComponent
onChangeCallback
 
Fields inherited from class org.stellarium.ui.STUI.Component
active
 
Constructor Summary
STUI.TimeZoneItem(java.lang.String zonetabFile, java.lang.String someLabel)
          Builds a new TimeZoneItem
 
Method Summary
 java.lang.String getString()
          white is hilight
(package private)  java.lang.String gettz()
           
(package private)  boolean isEditable()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
(package private)  void settz(java.lang.String tz)
           
 
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

continentsNames

protected STUI.MultiSetItem continentsNames

continents

protected java.util.Map<java.lang.String,STUI.MultiSetItem> continents

label

protected java.lang.String label

currentEdit

protected STUI.MultiSetItem currentEdit
Constructor Detail

STUI.TimeZoneItem

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

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

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

gettz

java.lang.String gettz()

settz

void settz(java.lang.String tz)

isEditable

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