    001// Copyright 2008, 2013 The Apache Software Foundation
    002//
    003// Licensed under the Apache License, Version 2.0 (the "License");
    004// you may not use this file except in compliance with the License.
    005// You may obtain a copy of the License at
    006//
    007//     http://www.apache.org/licenses/LICENSE-2.0
    008//
    009// Unless required by applicable law or agreed to in writing, software
    010// distributed under the License is distributed on an "AS IS" BASIS,
    011// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    012// See the License for the specific language governing permissions and
    013// limitations under the License.
    014
    015package org.apache.tapestry5.grid;
    016
    017public class GridConstants
    018{
    019    /**
    020     * CSS class for the first column or the first row. May be applied to a &lt;th&gt; (in the &lt;thead&gt;) or a
    021     * &lt;tr&gt; (in the &lt;tbody&gt;).
    022     *
    023     * @deprecated Deprecated in 5.4 with no replacement.
    024     */
    025    public static final String FIRST_CLASS = "t-first";
    026
    027    /**
    028     * CSS class for the last column or the last row. May be applied to a &lt;th&gt; (in the &lt;thead&gt;) or a
    029     * &lt;tr&gt; (in the &lt;tbody&gt;).
    030     *
    031     * @deprecated Deprecated in 5.4 with no replacement.
    032     */
    033    public static final String LAST_CLASS = "t-last";
    034
    035    /**
    036     * Marks the column that is currently sorted for sort ascending.  May be applied to a &lt;th&gt; (in the
    037     * &lt;thead&gt; or a &lt;td&gt; in the &lt;tbody&gt;).
    038     *
    039     * @deprecated Deprecated in 5.4 with no replacement.
    040     */
    041    public static final String SORT_ASCENDING_CLASS = "t-sort-column-ascending";
    042
    043    /**
    044     * Marks the column that is currently sorted for sort descending.  May be applied to a &lt;th&gt; (in the
    045     * &lt;thead&gt; or a &lt;td&gt; in the &lt;tbody&gt;).
    046     *
    047     * @deprecated Deprecated in 5.4 with no replacement.
    048     */
    049
    050    public static final String SORT_DESCENDING_CLASS = "t-sort-column-descending";
    051
    052    /**
    053     * Number of rows to diplay within each {@link org.apache.tapestry5.corelib.components.Grid} page.
    054     */
    055    public static final int ROWS_PER_PAGE = 25;
    056
    057    /**
    058     * CSS class for the &lt;table&gt; element.   Change in 5.4 from "t-data-grid" due to the introduction
    059     * of Twitter Bootstrap.
    060     */
    061    public static final String TABLE_CLASS = "table table-hover table-bordered table-striped";
    062
    063    /**
    064     * Default pager position
    065     */
    066    public static final String PAGER_POSITION = "top";
    067
    068    /**
    069     * Block name to display in place of an empty {@link org.apache.tapestry5.corelib.components.Grid}
    070     */
    071    public static final String EMPTY_BLOCK = "block:empty";
    072
    073    /**
    074     * Default number of page to display before and after the current page in the
    075     * {@link org.apache.tapestry5.corelib.components.GridPager}
    076     */
    077    public static final int PAGER_PAGE_RANGE = 5;
    078
    079    /**
    080     * Default {@link org.apache.tapestry5.Asset} for ascending columns sort
    081     *
    082     * @deprecated Deprecated in 5.4 with no replacement.
    083     */
    084    public static final String COLUMNS_ASCENDING = "sort-asc.png";
    085
    086    /**
    087     * Default {@link org.apache.tapestry5.Asset} for ascending columns sort
    088     *
    089     * @deprecated Deprecated in 5.4 with no replacement.
    090     */
    091    public static final String COLUMNS_DESCENDING = "sort-desc.png";
    092
    093    /**
    094     * Default {@link org.apache.tapestry5.Asset} for sortable columns
    095     *
    096     * @deprecated Deprecated in 5.4 with no replacement.
    097     */
    098    public static final String COLUMNS_SORTABLE = "sortable.png";
    099}