Revision 11565 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/propertiespanel/PropertiesPanel.java

View differences:

PropertiesPanel.java
25 25
import org.gvsig.gui.beans.defaultbuttonspanel.DefaultButtonsPanel;
26 26
/**
27 27
 * Panel para crear un cuadro de propiedades de configuracion standard.
28
 * Tiene botones de aceptar, cancelar y aplicar.
28 29
 *
29 30
 * @version 19/04/2007
30 31
 * @author Borja S?nchez Zamorano (borja.sanchez@iver.es)
......
39 40
	 */
40 41
	public PropertiesPanel() {
41 42
		super(ButtonsPanel.BUTTONS_ACCEPTCANCELAPPLY);
43
		propertiesComponent = new PropertiesComponent();
42 44
		initialize();
43 45
	}
44
	
46

  
45 47
	/**
48
	 * Constructor para poder pasarle un ArrayList de PropertyStruct
49
	 * @param values
50
	 */
51
	public PropertiesPanel(ArrayList values) {
52
		super(ButtonsPanel.BUTTONS_ACCEPTCANCELAPPLY);
53
		propertiesComponent = new PropertiesComponent(values);
54
		initialize();
55
	}
56

  
57
	/**
58
	 * A?ade un PropertyStruct al componente 
59
	 * @param property
60
	 */
61
	public void addPropertyStruct(PropertyStruct property) {
62
		propertiesComponent.addPropertyStruct(property);
63
	}
64

  
65
	/**
46 66
	 * Creaci?n de la ventana con sus componentes 
47 67
	 */
48 68
	private void initialize() {
49 69
		this.setLayout(new BorderLayout(0, 0));
50
		propertiesComponent = new PropertiesComponent();
51 70
		this.add(propertiesComponent, BorderLayout.CENTER);
52 71
	}
53 72

  

Also available in: Unified diff