⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 baseproperties.java

📁 分页查询控件 分页查询控件
💻 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.base;import java.io.IOException;import java.io.InputStream;import java.util.Properties;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/** * @author phorn */public abstract class BaseProperties extends Properties {    private static Log logger = LogFactory.getLog(BaseProperties.class);    public final static String EXTREMECOMPONENTS_PROPERTIES = "extremecomponents.properties";    public final static String AUTO_INCLUDE_PARAMETERS = "autoIncludeParameters";    public final static String USE_SESSION_FILTER_SORT = "useSessionFilterSortParam";    public final static String BORDER = "border";    public final static String CELL = "cell_";    public final static String FILTER_CELL = "filterCell_";    public final static String HEADER_CELL = "headerCell_";    public final static String CELLPADDING = "cellpadding";    public final static String CELLSPACING = "cellspacing";    public final static String EXPORTABLE = "exportable";    public final static String FILTERABLE = "filterable";    public final static String FILTER_ROWS_CALLBACK = "filterRowsCallback";    public final static String HEADER_CLASS = "headerClass";    public final static String HEADER_SORT_CLASS = "headerSortClass";    public final static String ROWS_DISPLAYED = "rowsDisplayed";    public final static String METHOD = "method";    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 PARSE = "parse_";    public final static String RETRIEVE_ROWS_CALLBACK = "retrieveRowsCallback";    public final static String SORTABLE = "sortable";    public final static String SORT_ROWS_CALLBACK = "sortRowsCallback";    public final static String STYLE_CLASS = "styleClass";    public final static String VIEW = "view_";    public final static String VIEW_HTML = "view_html";    public final static String WIDTH = "width";    public final static String LOCALE = "locale";    protected BaseModel model;    public BaseProperties(BaseModel model) {        this.model = model;    }    protected void init(String defaultProperties) {        try {            load(this.getClass().getResourceAsStream(defaultProperties));            String propertiesLocation = model.getTableHandler().getTable().getPropertiesLocation();            InputStream input = this.getClass().getResourceAsStream(propertiesLocation);            if (input != null) {                load(input);            }        } catch (IOException e) {            logger.error("Could not load the eXtremeTable resource bundle.", e);        }    }    public abstract void init();    public abstract String getProperty(String name);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -