com.sas.swing.visuals.dataselectors.format
Interface FormatAdapterInterface


public interface FormatAdapterInterface

This adapter is used by Format selectors.


Method Summary
 java.util.List getFormatByType(java.lang.Object formatCategory, java.util.Locale locale)
          Get a list of format descriptions corresponding to the format category and locale specified.
 java.util.Map getFormatTypes(int dataType, java.util.Locale locale)
          Get a map of format types corresponding to the data type and locale specified.
 

Method Detail

getFormatTypes

java.util.Map getFormatTypes(int dataType,
                             java.util.Locale locale)
Get a map of format types corresponding to the data type and locale specified.

Parameters:
dataType - the java.sql.Types value for which the format map is needed.
locale - the locale to be used for the displayable strings.
Returns:
a Map: the key of each entry is a format category which can be used in getFormatByType(Object, Locale); the value of each entry is a locale specific string.
Throws:
java.lang.IllegalArgumentException - if the dataType or locale specified is not supported
java.lang.IllegalStateException - if there are problems with the underlying model

getFormatByType

java.util.List getFormatByType(java.lang.Object formatCategory,
                               java.util.Locale locale)
Get a list of format descriptions corresponding to the format category and locale specified.

Parameters:
dataType - the format category as described in getFormatTypes(int, Locale)
locale - the locale to be used for the information in the format descriptions.
Returns:
a List of format description objects
Throws:
java.lang.IllegalArgumentException - if the format category or locale specified is not supported
java.lang.IllegalStateException - if there are problems with the underlying model



Copyright © 2009 SAS Institute Inc. All Rights Reserved.