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 forSwingclients of BAS, so this instance does nothing and just returns null.voidUsesInfranetLocaleManagerto get the list of Infranet locales.mapInfranetLocaleToJavaLocale(String infranetLocale) UsesInfranetLocaleManagerto map Infranet locale to Java Locale.voidUsed only forSwingclients 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:
getLocalesin interfacePLocaleInfoBean- Returns:
- A
Vectorconverted into array ofString. - Throws:
RemoteException
-
getLocaleDescription
Gets the locale description at the specified index when the bean is loaded.- Specified by:
getLocaleDescriptionin interfacePLocaleInfoBean- Parameters:
index- the locale at the specified index- Returns:
- A
Stringthat describes the locale. - Throws:
RemoteException
-
update
Used only forSwingclients of BAS, so this instance does nothing.- Specified by:
updatein 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 forSwingclients of BAS, so this instance does nothing and just returns null.- Specified by:
getSelectionDataForin 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
UsesInfranetLocaleManagerto get the list of Infranet locales.- Specified by:
listOfLocalesin interfacePLocaleInfoBean- Throws:
RemoteException- thrown if the context is null
-
mapInfranetLocaleToJavaLocale
UsesInfranetLocaleManagerto map Infranet locale to Java Locale.- Specified by:
mapInfranetLocaleToJavaLocalein interfacePLocaleInfoBean- Parameters:
Infranet- locale string- Returns:
- A Java
Localethat maps to the given Infranet locale. - Throws:
RemoteException- thrown if the context is null
-