📄 table.java
字号:
/* * Copyright 2004 original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.extremecomponents.table.bean;import java.util.Locale;/** * An exact copy of the table tag. The Model will only reference this copy. * * @author Jeff Johnston */public class Table extends Attributes { public final static String EXTREME_TABLE = "et_"; public final static String EXTREME_COMPONENTS = "ec"; public final static String ID = "id"; public final static String SCOPE = "scope"; public final static String ACTION = "action"; public final static String TABLE_ID = "tableId"; public final static String ITEMS = "items"; public final static String VAR = "var"; public final static String STYLE_CLASS = "styleClass"; public final static String BORDER = "border"; public final static String CELLPADDING = "cellpadding"; public final static String CELLSPACING = "cellspacing"; public final static String IMAGE_PATH = "imagePath"; public final static String TITLE = "title"; public final static String STYLE = "style"; public final static String WIDTH = "width"; public final static String SAVE_FILTER_SORT = "saveFilterSort"; public final static String AUTO_INCLUDE_PARAMETERS = "autoIncludeParameters"; public final static String TOTAL_TITLE = "totalTitle"; public final static String FILTERABLE = "filterable"; public final static String SORTABLE = "sortable"; public final static String SHOW_PAGINATION = "showPagination"; public final static String SHOW_EXPORTS = "showExports"; public final static String SHOW_STATUS_BAR = "showStatusBar"; public final static String RETRIEVE_ROWS_CALLBACK = "retrieveRowsCallback"; public final static String FILTER_ROWS_CALLBACK = "filterRowsCallback"; public final static String SORT_ROWS_CALLBACK = "sortRowsCallback"; public final static String VIEW = "view"; public final static String LOCALE = "locale"; public final static String ROWS_DISPLAYED = "rowsDisplayed"; public final static String MEDIAN_ROWS_DISPLAYED = "medianRowsDisplayed"; public final static String MAX_ROWS_DISPLAYED = "maxRowsDisplayed"; public final static String RESOURCE_BUNDLE_LOCATION = "extremecomponentsResourceBundleLocation"; public final static String PROPERTIES_LOCATION = "extremecomponentsPropertiesLocation"; public String getTableId() { return getAttributeAsString(TABLE_ID); } public Object getItems() { return getAttribute(ITEMS); } public String getVar() { return getAttributeAsString(VAR); } public String getAction() { return getAttributeAsString(ACTION); } public String getScope() { return getAttributeAsString(SCOPE); } public String getStyleClass() { return getAttributeAsString(STYLE_CLASS); } public String getId() { return getAttributeAsString(ID); } public String getBorder() { return getAttributeAsString(BORDER); } public String getCellpadding() { return getAttributeAsString(CELLPADDING); } public String getCellspacing() { return getAttributeAsString(CELLSPACING); } public int getRowsDisplayed() { return getAttributeAsInt(ROWS_DISPLAYED); } public int getMedianRowsDisplayed() { return getAttributeAsInt(MEDIAN_ROWS_DISPLAYED); } public int getMaxRowsDisplayed() { return getAttributeAsInt(MAX_ROWS_DISPLAYED); } public boolean showPagination() { return "true".equals(getAttributeAsString(SHOW_PAGINATION)); } public boolean showExports() { return "true".equals(getAttributeAsString(SHOW_EXPORTS)); } public boolean showStatusBar() { return "true".equals(getAttributeAsString(SHOW_STATUS_BAR)); } public boolean isFilterable() { return "true".equals(getAttributeAsString(FILTERABLE)); } public boolean isSortable() { return "true".equals(getAttributeAsString(SORTABLE)); } public String getImagePath() { return getAttributeAsString(IMAGE_PATH); } public String getTitle() { return getAttributeAsString(TITLE); } public String getStyle() { return getAttributeAsString(STYLE); } public String getWidth() { return getAttributeAsString(WIDTH); } public String getTotalTitle() { return getAttributeAsString(TOTAL_TITLE); } public String getSaveFilterSort() { return getAttributeAsString(SAVE_FILTER_SORT); } public boolean autoIncludeParameters() { return "true".equals(getAttributeAsString(AUTO_INCLUDE_PARAMETERS)); } public String getRetrieveRowsCallback() { return getAttributeAsString(RETRIEVE_ROWS_CALLBACK); } public String getFilterRowsCallback() { return getAttributeAsString(FILTER_ROWS_CALLBACK); } public String getSortRowsCallback() { return getAttributeAsString(SORT_ROWS_CALLBACK); } public String getView() { return getAttributeAsString(VIEW); } public Locale getLocale() { return (Locale) getAttribute(LOCALE); } public String getResourceBundleLocation() { return getAttributeAsString(RESOURCE_BUNDLE_LOCATION); } public String getPropertiesLocation() { return getAttributeAsString(PROPERTIES_LOCATION); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -