001/*
002 * #%L
003 * GwtMaterial
004 * %%
005 * Copyright (C) 2015 - 2017 GwtMaterialDesign
006 * %%
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 * 
011 *      http://www.apache.org/licenses/LICENSE-2.0
012 * 
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS,
015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 * #L%
019 */
020package gwt.material.design.client.data;
021
022public interface ViewSettings {
023
024    /**
025     * True if we are using sticky table header.
026     */
027    boolean isUseStickyHeader();
028
029    /**
030     * Enable the use of sticky table header bar.
031     */
032    void setUseStickyHeader(boolean stickyHeader);
033
034    /**
035     * Is the data view using categories where possible.
036     */
037    boolean isUseCategories();
038
039    /**
040     * Allow the data view to generate categories,
041     * or use added categories for row data.
042     */
043    void setUseCategories(boolean useCategories);
044
045    /**
046     * Is the data view using loading overlay mask.
047     */
048    boolean isUseLoadOverlay();
049
050    /**
051     * Use the loading overlay mask.
052     */
053    void setUseLoadOverlay(boolean useLoadOverlay);
054
055    /**
056     * Is the data view using row expansion.
057     */
058    boolean isUseRowExpansion();
059
060    /**
061     * Use row expansion functionality, giving the user
062     * a way to expand rows for extra information.
063     */
064    void setUseRowExpansion(boolean useRowExpansion);
065
066    /**
067     * Get the long press duration requirement.
068     */
069    int getLongPressDuration();
070
071    /**
072     * Set the long press duration requirement.
073     */
074    void setLongPressDuration(int longPressDuration);
075
076    /**
077     * Set the table body height.
078     */
079    void setHeight(String height);
080
081    /**
082     * Get the table body height.
083     */
084    String getHeight();
085}