Row.java
上传用户:hengxinggs
上传日期:2008-01-15
资源大小:212k
文件大小:1k
源码类别:

PlugIns编程

开发平台:

Java

  1. /*
  2.  * Copyright (C) 2005 David Orme <djo@coconut-palm-software.com>
  3.  * 
  4.  * All rights reserved. This program and the accompanying materials
  5.  * are made available under the terms of the Eclipse Public License v1.0
  6.  * which accompanies this distribution, and is available at
  7.  * http://www.eclipse.org/legal/epl-v10.html
  8.  *
  9.  * Contributors:
  10.  *     David Orme     - Initial API and implementation
  11.  */
  12. package org.eclipse.jface.examples.databinding.compositetable.test;
  13. import org.eclipse.swt.SWT;
  14. import org.eclipse.swt.widgets.Composite;
  15. import org.eclipse.swt.widgets.Text;
  16. public class Row extends Composite {
  17. public Text name = null;
  18. public Text address = null;
  19. public Text city = null;
  20. public Text state = null;
  21. public Row(Composite parent, int style) {
  22. super(parent, style);
  23. initialize();
  24. }
  25. private void initialize() {
  26. this.setSize(new org.eclipse.swt.graphics.Point(131,52));
  27. name = new Text(this, SWT.NONE);
  28. name.setBounds(new org.eclipse.swt.graphics.Rectangle(12,12,10,25));
  29. address = new Text(this, SWT.NONE);
  30. address.setBounds(new org.eclipse.swt.graphics.Rectangle(43,12,10,25));
  31. city = new Text(this, SWT.NONE);
  32. city.setBounds(new org.eclipse.swt.graphics.Rectangle(75,14,10,25));
  33. state = new Text(this, SWT.NONE);
  34. state.setBounds(new org.eclipse.swt.graphics.Rectangle(109,16,10,25));
  35. }
  36. }  //  @jve:decl-index=0:visual-constraint="10,10"