Revision 23053 trunk/extensions/extTopology/src/org/gvsig/topology/ui/util/PanelEntriesDialog.java
PanelEntriesDialog.java | ||
---|---|---|
70 | 70 |
import com.iver.andami.PluginServices; |
71 | 71 |
import com.iver.andami.ui.mdiManager.IWindow; |
72 | 72 |
import com.iver.cit.gvsig.fmap.MapControl; |
73 |
import com.iver.cit.gvsig.fmap.core.IFeature; |
|
73 | 74 |
import com.iver.cit.gvsig.fmap.tools.Behavior.Behavior; |
74 | 75 |
import com.iver.cit.gvsig.fmap.tools.Behavior.MouseMovementBehavior; |
75 | 76 |
import com.iver.cit.gvsig.fmap.tools.Behavior.PointBehavior; |
... | ... | |
254 | 255 |
addTitleLabel(param.getParamName(), false); |
255 | 256 |
|
256 | 257 |
JButton button = new JButton(); |
258 |
final JLabel featureIdLabel = new JLabel(); |
|
257 | 259 |
button.setIcon(new ImageIcon(getClass() |
258 | 260 |
.getResource("images/target.png"))); |
259 | 261 |
button.addActionListener(new ActionListener() { |
... | ... | |
271 | 273 |
FeatureSelectionListener fsl = new FeatureSelectionListener( |
272 | 274 |
view, param, new FeatureSelectionCallBack() { |
273 | 275 |
public void featureSelected() { |
276 |
IFeature feature = (IFeature) param.getValue(); |
|
277 |
featureIdLabel.setText("fid:"+feature.getID()); |
|
274 | 278 |
if(!thisContainer.isVisible()){ |
275 | 279 |
thisContainer.setVisible(true); |
276 | 280 |
} |
... | ... | |
296 | 300 |
}// actionPerformed |
297 | 301 |
}); |
298 | 302 |
|
299 |
addRow(new JComponent[] { button }); |
|
303 |
addRow(new JComponent[] { button, featureIdLabel });
|
|
300 | 304 |
|
301 | 305 |
return new GParameterChangeListener() { |
302 | 306 |
public void parameterChange() { |
Also available in: Unified diff