1 6 package com.nightlabs.ipanema.person.search; 7 8 import org.eclipse.swt.layout.GridLayout; 9 import org.eclipse.swt.widgets.Composite; 10 11 import com.nightlabs.ipanema.base.login.Login; 12 13 16 public class PersonStartsWithQuickSearchComposite extends Composite { 17 18 22 public PersonStartsWithQuickSearchComposite(Composite arg0, int arg1) { 23 super(arg0, arg1); 24 try { 25 Login.getLogin(); 26 27 GridLayout layout = new GridLayout(); 28 layout.horizontalSpacing = 0; 29 layout.verticalSpacing = 0; 30 layout.marginHeight = 0; 31 layout.marginWidth = 0; 32 setLayout(layout); 33 34 for (int i=97; i<=122; i++) { 35 String ch; 36 ch = new String (new byte[]{(byte)i}, "UTF8"); 37 38 PersonStartsWithQuickSearch pswqs = new PersonStartsWithQuickSearch(null,ch); 39 pswqs.createComposite(this); 40 } 41 } catch (Throwable t) { 42 throw new RuntimeException (t); 43 } 44 } 45 46 } 47 | Popular Tags |