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 <th> (in the <thead>) or a
021     * <tr> (in the <tbody>).
022     */
023    public static final String FIRST_CLASS = "t-first";
024
025    /**
026     * CSS class for the last column or the last row. May be applied to a <th> (in the <thead>) or a
027     * <tr> (in the <tbody>).
028     */
029    public static final String LAST_CLASS = "t-last";
030
031    /**
032     * Marks the column that is currently sorted for sort ascending.  May be applied to a <th> (in the
033     * <thead> or a <td> in the <tbody>).
034     * 
035     * @deprecated Deprecated in 5.4 with no replacement.
036     */
037    public static final String SORT_ASCENDING_CLASS = "t-sort-column-ascending";
038
039    /**
040     * Marks the column that is currently sorted for sort descending.  May be applied to a <th> (in the
041     * <thead> or a <td> in the <tbody>).
042     * 
043     * @deprecated Deprecated in 5.4 with no replacement.
044     */
045
046    public static final String SORT_DESCENDING_CLASS = "t-sort-column-descending";
047
048    /**
049     * Number of rows to diplay within each {@link org.apache.tapestry5.corelib.components.Grid} page.
050     */
051    public static final int ROWS_PER_PAGE = 25;
052
053    /**
054     * CSS class for the <table> element.   Change in 5.4 from "t-data-grid" due to the introduction
055     * of Twitter Bootstrap.
056     */
057    public static final String TABLE_CLASS = "table table-hover table-bordered table-striped";
058
059    /**
060     * Default pager position
061     */
062    public static final String PAGER_POSITION = "top";
063
064    /**
065     * Block name to display in place of an empty {@link org.apache.tapestry5.corelib.components.Grid}
066     */
067    public static final String EMPTY_BLOCK = "block:empty";
068
069    /**
070     * Default number of page to display before and after the current page in the
071     * {@link org.apache.tapestry5.corelib.components.GridPager}
072     */
073    public static final int PAGER_PAGE_RANGE = 5;
074
075    /**
076     * Default {@link org.apache.tapestry5.Asset} for ascending columns sort
077     * 
078     * @deprecated Deprecated in 5.4 with no replacement.
079     */
080    public static final String COLUMNS_ASCENDING = "sort-asc.png";
081
082    /**
083     * Default {@link org.apache.tapestry5.Asset} for ascending columns sort
084     * 
085     * @deprecated Deprecated in 5.4 with no replacement.
086     */
087    public static final String COLUMNS_DESCENDING = "sort-desc.png";
088
089    /**
090     * Default {@link org.apache.tapestry5.Asset} for sortable columns
091     * 
092     * @deprecated Deprecated in 5.4 with no replacement.
093     */
094    public static final String COLUMNS_SORTABLE = "sortable.png";
095}