[Javaclient-cvs] javaclient/net/sourceforge/javaclient/client/component JCFactory.java,1.2,1.3
Status: Alpha
Brought to you by:
rimmeraj
|
From: Dave S. <rim...@us...> - 2004-07-30 20:30:59
|
Update of /cvsroot/javaclient/javaclient/net/sourceforge/javaclient/client/component In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20932/net/sourceforge/javaclient/client/component Modified Files: JCFactory.java Log Message: Got multiline text working. Still does not wrap Index: JCFactory.java =================================================================== RCS file: /cvsroot/javaclient/javaclient/net/sourceforge/javaclient/client/component/JCFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JCFactory.java 30 Jul 2004 19:59:37 -0000 1.2 --- JCFactory.java 30 Jul 2004 20:30:50 -0000 1.3 *************** *** 43,47 **** if(rows >1) { ! style |= SWT.MULTI; } else --- 43,51 ---- if(rows >1) { ! style |= SWT.MULTI|SWT.WRAP; ! if(limit == 0) ! { ! style |= SWT.V_SCROLL; ! } } else *************** *** 51,56 **** Text w = new Text((Composite)parent, style); ! w.setTextLimit(limit); ! w.setLayoutData(Layout.newGridData(w, cols, span, 0)); return(w); } --- 55,70 ---- Text w = new Text((Composite)parent, style); ! if(limit>0) ! { ! w.setTextLimit(limit); ! } ! if(rows == 1) ! { ! w.setLayoutData(Layout.newGridData(w, cols, span, 0)); ! } ! else ! { ! w.setLayoutData(Layout.newGridData(w, cols,rows)); ! } return(w); } |