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

📄 column.java

📁 exTreme taglib的使用
💻 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 org.apache.commons.lang.StringUtils;/** * An exact copy of the column tag. The Model will only reference this copy. *  * @author Jeff Johnston */public class Column extends Attributes {    public final static String IS_AUTO_GENERATE_COLUMN = "isAutoGenerateColumn";    public final static String PROPERTY = "property";    public final static String VALUE = "value";    public final static String PROPERTY_VALUE = "propertyValue";    public final static String TITLE = "title";    public final static String CELL = "cell";    public final static String HEADER_CELL = "headerCell";    public final static String FILTER_CELL = "filterCell";    public final static String PARSE = "parse";    public final static String FORMAT = "format";    public final static String WIDTH = "width";    public final static String SHOW_TOTAL = "showTotal";    public final static String FILTERABLE = "filterable";    public final static String SORTABLE = "sortable";    public final static String VIEWS_ALLOWED = "viewsAllowed";    public final static String VIEWS_DENIED = "viewsDenied";    public final static String STYLE_CLASS = "styleClass";    public final static String STYLE = "style";    public final static String HEADER_CLASS = "headerClass";    public final static String HEADER_STYLE = "headerStyle";    public final static String FILTER_CLASS = "filterClass";    public final static String FILTER_STYLE = "filterStyle";    public final static String DATE = "date";    public final static String CURRENCY = "currency";    public final static String NUMBER = "number";    private boolean isFirstColumn;    private boolean isLastColumn;    public String getProperty() {        return getAttributeAsString(PROPERTY);    }    public Object getValue() {        return getAttribute(VALUE);    }    public String getValueAsString() {        Object value = getAttribute(VALUE);        if (value != null) {            return String.valueOf(value);        }        return "";    }    public void setValue(Object value) {        addAttribute(VALUE, value);    }    public Object getPropertyValue() {        return getAttribute(PROPERTY_VALUE);    }    public String getPropertyValueAsString() {        Object value = getAttribute(PROPERTY_VALUE);        if (value != null) {            return String.valueOf(value);        }        return "";    }    public void setPropertyValue(Object value) {        addAttribute(PROPERTY_VALUE, value);    }    public String getTitle() {        return getAttributeAsString(TITLE);    }    public String getStyleClass() {        return getAttributeAsString(STYLE_CLASS);    }    public String getHeaderClass() {        return getAttributeAsString(HEADER_CLASS);    }    public String getHeaderStyle() {        return getAttributeAsString(HEADER_STYLE);    }    public String getFilterClass() {        return getAttributeAsString(FILTER_CLASS);    }    public String getFilterStyle() {        return getAttributeAsString(FILTER_STYLE);    }    public String getCell() {        return getAttributeAsString(CELL);    }    public String getFilterCell() {        return getAttributeAsString(FILTER_CELL);    }    public String getHeaderCell() {        return getAttributeAsString(HEADER_CELL);    }    public String getFormat() {        return getAttributeAsString(FORMAT);    }    public String getParse() {        return getAttributeAsString(PARSE);    }    public String getFilterable() {        return getAttributeAsString(FILTERABLE);    }    public boolean isFilterable() {        return getFilterable().equals("true");    }    public String getSortable() {        return getAttributeAsString(SORTABLE);    }    public boolean isSortable() {        return getSortable().equals("true");    }    public String getWidth() {        return getAttributeAsString(WIDTH);    }    public String getStyle() {        return getAttributeAsString(STYLE);    }    public String getShowTotal() {        return getAttributeAsString(SHOW_TOTAL);    }    public boolean showTotal() {        return "true".equalsIgnoreCase(getShowTotal());    }    public String getViewsAllowed() {        return getAttributeAsString(VIEWS_ALLOWED);    }    public String getViewsDenied() {        return getAttributeAsString(VIEWS_DENIED);    }    public boolean isDate() {        if (StringUtils.isNotEmpty(getCell()) && getCell().equals(DATE)) {            return true;        }        return false;    }    public boolean isNumber() {        String type = getCell();        if (StringUtils.isNotBlank(type) && (type.equalsIgnoreCase(CURRENCY) || type.equalsIgnoreCase(NUMBER))) {            return true;        }        return false;    }    public boolean isFirstColumn() {        return isFirstColumn;    }    public void setFirstColumn(boolean isFirstColumn) {        this.isFirstColumn = isFirstColumn;    }    public boolean isLastColumn() {        return isLastColumn;    }    public void setLastColumn(boolean isLastColumn) {        this.isLastColumn = isLastColumn;    }}

⌨️ 快捷键说明

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