Flex真真的分页,一个页面支持多次复用_html/css_WEB-ITnose

WBOY
풀어 주다: 2016-06-24 11:54:53
원래의
1186명이 탐색했습니다.

<?xml version="1.0" encoding="utf-8"?><hbox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationcomplete="initHandler(event)" width="100%" height="300" backgroundcolor="0xffffff">	<script>		 1)				{					pageFirstBtn.enabled = true;					pagePreBtn.enabled = true;					pageNextBtn.enabled = true;					pageLastBtn.enabled = true;					pageRefreshBtn.enabled = true;				}				else if(curPage == totalPage)				{					pageFirstBtn.enabled = true;					pagePreBtn.enabled = true;					pageNextBtn.enabled = false;					pageLastBtn.enabled = false;					pageRefreshBtn.enabled = true;				}			}						/**			 * 服务请求成功的处理			 */			private function serviceSuccessResult(event:ResultEvent):void			{				totalCount = event.result.totalCounts;				items = event.result.entityList as ArrayCollection;				trace(url,"",items);			}						/**			 * 服务请求失败的处理			 */			private function httpServiceFault(event:FaultEvent):void			{				Alert.show(event.fault.message,"服务请求失败");			}						/**			 * 发送服务请求			 */			private function pagingRemoteObject():void			{				var remote:RemoteObject = new RemoteObject(destination);				offSet = (curPage - 1)*pageSize;				remote.getOperation(methodName).send(pageSize,offSet);				remote.addEventListener(ResultEvent.RESULT,serviceSuccessResult);				remote.addEventListener(FaultEvent.FAULT,httpServiceFault);			}						/**			 * 			 */			private function loadingDatagrid():void			{							}		]]>	</script>	<declarations>		<!-- 将非可视元素(例如服务、值对象)放在此处 -->	</declarations>		<hbox width="30%" height="100%" verticalalign="middle">		<linkbutton stylename="pageFirstBtn" id="pageFirstBtn" enabled="false" click="pageFirstClickHandler(event)"></linkbutton>		<linkbutton stylename="pagePreBtn" id="pagePreBtn" enabled="false" click="pagePrevClickHandler(event)"></linkbutton>		<linkbutton stylename="pageNextBtn" id="pageNextBtn" enabled="false" click="pageNextClickHandler(event)"></linkbutton>		<linkbutton stylename="pageLastBtn" id="pageLastBtn" enabled="false" click="pageLastClickHandler(event)"></linkbutton>	</hbox>		<hbox width="40%" height="100%" verticalalign="middle">		<label text="Page"></label>		<numericstepper id="pageStepper" width="78" click="pageStepperClickHandler(event)" maximum="{totalPage}" minimum="{getMinimum()}" value="{curPage}"></numericstepper>		<label text="of"></label>		<label id="totalPageLab" text="{totalPage}"></label>	</hbox>		<hbox verticalalign="middle">		<combobox dataprovider="{pageSizeBoxListData}" selectedindex="1" width="60" labelfield="pageSize" id="pageSizeComboBox" change="pageSizeComboboxChangeHandler(event)"></combobox>		<label text="共{totalCount}条 记录"></label>	</hbox>		<linkbutton stylename="pageRefreshBtn" id="pageRefreshBtn" click="pageRefreshClickHandler(event)"></linkbutton>		</hbox>    <bordercontainer x="0" y="0" width="40%" height="20" bordercolor="0x336699" textalign="center" visible="false">		<group id="hgimg" x="0" y="0" width="100%" height="100%" clipandenablescrolling="true">			<hbox width="60%" height="18" stylename="progressBarPageBlue" id="progressBarPageBlue">							</hbox>			<hbox width="96%" height="100%" paddingleft="3" x="2" horizontalalign="center" verticalalign="middle">				<label text="Displaying "></label>				<label text="{pageSize*curPage - 1 - pageSize}" id="pageStartLab"></label>				<label text="-"></label>				<label text="{pageSize*curPage - 1}" id="pageSizeLab"></label>				<label text="of"></label>				<label text="{totalCount}" id="allRecordsLab"></label>			</hbox>			<hbox width="100%" height="100%" click="progressBarClickHandler(event)" verticalalign="middle">							</hbox>		</group>	</bordercontainer>
로그인 후 복사


원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿