public class PLocaleInfoBeanImpl extends PControllerImpl implements PLocaleInfoBean, Serializable
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PLocaleInfoBeanImpl()
Creates a controller for retrieving Infranet locales.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocaleDescription(int index)
Gets the locale description at the specified index when the bean is loaded.
|
String[] |
getLocales()
Gets a list of the available locales when the bean is loaded.
|
Object |
getSelectionDataFor(String dataItem,
int index)
Used only for
Swing clients of BAS,
so this instance does nothing and just returns null. |
void |
listOfLocales()
Uses
InfranetLocaleManager to get the list of Infranet locales. |
Locale |
mapInfranetLocaleToJavaLocale(String infranetLocale)
Uses
InfranetLocaleManager to map Infranet locale to Java Locale. |
void |
update(int reason,
Object data)
Used only for
Swing clients of BAS,
so this instance does nothing. |
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
public PLocaleInfoBeanImpl() throws RemoteException
RemoteException
public String[] getLocales() throws RemoteException
getLocales
in interface PLocaleInfoBean
Vector
converted into array of String
.RemoteException
public String getLocaleDescription(int index) throws RemoteException
getLocaleDescription
in interface PLocaleInfoBean
index
- the locale at the specified indexString
that describes the locale.RemoteException
public void update(int reason, Object data)
Swing
clients of BAS,
so this instance does nothing.update
in class PControllerImpl
reason
- an integer constant that indicates the reason for the update
(UPDATE_NEW_MODEL
, UPDATE_PROPERTY
,
UPDATE_MODEL_CHANGE
, or UPDATE_CLIENT
)data
- the data associated with update
public Object getSelectionDataFor(String dataItem, int index)
Swing
clients of BAS,
so this instance does nothing and just returns null.getSelectionDataFor
in interface PControllerBean
dataItem
- the name of a data item. Must match the name of
an item changed by sending a PViewDataChangeEvent
.index
- an optional index into an array data itempublic void listOfLocales() throws RemoteException
InfranetLocaleManager
to get the list of Infranet locales.listOfLocales
in interface PLocaleInfoBean
RemoteException
- thrown if the context is nullpublic Locale mapInfranetLocaleToJavaLocale(String infranetLocale) throws RemoteException
InfranetLocaleManager
to map Infranet locale to Java Locale.mapInfranetLocaleToJavaLocale
in interface PLocaleInfoBean
Infranet
- locale stringLocale
that maps to the given Infranet locale.RemoteException
- thrown if the context is nullCopyright © 2003, 2023, Oracle and/or its affiliates.