com.toedter.components

Class JLocaleChooser

Implemented Interfaces:
ItemListener

public class JLocaleChooser
extends JComboBox
implements ItemListener

JLocaleChooser is a bean for choosing locales.
Version:
$LastChangedRevision: 85 $, $LastChangedDate: 2006-04-28 13:50:52 +0200 (Fr, 28 Apr 2006) $
Author:
Kai Toedter

Field Summary

protected JComponent
component

Constructor Summary

JLocaleChooser()
Default JLocaleChooser constructor.
JLocaleChooser(JComponent component)
Default JLocaleChooser constructor.

Method Summary

Locale
getLocale()
Returns the locale.
String
getName()
Returns "JLocaleChoose".
void
itemStateChanged(ItemEvent iEvt)
The ItemListener for the locales.
static void
main(String[] s)
Creates a JFrame with a JLocaleChooser inside and can be used for testing.
void
setLocale(Locale l)
Sets the locale.

Field Details

component

protected JComponent component

Constructor Details

JLocaleChooser

public JLocaleChooser()
Default JLocaleChooser constructor.

JLocaleChooser

public JLocaleChooser(JComponent component)
Default JLocaleChooser constructor.

Method Details

getLocale

public Locale getLocale()
Returns the locale.

getName

public String getName()
Returns "JLocaleChoose".
Returns:
the name value

itemStateChanged

public void itemStateChanged(ItemEvent iEvt)
The ItemListener for the locales.

main

public static void main(String[] s)
Creates a JFrame with a JLocaleChooser inside and can be used for testing.

setLocale

public void setLocale(Locale l)
Sets the locale. This is a bound property.

Copyright B) 1999 - 2009 Kai Toedter.