Revision 25780

View differences:

branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/data/feature/swing/FeatureTypesTablePanel.java
2 2

  
3 3
import java.awt.BorderLayout;
4 4
import java.awt.Dimension;
5
import java.awt.GridBagConstraints;
6
import java.awt.GridBagLayout;
7 5

  
8 6
import javax.swing.JPanel;
9 7
import javax.swing.JSplitPane;
......
26 24
private FeatureTablePanel tablePanel;
27 25
private FeatureTypesControl typesControl;
28 26
private FeatureType featureType;  //  @jve:decl-index=0:
29
private FeatureStore featureStore;
30
private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="134,21"
31 27
private JSplitPane jSplitPane = null;
32 28

  
33 29
/**
......
78 74
	super();
79 75
    tablePanel=new FeatureTablePanel(featureStore,featureQuery,isDoubleBuffered);
80 76
    typesControl=new FeatureTypesControl(featureStore);
81
	this.featureStore = featureStore;
82
    this.featureType = featureQuery.getFeatureType();
77
	this.featureType = featureQuery.getFeatureType();
83 78
    this.intializeUI();
84 79

  
85 80
}
......
89 84
	try {
90 85
		FeatureQuery featureQuery=new FeatureQuery(featureType);
91 86
		this.featureType=featureType;
92
		this.featureStore=featureStore;
93 87
		tablePanel=new FeatureTablePanel(featureStore, featureQuery, isDoubleBuffered);
94 88
	} catch (DataException e) {
95 89
		e.printStackTrace();
......
126 120
		this.setLayout(new BorderLayout());
127 121
		this.setSize(new Dimension(331, 251));
128 122
		this.add(getJSplitPane(), BorderLayout.CENTER);
123
		hideTypes();
129 124
}
130 125

  
131 126
/**
......
141 136
	}
142 137
	return jSplitPane;
143 138
}
144

  
139
public void hideTypes(){
140
	jSplitPane.remove(getTypesControl());
145 141
}
142
public void showTypes(){
143
	jSplitPane.setLeftComponent(getTypesControl());
144
}
145
}

Also available in: Unified diff