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

📄 panel.tag

📁 基于Jscript实现在类库,集成了现流行的ajax,重载select组件库
💻 TAG
📖 第 1 页 / 共 3 页
字号:
	name="onBeforerender"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires before the component is rendered. Return false to stop the render.
" %>

<%@ attribute
	name="onBeforeshow"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires before the component is shown. Return false to stop the show.
" %>

<%@ attribute
	name="onBeforestaterestore"
	type="java.lang.Object"
	required="false"
	description="
( Ext.Component this, Object state )Fires before the state of the component is restored. Return false to stop the restore.
" %>

<%@ attribute
	name="onBeforestatesave"
	type="java.lang.Object"
	required="false"
	description="
( Ext.Component this, Object state )Fires before the state of the component is saved to the configured state provider. Return false to stop the save.
" %>

<%@ attribute
	name="onBodyresize"
	type="java.lang.Integer"
	required="false"
	description="
( Ext.Panel p, Number width, Number height )Fires after the Panel has been resized.
" %>

<%@ attribute
	name="onClose"
	type="java.lang.String"
	required="false"
	description="
( Ext.Panel p )Fires after the Panel is closed.Note that Panels do not directly support being closed, but somePanel subclasses do (like Ext.Window).
" %>

<%@ attribute
	name="onCollapse"
	type="java.lang.String"
	required="false"
	description="
( Ext.Panel p )Fires after the Panel has been collapsed.
" %>

<%@ attribute
	name="onDeactivate"
	type="java.lang.String"
	required="false"
	description="
( Ext.Panel p )Fires after the Panel has been visually deactivated.Note that Panels do not directly support being deactivated, but some Panel subclassesdo (like Ext.Window). Panels which are child Components of a TabPanel fire theactivate and deactivate events under the control of the TabPanel.
" %>

<%@ attribute
	name="onDestroy"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is destroyed.
" %>

<%@ attribute
	name="onDisable"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is disabled.
" %>

<%@ attribute
	name="onEnable"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is enabled.
" %>

<%@ attribute
	name="onExpand"
	type="java.lang.String"
	required="false"
	description="
( Ext.Panel p )Fires after the Panel has been expanded.
" %>

<%@ attribute
	name="onHide"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is hidden.
" %>

<%@ attribute
	name="onMove"
	type="java.lang.Integer"
	required="false"
	description="
( Ext.Component this, Number x, Number y )Fires after the component is moved.
" %>

<%@ attribute
	name="onRemove"
	type="java.lang.String"
	required="false"
	description="
( Ext.Container this, Ext.Component component )Fires after any Ext.Component is removed from the container.
" %>

<%@ attribute
	name="onRender"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is rendered.
" %>

<%@ attribute
	name="onResize"
	type="java.lang.Integer"
	required="false"
	description="
( Ext.Component this, Number adjWidth, Number adjHeight, Number rawWidth, Number rawHeight )Fires after the component is resized.
" %>

<%@ attribute
	name="onShow"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is shown.
" %>

<%@ attribute
	name="onStaterestore"
	type="java.lang.Object"
	required="false"
	description="
( Ext.Component this, Object state )Fires after the state of the component is restored.
" %>

<%@ attribute
	name="onStatesave"
	type="java.lang.Object"
	required="false"
	description="
( Ext.Component this, Object state )Fires after the state of the component is saved to the configured state provider.
" %>

<%@ attribute
	name="onTitlechange"
	type="java.lang.String"
	required="false"
	description="
( Ext.Panel p, String The )Fires after the Panel title has been set or changed.
" %>

<%-- Events _____________________________END --%>

<%-- Added attribs (region,splitRegion)_____________________________START --%>

<%@ attribute
	name="region"
	type="java.lang.String"
	required="false"
	description="
(String) This region's layout position (north, south, east, west or center).
" %>

<%@ attribute
	name="animFloat"
	type="java.lang.Boolean"
	required="false"
	description="
(Boolean)When a collapsed region's bar is clicked, the region's panel will be displayed as a floated panel that will close again once the user mouses out of that panel (or clicks out if autoHide = false). Setting animFloat to false will prevent the open and close of these floated panels from being animated (defaults to true).
" %>

<%@ attribute
	name="autoHide"
	type="java.lang.Boolean"
	required="false"
	description="
(Boolean)When a collapsed region's bar is clicked, the region's panel will be displayed as a floated panel. If autoHide is true, the panel will automatically hide after the user mouses out of the panel. If autoHide is false, the panel will continue to display until the user clicks outside of the panel (defaults to true).
" %>

<%@ attribute
	name="cmargins"
	type="java.lang.Object"
	required="false"
	description="
(Object)An object containing margins to apply to the region's collapsed element in the format {left: (left margin), top: (top margin), right: (right margin), bottom: (bottom margin)}
" %>

<%@ attribute
	name="collapseMode"
	type="java.lang.String"
	required="false"
	description="
(String)By default, collapsible regions are collapsed by clicking the expand/collapse tool button that renders into the region's title bar. Optionally, when collapseMode is set to 'mini' the region's split bar will also display a small collapse button in the center of the bar. In 'mini' mode the region will collapse to a thinner bar than in normal mode. By default collapseMode is undefined, and the only two supported values are undefined and 'mini'. Note that if a collapsible region does not have a title bar, then collapseMode must be set to 'mini' in order for the region to be collapsible by the user as the tool button will not be rendered.
" %>

<%@ attribute
	name="floatable"
	type="java.lang.Boolean"
	required="false"
	description="
(Boolean)True to allow clicking a collapsed region's bar to display the region's panel floated above the layout, false to force the user to fully expand a collapsed region by clicking the expand button to see it again (defaults to true).
" %>

<%@ attribute
	name="margins"
	type="java.lang.Object"
	required="false"
	description="
(Object)An object containing margins to apply to the region in the format {left: (left margin), top: (top margin), right: (right margin), bottom: (bottom margin)}
" %>

<%@ attribute
	name="minHeight"
	type="java.lang.Integer"
	required="false"
	description="
(Number)The minimum allowable height in pixels for this region (defaults to 50)
" %>

<%@ attribute
	name="minWidth"
	type="java.lang.Integer"
	required="false"
	description="
(Number)The minimum allowable width in pixels for this region (defaults to 50)
" %>

<%@ attribute
	name="split"
	type="java.lang.Boolean"
	required="false"
	description="
(Boolean)True to display a Ext.SplitBar between this region and its neighbor, allowing the user to resize the regions dynamically (defaults to false). When split = true, it is common to specify a minSize and maxSize for the region.
" %>

<%@ attribute
	name="collapsibleSplitTip"
	type="java.lang.String"
	required="false"
	description="
(String)The tooltip to display when the user hovers over a collapsible region's split bar (defaults to 'Drag to resize. Double click to hide.'). Only applies if useSplitTips = true.
" %>

<%@ attribute
	name="splitTip"
	type="java.lang.String"
	required="false"
	description="
(String)The tooltip to display when the user hovers over a non-collapsible region's split bar (defaults to 'Drag to resize.'). Only applies if useSplitTips = true.
" %>

<%@ attribute
	name="useSplitTips"
	type="java.lang.Boolean"
	required="false"
	description="
(Boolean)True to display a tooltip when the user hovers over a region's split bar (defaults to false). The tooltip text will be the value of either splitTip or collapsibleSplitTip as appropriate.
" %>
 <%-- Added attribs _____________________________END --%>

<%-- Tag Body  _____________________________START --%>
<%@ include file="inc/taglibs.jsp" %>
<%@ tag 
	import="org.apache.commons.beanutils.BeanUtils"
	dynamic-attributes="dynamicAttributes"
	description="Panel is a container that has specific functionality and structural components that make it the perfect building block for application-oriented user interfaces. The Panel contains bottom and top toolbars, along with separate header, footer and body sections. It also provides built-in expandable and collapsible behavior, along with a variety of prebuilt tool buttons that can be wired up to provide other customized behavior. Panels can be easily dropped into any Container or layout, and the layout and rendering pipeline is completely managed by the framework." %>
	
	<c:if test="${empty(id)}">
		<c:set var="id"><extutil:getTagId tag="<%= this %>" /></c:set>
	</c:if>
	
	<extutil:processTagAttributes 
		configVar="configMap" 
		eventsVar="eventsMap" 
		javaScript="autoLoad,keys,tools"
		include="*" 
		tagJspContext="<%= jspContext %>"
		dynamicAttributes="${dynamicAttributes}" />
	
		<%-- Process JSP body --%>
		<jsp:doBody var="jspBody" scope="page" />			
		<div class="x-hide-display" id="${id}El">${jspBody}</div>
		
		<c:set var="item">
			    new Ext.Panel({
			  		<c:forEach items="${configMap}" var="config">
			  			${config.key}:${config.value},
			  		</c:forEach>
			  		<c:if test="<%= BeanUtils.getProperty(this,"items")!=null %>">
				        items:[
							<% 
								String items = BeanUtils.getProperty(this,"items");
								jspContext.getOut().write(items.substring(0,items.length()-1));
							 %>
				        ],
			  		</c:if>
			  		<c:if test="<%= BeanUtils.getProperty(this,"tbar")!=null %>">
				        tbar:[
							<% 
								String tbar = BeanUtils.getProperty(this,"tbar");
								jspContext.getOut().write(tbar.substring(0,tbar.length()-1));
							 %>
				        ],
			  		</c:if>
			  		<c:if test="<%= BeanUtils.getProperty(this,"bbar")!=null %>">
				        bbar:[
							<% 
								String bbar = BeanUtils.getProperty(this,"bbar");
								jspContext.getOut().write(bbar.substring(0,bbar.length()-1));
							 %>
				        ],
			  		</c:if>
			  		<c:if test="<%= BeanUtils.getProperty(this,"buttons")!=null %>">
				        buttons:[
							<% 
								String buttons = BeanUtils.getProperty(this,"buttons");
								jspContext.getOut().write(buttons.substring(0,buttons.length()-1));
							 %>
				        ],
			  		</c:if>
			  		<c:if test="<%= BeanUtils.getProperty(this,"tools")!=null %>">
				        tools:[
							<% 
								String tools = BeanUtils.getProperty(this,"tools");
								jspContext.getOut().write(tools.substring(0,tools.length()-1));
							 %>
				        ],
			  		</c:if>
			  		listeners:{
				  		<c:forEach items="${eventsMap}" var="event" varStatus="status">
				  			<c:if test="${fn:indexOf(event.value,'function(){')==-1}">
					  			${event.key}:function(){${event.value}}			  			
				  			</c:if>
			  				<c:if test="${fn:indexOf(event.value,'function(){')>-1}">
					  			${event.key}:${event.value}
				  			</c:if>
				  			${status.last?'':','}
				  		</c:forEach>
			  		},
					contentEl:'${id}El'
			    }),
		</c:set>
	
	<extutil:setParentProperties 
		tag="<%=this%>" 
		items="${item}" />
		
<%-- Tag Body  _____________________________END --%>

⌨️ 快捷键说明

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