public class LocaleSettingsEvent extends EventObject
LocaleSettingsListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
COMPONENT_ORIENTATION_CHANGED
This event indicates that the component orientation of the
application has changed.
|
static int |
LOCALE_CHANGED
This event indicates that the locale of the application has changed.
|
static int |
LOCALE_FIRST
The first number in the range of IDs used for locale settings events.
|
static int |
LOCALE_LAST
The last number in the range of IDs used for locale settings events.
|
static int |
RESOURCE_BUNDLE_ADDED
This event indicates that a resource bundle has been added to the
application for the current locale.
|
static int |
RESOURCE_BUNDLE_MANAGER_CHANGED
This event indicates that the resource bundle manager of the
application has changed.
|
static int |
RESOURCE_BUNDLE_REMOVED
This event indicates that a resource bundle has been removed from the
application for the current locale.
|
source
Constructor and Description |
---|
LocaleSettingsEvent(int id,
IlvApplication application)
Constructs a
LocaleSettingsEvent object with the specified
id and application source. |
Modifier and Type | Method and Description |
---|---|
IlvApplication |
getApplication()
Returns the application.
|
int |
getID()
Returns the event type.
|
Locale |
getLocale()
Returns the current locale of the application.
|
ResourceBundle |
getResourceBundle()
Returns the resource bundle associated with the event, if the event is
related to the addition or the removal of the resource bundle.
|
void |
setResourceBundle(ResourceBundle bundle)
Sets the resource bundle associated with the event, if the event is
related to the addition or the removal of the resource bundle.
|
getSource, toString
public static final int LOCALE_FIRST
public static final int LOCALE_CHANGED
public static final int RESOURCE_BUNDLE_ADDED
public static final int RESOURCE_BUNDLE_REMOVED
public static final int RESOURCE_BUNDLE_MANAGER_CHANGED
public static final int COMPONENT_ORIENTATION_CHANGED
public static final int LOCALE_LAST
public LocaleSettingsEvent(int id, IlvApplication application)
LocaleSettingsEvent
object with the specified
id
and application
source.id
- The ID of the locale settings event.application
- The application that has originated the event.public int getID()
public Locale getLocale()
public IlvApplication getApplication()
public ResourceBundle getResourceBundle()
public void setResourceBundle(ResourceBundle bundle)
bundle
- The resource bundle that has been added or removed.getResourceBundle()
,
RESOURCE_BUNDLE_ADDED
,
RESOURCE_BUNDLE_REMOVED
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.