Package com.portal.web.comp
Class PLocaleInfoBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PLocaleInfoBeanImpl
- All Implemented Interfaces:
PControllerBean
,PLocaleInfoBean
,Serializable
,Remote
,Unreferenced
A controller that retrieves the locales supported by Infranet.
- Version:
- %version: 8 % %date_modified: Thu Feb 07 10:19:08 2002 %
- Author:
- sujata
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocaleDescription
(int index) Gets the locale description at the specified index when the bean is loaded.String[]
Gets a list of the available locales when the bean is loaded.getSelectionDataFor
(String dataItem, int index) Used only forSwing
clients of BAS, so this instance does nothing and just returns null.void
UsesInfranetLocaleManager
to get the list of Infranet locales.mapInfranetLocaleToJavaLocale
(String infranetLocale) UsesInfranetLocaleManager
to map Infranet locale to Java Locale.void
Used only forSwing
clients of BAS, so this instance does nothing.Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
-
Constructor Details
-
PLocaleInfoBeanImpl
Creates a controller for retrieving Infranet locales.- Throws:
RemoteException
-
-
Method Details
-
getLocales
Gets a list of the available locales when the bean is loaded.- Specified by:
getLocales
in interfacePLocaleInfoBean
- Returns:
- A
Vector
converted into array ofString
. - Throws:
RemoteException
-
getLocaleDescription
Gets the locale description at the specified index when the bean is loaded.- Specified by:
getLocaleDescription
in interfacePLocaleInfoBean
- Parameters:
index
- the locale at the specified index- Returns:
- A
String
that describes the locale. - Throws:
RemoteException
-
update
Used only forSwing
clients of BAS, so this instance does nothing.- Specified by:
update
in classPControllerImpl
- Parameters:
reason
- an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL
,UPDATE_PROPERTY
,UPDATE_MODEL_CHANGE
, orUPDATE_CLIENT
)data
- the data associated withupdate
-
getSelectionDataFor
Used only forSwing
clients of BAS, so this instance does nothing and just returns null.- Specified by:
getSelectionDataFor
in interfacePControllerBean
- Parameters:
dataItem
- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent
.index
- an optional index into an array data item- Returns:
- Usually, a model handle or array of model handles.
-
listOfLocales
UsesInfranetLocaleManager
to get the list of Infranet locales.- Specified by:
listOfLocales
in interfacePLocaleInfoBean
- Throws:
RemoteException
- thrown if the context is null
-
mapInfranetLocaleToJavaLocale
UsesInfranetLocaleManager
to map Infranet locale to Java Locale.- Specified by:
mapInfranetLocaleToJavaLocale
in interfacePLocaleInfoBean
- Parameters:
Infranet
- locale string- Returns:
- A Java
Locale
that maps to the given Infranet locale. - Throws:
RemoteException
- thrown if the context is null
-