📄 htmldatalisttag.java
字号:
/* * Copyright 2004 The Apache Software Foundation. * * 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.apache.myfaces.custom.datalist;import org.apache.myfaces.component.UserRoleAware;import org.apache.myfaces.renderkit.JSFAttr;import org.apache.myfaces.taglib.html.HtmlComponentBodyTagBase;import javax.faces.component.UIComponent;/** * @author Manfred Geiler (latest modification by $Author: matzew $) * @version $Revision: 1.7 $ $Date: 2005/02/18 17:19:30 $ * $Log: HtmlDataListTag.java,v $ * Revision 1.7 2005/02/18 17:19:30 matzew * added release() to tag clazzes. * * Revision 1.6 2004/10/13 11:50:57 matze * renamed packages to org.apache * * Revision 1.5 2004/07/01 21:53:09 mwessendorf * ASF switch * * Revision 1.4 2004/05/18 14:31:37 manolito * user role support completely moved to components source tree * * Revision 1.3 2004/04/05 11:04:52 manolito * setter for renderer type removed, no more default renderer type needed * * Revision 1.2 2004/04/01 12:57:39 manolito * additional extended component classes for user role support * * Revision 1.1 2004/03/31 12:15:26 manolito * custom component refactoring * */public class HtmlDataListTag extends HtmlComponentBodyTagBase{ //private static final Log log = LogFactory.getLog(HtmlDataListTag.class); public String getComponentType() { return HtmlDataList.COMPONENT_TYPE; } public String getRendererType() { return "org.apache.myfaces.List"; } // UIComponent attributes --> already implemented in UIComponentTagBase // user role attributes --> already implemented in UIComponentTagBase // HTML universal attributes --> already implemented in HtmlComponentTagBase // HTML event handler attributes --> already implemented in HtmlComponentTagBase // UIData attributes private String _rows; private String _var; private String _first; // HtmlDataList attributes private String _layout; private String _rowIndexVar; private String _rowCountVar; // User Role support private String _enabledOnUserRole; private String _visibleOnUserRole; public void release() { super.release(); _rows=null; _var=null; _first=null; _layout=null; _rowIndexVar=null; _rowCountVar=null; _enabledOnUserRole=null; _visibleOnUserRole=null; } protected void setProperties(UIComponent component) { super.setProperties(component); setIntegerProperty(component, JSFAttr.ROWS_ATTR, _rows); setStringProperty(component, JSFAttr.VAR_ATTR, _var); setIntegerProperty(component, JSFAttr.FIRST_ATTR, _first); setStringProperty(component, JSFAttr.LAYOUT_ATTR, _layout); setStringProperty(component, "rowIndexVar", _rowIndexVar); setStringProperty(component, "rowCountVar", _rowCountVar); setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole); setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole); } public void setRows(String rows) { _rows = rows; } public void setVar(String var) { _var = var; } public void setFirst(String first) { _first = first; } public void setLayout(String layout) { _layout = layout; } public void setRowIndexVar(String rowIndexVar) { _rowIndexVar = rowIndexVar; } public void setRowCountVar(String rowCountVar) { _rowCountVar = rowCountVar; } public void setEnabledOnUserRole(String enabledOnUserRole) { _enabledOnUserRole = enabledOnUserRole; } public void setVisibleOnUserRole(String visibleOnUserRole) { _visibleOnUserRole = visibleOnUserRole; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -