ilog.views.appframe.settings
Class LocaleSettingsEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.appframe.settings.LocaleSettingsEvent
All Implemented Interfaces:
Serializable

public class LocaleSettingsEvent
extends EventObject

The locale settings change event emitted by the application when parameters associated with the locale of the application have changed.

See Also:
LocaleSettingsListener, Serialized Form

Field Summary
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.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LocaleSettingsEvent(int id, IlvApplication application)
          Constructs a LocaleSettingsEvent object with the specified id and application source.
 
Method Summary
 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.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCALE_FIRST

public static final int LOCALE_FIRST
The first number in the range of IDs used for locale settings events.

See Also:
Constant Field Values

LOCALE_CHANGED

public static final int LOCALE_CHANGED
This event indicates that the locale of the application has changed.

See Also:
Constant Field Values

RESOURCE_BUNDLE_ADDED

public static final int RESOURCE_BUNDLE_ADDED
This event indicates that a resource bundle has been added to the application for the current locale.

See Also:
Constant Field Values

RESOURCE_BUNDLE_REMOVED

public static final int RESOURCE_BUNDLE_REMOVED
This event indicates that a resource bundle has been removed from the application for the current locale.

See Also:
Constant Field Values

RESOURCE_BUNDLE_MANAGER_CHANGED

public static final int RESOURCE_BUNDLE_MANAGER_CHANGED
This event indicates that the resource bundle manager of the application has changed.

See Also:
Constant Field Values

LOCALE_LAST

public static final int LOCALE_LAST
The last number in the range of IDs used for locale settings events.

See Also:
Constant Field Values
Constructor Detail

LocaleSettingsEvent

public LocaleSettingsEvent(int id,
                           IlvApplication application)
Constructs a LocaleSettingsEvent object with the specified id and application source.

Parameters:
id - The ID of the locale settings event.
application - The application that has originated the event.
Method Detail

getID

public int getID()
Returns the event type. The returned value can be one of the following:


getLocale

public Locale getLocale()
Returns the current locale of the application.


getApplication

public IlvApplication getApplication()
Returns the application.


getResourceBundle

public 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.

See Also:
setResourceBundle(java.util.ResourceBundle), RESOURCE_BUNDLE_ADDED, RESOURCE_BUNDLE_REMOVED

setResourceBundle

public 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.

Parameters:
bundle - The resource bundle that has been added or removed.
See Also:
getResourceBundle(), RESOURCE_BUNDLE_ADDED, RESOURCE_BUNDLE_REMOVED


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.