[displaytag-cvs] displaytag/src/main/java/org/displaytag/properties TableProperties.java,1.38,1.39
Brought to you by:
fgiust
|
From: fabrizio g. <fg...@us...> - 2005-10-16 20:35:01
|
Update of /cvsroot/displaytag/displaytag/src/main/java/org/displaytag/properties In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18315/src/main/java/org/displaytag/properties Modified Files: TableProperties.java Log Message: committing DISPL-245 WYSIWYG Exports - from Jorge L. Barroso + some changes and fixes Index: TableProperties.java =================================================================== RCS file: /cvsroot/displaytag/displaytag/src/main/java/org/displaytag/properties/TableProperties.java,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** TableProperties.java 3 Sep 2005 17:53:30 -0000 1.38 --- TableProperties.java 16 Oct 2005 20:34:39 -0000 1.39 *************** *** 257,260 **** --- 257,266 ---- /** + * suffix used to set the export decorator property name. The full property name is <code>export.</code> + * <em>[export type]</em><code>.</code><em>decorator</em> + */ + public static final String PROPERTY_EXPORT_DECORATOR_SUFFIX = "decorator"; //$NON-NLS-1$ + + /** * property <code>export.types</code>: holds the list of export available export types. */ *************** *** 288,350 **** // <JBN> /** ! * Property <code>pagination.sort.param</code>. 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_PARAM = ! "pagination.sort.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sortdirection.param</code>. 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_SORT_DIRECTION_PARAM = ! "pagination.sortdirection.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.pagenumber.param</code>. 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_PAGE_NUMBER_PARAM = ! "pagination.pagenumber.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.searchid.param</code>. 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_SEARCH_ID_PARAM = ! "pagination.searchid.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sort.asc.value</code>. 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_ASC_VALUE = ! "pagination.sort.asc.value"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sort.desc.value</code>. 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_STRING_PAGINATION_DESC_VALUE = ! "pagination.sort.desc.value"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sort.skippagenumber</code>. 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_BOOLEAN_PAGINATION_SKIP_PAGE_NUMBER_IN_SORT = ! "pagination.sort.skippagenumber"; //$NON-NLS-1$ // </JBN> ! /** * Separator char used in property names. --- 294,342 ---- // <JBN> /** ! * Property <code>pagination.sort.param</code>. 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_PARAM = "pagination.sort.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sortdirection.param</code>. 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_SORT_DIRECTION_PARAM = "pagination.sortdirection.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.pagenumber.param</code>. 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_PAGE_NUMBER_PARAM = "pagination.pagenumber.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.searchid.param</code>. 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_SEARCH_ID_PARAM = "pagination.searchid.param"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sort.asc.value</code>. 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_ASC_VALUE = "pagination.sort.asc.value"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sort.desc.value</code>. 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_STRING_PAGINATION_DESC_VALUE = "pagination.sort.desc.value"; //$NON-NLS-1$ ! /** ! * Property <code>pagination.sort.skippagenumber</code>. 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_BOOLEAN_PAGINATION_SKIP_PAGE_NUMBER_IN_SORT = "pagination.sort.skippagenumber"; //$NON-NLS-1$ ! // </JBN> ! /** * Separator char used in property names. *************** *** 1042,1046 **** } - /** * Returns an instance of configured requestHelperFactory. --- 1034,1037 ---- *************** *** 1143,1148 **** } } // </JBN> ! /** * Returns the configured resource provider instance. If necessary instantiate the resource provider from config and --- 1134,1140 ---- } } + // </JBN> ! /** * Returns the configured resource provider instance. If necessary instantiate the resource provider from config and *************** *** 1280,1282 **** --- 1272,1284 ---- return defaultValue; } + + /** + * Obtain the name of the decorator configured for a given media type. + * @param thatEnum A media type + * @return The name of the decorator configured for a given media type. + */ + public String getExportDecoratorName(MediaTypeEnum thatEnum) + { + return getProperty(PROPERTY_EXPORT_PREFIX + SEP + thatEnum + SEP + PROPERTY_EXPORT_DECORATOR_SUFFIX); + } } \ No newline at end of file |