门店管理系统_代码

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1packagejxl.biff.drawing;12importcommon.Assert;3importcommon.Logger;4importjava.io.IOException;5importjxl.WorkbookSettings;6importjxl.write.biff.File;78StoremanagementclassComboBox9implementsDrawingGroupObject10{11privatestaticLoggerlogger=Logger.getLogger(ComboBox.class);12privateEscherContainerreadSpContainer;13privateEscherContainerspContainer;14privateMsoDrawingRecordmsoDrawingRecord;15privateObjRecordobjRecord;16privatebooleaninitialized=false;17privateintobjectId;18privateintblipId;19privateintshapeId;20privateintcolumn;21privateintrow;22privatedoublewidth;23privatedoubleheight;24privateintreferenceCount;25privateEscherContainerescherData;26privateOriginorigin;27privateDrawingGroupdrawingGroup;28privateDrawingDatadrawingData;29privateShapeTypetype;30privateintdrawingNumber;31privateWorkbookSettingsworkbookSettings;3233StoremanagementComboBox(MsoDrawingRecordmso,ObjRecordobj,DrawingDatadd,34DrawingGroupdg,WorkbookSettingsws)35{36this.drawingGroup=dg;37this.msoDrawingRecord=mso;38this.drawingData=dd;39this.objRecord=obj;40this.initialized=false;41this.workbookSettings=ws;42this.origin=Origin.READ;43this.drawingData.addData(this.msoDrawingRecord.getData());44this.drawingNumber=(this.drawingData.getNumDrawings()-1);45this.drawingGroup.addDrawing(this);4647Assert.verify((mso!=null)&&(obj!=null));4849initialize();502}5152StoremanagementComboBox(DrawingGroupObjectdgo,DrawingGroupdg,53WorkbookSettingsws)54{55ComboBoxd=(ComboBox)dgo;56Assert.verify(d.origin==Origin.READ);57this.msoDrawingRecord=d.msoDrawingRecord;58this.objRecord=d.objRecord;59this.initialized=false;60this.origin=Origin.READ;61this.drawingData=d.drawingData;62this.drawingGroup=dg;63this.drawingNumber=d.drawingNumber;64this.drawingGroup.addDrawing(this);65this.workbookSettings=ws;66}6768StoremanagementComboBox()69{70this.initialized=true;71this.origin=Origin.WRITE;72this.referenceCount=1;73this.type=ShapeType.HOST_CONTROL;74}7576privatevoidinitialize()77{78this.readSpContainer=this.drawingData.getSpContainer(this.drawingNumber);79Assert.verify(this.readSpContainer!=null);8081EscherRecord[]children=this.readSpContainer.getChildren();8283Spsp=(Sp)this.readSpContainer.getChildren()[0];84this.objectId=this.objRecord.getObjectId();85this.shapeId=sp.getShapeId();86this.type=ShapeType.getType(sp.getShapeType());8788if(this.type==ShapeType.UNKNOWN)89{90logger.warn(Unknownshapetype);91}9293ClientAnchorclientAnchor=null;94for(inti=0;(ichildren.length)&&(clientAnchor==null);i++)95{96if(children[i].getType()==EscherRecordType.CLIENT_ANCHOR)97{98clientAnchor=(ClientAnchor)children[i];99}1003}101102if(clientAnchor==null)103{104logger.warn(Clientanchornotfound);105}106else107{108this.column=((int)clientAnchor.getX1());109this.row=((int)clientAnchor.getY1());110}111112this.initialized=true;113}114115StoremanagementfinalvoidsetObjectId(intobjid,intbip,intsid)116{117this.objectId=objid;118this.blipId=bip;119this.shapeId=sid;120121if(this.origin==Origin.READ)122{123this.origin=Origin.READ_WRITE;124}125}126127StoremanagementfinalintgetObjectId()128{129if(!this.initialized)130{131initialize();132}133134returnthis.objectId;135}136137StoremanagementfinalintgetShapeId()138{139if(!this.initialized)140{141initialize();142}143144returnthis.shapeId;145}146147StoremanagementfinalintgetBlipId()148{149if(!this.initialized)1504{151initialize();152}153154returnthis.blipId;155}156157StoremanagementMsoDrawingRecordgetMsoDrawingRecord()158{159returnthis.msoDrawingRecord;160}161162StoremanagementEscherContainergetSpContainer()163{164if(!this.initialized)165{166initialize();167}168169if(this.origin==Origin.READ)170{171returngetReadSpContainer();172}173174SpContainerspc=newSpContainer();175Spsp=newSp(this.type,this.shapeId,2560);176spc.add(sp);177Optopt=newOpt();178opt.addProperty(127,false,false,17039620);179opt.addProperty(191,false,false,524296);180opt.addProperty(511,false,false,524288);181opt.addProperty(959,false,false,131072);182183spc.add(opt);184185ClientAnchorclientAnchor=newClientAnchor(this.column,this.row,this.column+1,186this.row+1);187188spc.add(clientAnchor);189ClientDataclientData=newClientData();190spc.add(clientData);191192returnspc;193}194195StoremanagementvoidsetDrawingGroup(DrawingGroupdg)196{197this.drawingGroup=dg;198}1992005StoremanagementDrawingGroupgetDrawingGroup()201{202returnthis.drawingGroup;203}204205StoremanagementOrigingetOrigin()206{207returnthis.origin;208}209210StoremanagementintgetReferenceCount()211{212returnthis.referenceCount;213}214215StoremanagementvoidsetReferenceCount(intr)216{217this.referenceCount=r;218}219220StoremanagementdoublegetX()221{222if(!this.initialized)223{224initialize();225}226returnthis.column;227}228229StoremanagementvoidsetX(doublex)230{231if(this.origin==Origin.READ)232{233if(!this.initialized)234{235initialize();236}237this.origin=Origin.READ_WRITE;238}239240this.column=((int)x);241}242243StoremanagementdoublegetY()244{245if(!this.initialized)246{247initialize();248}2492506returnthis.row;251}252253Storemanagementvoids

1 / 63
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功