Revision 4911 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/LayerList.java

View differences:

LayerList.java
1
package com.iver.cit.gvsig.gui.panels;
2

  
3
import java.awt.Component;
4
import java.awt.Dimension;
5

  
6
import javax.swing.DefaultListCellRenderer;
7
import javax.swing.JList;
8

  
9
import com.iver.andami.PluginServices;
10
import com.iver.cit.gvsig.fmap.layers.WFSLayerNode;
11

  
12 1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
13 2
 *
14
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
3
 * Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
15 4
 *
16 5
 * This program is free software; you can redistribute it and/or
17 6
 * modify it under the terms of the GNU General Public License
......
49 38
 *   +34 963163400
50 39
 *   dac@iver.es
51 40
 */
52
/* CVS MESSAGES:
53
 *
54
 * $Id$
55
 * $Log$
56
 * Revision 1.1  2006-04-19 12:50:16  jorpiell
57
 * Primer commit de la aplicaci?n. Se puede hacer un getCapabilities y ver el mensaje de vienvenida del servidor
58
 *
59
 *
60
 */
41
package com.iver.cit.gvsig.gui.panels;
42

  
43
import java.awt.Component;
44
import java.awt.Dimension;
45

  
46
import javax.swing.DefaultListCellRenderer;
47
import javax.swing.JList;
48

  
49
import com.iver.andami.PluginServices;
50
import com.iver.cit.gvsig.fmap.layers.WFSLayerNode;
51

  
61 52
/**
62
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
53
 * Class implementing a JList component adapted to the WCSLayer needs, such as a
54
 * multiline tooltip.
55
 * 
56
 * @author jaume dominguez faus - jaume.dominguez@iver.es
57
 * 
63 58
 */
64 59
public class LayerList extends JList {
65 60
	/**
......
81 76
		 * 
82 77
		 */
83 78
		private static final long serialVersionUID = -330306573320034784L;
84
		
85 79

  
86 80
		public Component getListCellRendererComponent(JList list, Object value,
87 81
				int index, boolean isSelected, boolean cellHasFocus) {
......
98 92
						setText(text);
99 93
					}
100 94
				}
101
				String myAbstract = layer.getDescription();
95
				String myAbstract = layer.getAbstract();
102 96
//				String myLonLatTxt = layer.getLonLatEnvelope();
103 97

  
104 98
                if (myAbstract == null)
......
107 101
                    myAbstract = format(myAbstract.trim(), 100);
108 102
				String text = PluginServices.getText(this, "abstract") + ":\n"
109 103
						+ myAbstract + "\n\n"
110
						+ PluginServices.getText(this, "covered_extension")
111
						;
112
						//						+ ":\n" + myLonLatTxt;
104
						+ PluginServices.getText(this, "covered_extension");
105
//						+ ":\n" + myLonLatTxt;
113 106

  
114 107
				setToolTipText(text);
115 108

  
......
167 160
		}
168 161
		return theMessage;
169 162
	}
170

  
163
	
164
	/**
165
	 * Adds a vector of features
166
	 * @param features
167
	 */
168
	public void addFeatures(Object[] features){
169
		this.setListData(features);		
170
	}
171 171
}

Also available in: Unified diff