Class PLocaleInfoBeanImpl

java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PLocaleInfoBeanImpl
All Implemented Interfaces:
PControllerBean, PLocaleInfoBean, Serializable, Remote, Unreferenced

public class PLocaleInfoBeanImpl extends PControllerImpl implements PLocaleInfoBean, Serializable
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:
  • Constructor Details

    • PLocaleInfoBeanImpl

      public PLocaleInfoBeanImpl() throws RemoteException
      Creates a controller for retrieving Infranet locales.
      Throws:
      RemoteException
  • Method Details

    • getLocales

      public String[] getLocales() throws RemoteException
      Gets a list of the available locales when the bean is loaded.
      Specified by:
      getLocales in interface PLocaleInfoBean
      Returns:
      A Vector converted into array of String.
      Throws:
      RemoteException
    • getLocaleDescription

      public String getLocaleDescription(int index) throws RemoteException
      Gets the locale description at the specified index when the bean is loaded.
      Specified by:
      getLocaleDescription in interface PLocaleInfoBean
      Parameters:
      index - the locale at the specified index
      Returns:
      A String that describes the locale.
      Throws:
      RemoteException
    • update

      public void update(int reason, Object data)
      Used only for Swing clients of BAS, so this instance does nothing.
      Specified by:
      update in class PControllerImpl
      Parameters:
      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
    • getSelectionDataFor

      public Object getSelectionDataFor(String dataItem, int index)
      Used only for Swing clients of BAS, so this instance does nothing and just returns null.
      Specified by:
      getSelectionDataFor in interface PControllerBean
      Parameters:
      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 item
      Returns:
      Usually, a model handle or array of model handles.
    • listOfLocales

      public void listOfLocales() throws RemoteException
      Uses InfranetLocaleManager to get the list of Infranet locales.
      Specified by:
      listOfLocales in interface PLocaleInfoBean
      Throws:
      RemoteException - thrown if the context is null
    • mapInfranetLocaleToJavaLocale

      public Locale mapInfranetLocaleToJavaLocale(String infranetLocale) throws RemoteException
      Uses InfranetLocaleManager to map Infranet locale to Java Locale.
      Specified by:
      mapInfranetLocaleToJavaLocale in interface PLocaleInfoBean
      Parameters:
      Infranet - locale string
      Returns:
      A Java Locale that maps to the given Infranet locale.
      Throws:
      RemoteException - thrown if the context is null