Home » displaytag-1.1.1-src » org » displaytag » properties » [javadoc | source]
org.displaytag.properties
public final class: TableProperties [javadoc | source]
java.lang.Object
   org.displaytag.properties.TableProperties

All Implemented Interfaces:
    Cloneable

The properties used by the Table tags. The properties are loaded in the following order, in increasing order of priority. The locale of getInstance() is used to determine the locale of the property file to use; if the key required does not exist in the specified file, the key will be loaded from a more general property file.
  1. First, from the TableTag.properties included with the DisplayTag distribution.
  2. Then, from the file displaytag.properties, if it is present; these properties are intended to be set by the user for sitewide application. Messages are gathered according to the Locale of the property file.
  3. Finally, if this class has a userProperties defined, all of the properties from that Properties object are copied in as well.
Field Summary
public static final  String DEFAULT_FILENAME    name of the default properties file name ("displaytag.properties"). 
public static final  String LOCAL_PROPERTIES    The name of the local properties file that is searched for on the classpath. Settings in this file will override the defaults loaded from TableTag.properties. 
public static final  String PROPERTY_STRING_EXPORTBANNER    property export.banner
public static final  String PROPERTY_STRING_EXPORTBANNER_SEPARATOR    property export.banner.sepchar
public static final  String PROPERTY_BOOLEAN_EXPORTDECORATED    property export.decorated
public static final  String PROPERTY_STRING_EXPORTAMOUNT    property export.amount
public static final  String PROPERTY_STRING_SORTAMOUNT    property sort.amount
public static final  String PROPERTY_BOOLEAN_SHOWHEADER    property basic.show.header
public static final  String PROPERTY_STRING_EMPTYLIST_MESSAGE    property basic.msg.empty_list
public static final  String PROPERTY_STRING_EMPTYLISTROW_MESSAGE    property basic.msg.empty_list_row
public static final  String PROPERTY_BOOLEAN_EMPTYLIST_SHOWTABLE    property basic.empty.showtable
public static final  String PROPERTY_STRING_BANNER_PLACEMENT    property paging.banner.placement
public static final  String PROPERTY_STRING_PAGING_INVALIDPAGE    property error.msg.invalid_page
public static final  String PROPERTY_STRING_PAGING_ITEM_NAME    property paging.banner.item_name
public static final  String PROPERTY_STRING_PAGING_ITEMS_NAME    property paging.banner.items_name
public static final  String PROPERTY_STRING_PAGING_NOITEMS    property paging.banner.no_items_found
public static final  String PROPERTY_STRING_PAGING_FOUND_ONEITEM    property paging.banner.one_item_found
public static final  String PROPERTY_STRING_PAGING_FOUND_ALLITEMS    property paging.banner.all_items_found
public static final  String PROPERTY_STRING_PAGING_FOUND_SOMEITEMS    property paging.banner.some_items_found
public static final  String PROPERTY_INT_PAGING_GROUPSIZE    property paging.banner.group_size
public static final  String PROPERTY_STRING_PAGING_BANNER_ONEPAGE    property paging.banner.onepage
public static final  String PROPERTY_STRING_PAGING_BANNER_FIRST    property paging.banner.first
public static final  String PROPERTY_STRING_PAGING_BANNER_LAST    property paging.banner.last
public static final  String PROPERTY_STRING_PAGING_BANNER_FULL    property paging.banner.full
public static final  String PROPERTY_STRING_PAGING_PAGE_LINK    property paging.banner.page.link
public static final  String PROPERTY_STRING_PAGING_PAGE_SELECTED    property paging.banner.page.selected
public static final  String PROPERTY_STRING_PAGING_PAGE_SPARATOR    property paging.banner.page.separator
public static final  String PROPERTY_CLASS_REQUESTHELPERFACTORY    property factory.requestHelper
public static final  String PROPERTY_CLASS_DECORATORFACTORY    property factory.decorators
public static final  String PROPERTY_CLASS_LOCALEPROVIDER    property locale.provider
public static final  String PROPERTY_CLASS_LOCALERESOLVER    property locale.resolver
public static final  String PROPERTY_CSS_TR_EVEN    property css.tr.even: holds the name of the css class for even rows. Defaults to even
public static final  String PROPERTY_CSS_TR_ODD    property css.tr.odd: holds the name of the css class for odd rows. Defaults to odd
public static final  String PROPERTY_CSS_TABLE    property css.table: holds the name of the css class added to the main table tag. By default no css class is added. 
public static final  String PROPERTY_CSS_TH_SORTABLE    property css.th.sortable: holds the name of the css class added to the the header of a sortable column. By default no css class is added. 
public static final  String PROPERTY_CSS_TH_SORTED    property css.th.sorted: holds the name of the css class added to the the header of a sorted column. Defaults to sorted
public static final  String PROPERTY_CSS_TH_SORTED_ASCENDING    property css.th.ascending: holds the name of the css class added to the the header of a column sorted in ascending order. Defaults to order1
public static final  String PROPERTY_CSS_TH_SORTED_DESCENDING    property css.th.descending: holds the name of the css class added to the the header of a column sorted in descending order. Defaults to order2
public static final  String PROPERTY_EXPORT_PREFIX    prefix used for all the properties related to export ("export"). The full property name is export. [export type].[property name] 
public static final  String PROPERTY_DECORATOR_SUFFIX    prefix used to set the media decorator property name. The full property name is decorator.media.[export type]
public static final  String PROPERTY_DECORATOR_MEDIA    used to set the media decorator property name. The full property name is decorator.media.[export type] 
public static final  String PROPERTY_EXPORTTYPES    property export.types: holds the list of export available export types. 
public static final  String EXPORTPROPERTY_STRING_LABEL    export property label
public static final  String EXPORTPROPERTY_STRING_CLASS    export property class
public static final  String EXPORTPROPERTY_BOOLEAN_EXPORTHEADER    export property include_header
public static final  String EXPORTPROPERTY_STRING_FILENAME    export property filename
public static final  String PROPERTY_STRING_PAGINATION_SORT_PARAM    Property pagination.sort.param. If external pagination and sorting is used, it holds the name of the parameter used to hold the sort criterion in generated links 
public static final  String PROPERTY_STRING_PAGINATION_SORT_DIRECTION_PARAM    Property pagination.sortdirection.param. If external pagination and sorting is used, it holds the name of the parameter used to hold the sort direction in generated links (asc or desc) 
public static final  String PROPERTY_STRING_PAGINATION_PAGE_NUMBER_PARAM    Property pagination.pagenumber.param. If external pagination and sorting is used, it holds the name of the parameter used to hold the page number in generated links 
public static final  String PROPERTY_STRING_PAGINATION_SEARCH_ID_PARAM    Property pagination.searchid.param. If external pagination and sorting is used, it holds the name of the parameter used to hold the search ID in generated links 
public static final  String PROPERTY_STRING_PAGINATION_ASC_VALUE    Property pagination.sort.asc.value. If external pagination and sorting is used, it holds the value of the parameter of the sort direction parameter for "ascending" 
public static final  String PROPERTY_STRING_PAGINATION_DESC_VALUE    Property pagination.sort.desc.value. If external pagination and sorting is used, it holds the value of the parameter of the sort direction parameter for "descending" 
public static final  String PROPERTY_BOOLEAN_PAGINATION_SKIP_PAGE_NUMBER_IN_SORT    Property pagination.sort.skippagenumber. If external pagination and sorting is used, it determines if the current page number must be added in sort links or not. If this property is true, it means that each click on a generated sort link will re-sort the list, and go back to the default page number. If it is false, each click on a generated sort link will re-sort the list, and ask the current page number. 
public static final  String PROPERTY_DEFAULT_COMPARATOR    Property comparator.default. If present, will use use as the classname of the default comparator. Will be overriden by column level comparators. 
Method from org.displaytag.properties.TableProperties Summary:
clearProperties,   clone,   geResourceProvider,   getAddExport,   getAddPagingBannerBottom,   getAddPagingBannerTop,   getCssOrder,   getCssRow,   getCssSortable,   getCssSorted,   getCssTable,   getDecoratorFactoryInstance,   getDefaultComparator,   getEmptyListMessage,   getEmptyListRowMessage,   getEmptyListShowTable,   getExportBanner,   getExportBannerSeparator,   getExportClass,   getExportDecorated,   getExportDecoratorName,   getExportFileName,   getExportFullList,   getExportHeader,   getExportLabel,   getExportTypes,   getInstance,   getLocale,   getLocaleResolverInstance,   getMediaTypeDecoratorName,   getPaginationAscValue,   getPaginationDescValue,   getPaginationPageNumberParam,   getPaginationSearchIdParam,   getPaginationSkipPageNumberInSort,   getPaginationSortDirectionParam,   getPaginationSortParam,   getPagingBannerFirst,   getPagingBannerFull,   getPagingBannerLast,   getPagingBannerOnePage,   getPagingFoundAllItems,   getPagingFoundNoItems,   getPagingFoundOneItem,   getPagingFoundSomeItems,   getPagingGroupSize,   getPagingInvalidPage,   getPagingItemName,   getPagingItemsName,   getPagingPageLink,   getPagingPageSelected,   getPagingPageSeparator,   getRequestHelperFactoryInstance,   getShowHeader,   getSortFullList,   setLocaleResolver,   setProperty,   setResourceProvider,   setUserProperties
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.properties.TableProperties Detail:
 public static  void clearProperties() 
    Unload all cached properties. This will not clear properties set by by setUserProperties; you must clear those manually.
 protected Object clone() 
    Clones the properties as well.
 public I18nResourceProvider geResourceProvider() 
    Returns the configured resource provider instance. If necessary instantiate the resource provider from config and then keep a cached instance.
 public boolean getAddExport(MediaTypeEnum exportType) 
    Is the given export option enabled?
 public boolean getAddPagingBannerBottom() 
    Should paging banner be added after the table?
 public boolean getAddPagingBannerTop() 
    Should paging banner be added before the table?
 public String getCssOrder(boolean ascending) 
    Returns the appropriate css class for a sorted column header.
 public String getCssRow(int rowNumber) 
    Returns the appropriate css class for a table row.
 public String getCssSortable() 
    Returns the configured css class for a sortable column header.
 public String getCssSorted() 
    Returns the configured css class for a sorted column header.
 public String getCssTable() 
    Returns the configured css class for the main table tag.
 public DecoratorFactory getDecoratorFactoryInstance() throws FactoryInstantiationException 
    Returns an instance of configured DecoratorFactory.
 public Comparator getDefaultComparator() 
 public String getEmptyListMessage() 
    Getter for the PROPERTY_STRING_EMPTYLIST_MESSAGE property.
 public String getEmptyListRowMessage() 
    Getter for the PROPERTY_STRING_EMPTYLISTROW_MESSAGE property.
 public boolean getEmptyListShowTable() 
    Getter for the PROPERTY_BOOLEAN_EMPTYLIST_SHOWTABLE property.
 public String getExportBanner() 
    Getter for the PROPERTY_STRING_EXPORTBANNER property.
 public String getExportBannerSeparator() 
    Getter for the PROPERTY_STRING_EXPORTBANNER_SEPARATOR property.
 public String getExportClass(String exportName) 
    Returns the class responsible for the given export.
 public boolean getExportDecorated() 
    Getter for the PROPERTY_BOOLEAN_EXPORTDECORATED property.
 public String getExportDecoratorName(MediaTypeEnum thatEnum) 
Deprecated! Use - getMediaTypeDecoratorName instead.

    Obtain the name of the decorator configured for a given media type.
 public String getExportFileName(MediaTypeEnum exportType) 
    Returns the file name for the given media. Can be null
 public boolean getExportFullList() 
    Getter for the PROPERTY_STRING_EXPORTAMOUNT property.
 public boolean getExportHeader(MediaTypeEnum exportType) 
    Should headers be included in given export type?
 public String getExportLabel(MediaTypeEnum exportType) 
    Returns the label for the given export option.
 public String[] getExportTypes() 
    Returns the configured list of media.
 public static TableProperties getInstance(HttpServletRequest request) 
    Returns a new TableProperties instance for the given locale.
 public Locale getLocale() 
    The locale for which these properties are intended.
 public static LocaleResolver getLocaleResolverInstance() throws TablePropertiesLoadException 
    Returns the configured Locale Resolver. This method is called before the loading of localized properties.
 public String getMediaTypeDecoratorName(MediaTypeEnum thatEnum) 
    Obtain the name of the decorator configured for a given media type.
 public String getPaginationAscValue() 
 public String getPaginationDescValue() 
 public String getPaginationPageNumberParam() 
 public String getPaginationSearchIdParam() 
 public boolean getPaginationSkipPageNumberInSort() 
 public String getPaginationSortDirectionParam() 
 public String getPaginationSortParam() 
 public String getPagingBannerFirst() 
    Getter for the PROPERTY_STRING_PAGING_BANNER_FIRST property.
 public String getPagingBannerFull() 
    Getter for the PROPERTY_STRING_PAGING_BANNER_FULL property.
 public String getPagingBannerLast() 
    Getter for the PROPERTY_STRING_PAGING_BANNER_LAST property.
 public String getPagingBannerOnePage() 
    Getter for the PROPERTY_STRING_PAGING_BANNER_ONEPAGE property.
 public String getPagingFoundAllItems() 
    Getter for the PROPERTY_STRING_PAGING_FOUND_ALLITEMS property.
 public String getPagingFoundNoItems() 
    Getter for the PROPERTY_STRING_PAGING_NOITEMS property.
 public String getPagingFoundOneItem() 
    Getter for the PROPERTY_STRING_PAGING_FOUND_ONEITEM property.
 public String getPagingFoundSomeItems() 
    Getter for the PROPERTY_STRING_PAGING_FOUND_SOMEITEMS property.
 public int getPagingGroupSize() 
    Getter for the PROPERTY_INT_PAGING_GROUPSIZE property.
 public String getPagingInvalidPage() 
    Getter for the PROPERTY_STRING_PAGING_INVALIDPAGE property.
 public String getPagingItemName() 
    Getter for the PROPERTY_STRING_PAGING_ITEM_NAME property.
 public String getPagingItemsName() 
    Getter for the PROPERTY_STRING_PAGING_ITEMS_NAME property.
 public String getPagingPageLink() 
    Getter for the PROPERTY_STRING_PAGING_PAGE_LINK property.
 public String getPagingPageSelected() 
    Getter for the PROPERTY_STRING_PAGING_PAGE_SELECTED property.
 public String getPagingPageSeparator() 
    Getter for the PROPERTY_STRING_PAGING_PAGE_SPARATOR property.
 public RequestHelperFactory getRequestHelperFactoryInstance() throws FactoryInstantiationException 
    Returns an instance of configured requestHelperFactory.
 public boolean getShowHeader() 
    Getter for the PROPERTY_BOOLEAN_SHOWHEADER property.
 public boolean getSortFullList() 
    Getter for the PROPERTY_STRING_SORTAMOUNT property.
 protected static  void setLocaleResolver(LocaleResolver resolver) 
    Setter for LocaleResolver. A locale resolver is usually set using displaytag properties, this accessor is needed for tests.
 public  void setProperty(String key,
    String value) 
    Sets a property.
 protected static  void setResourceProvider(I18nResourceProvider provider) 
    Setter for I18nResourceProvider. A resource provider is usually set using displaytag properties, this accessor is needed for tests.
 public static  void setUserProperties(Properties overrideProperties) 
    Local, non-default properties; these settings override the defaults from displaytag.properties and TableTag.properties. Please note that the values are copied in, so that multiple calls with non-overlapping properties will be merged, not overwritten. Note: setUserProperties() MUST BE CALLED before the first TableProperties instantation.