org.stellarium.ui
Class STUI.TimeZoneItem
java.lang.Object
java.awt.event.KeyAdapter
org.stellarium.ui.STUI.Component
org.stellarium.ui.STUI.CallbackComponent
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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
-