Revision 3592 branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/beans/Pager.java
Pager.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.1.2.1 2006-01-10 13:11:38 jaume
|
|
46 |
* Revision 1.1.2.2 2006-01-11 12:20:30 jaume
|
|
47 | 47 |
* *** empty log message *** |
48 | 48 |
* |
49 |
* Revision 1.1.2.1 2006/01/10 13:11:38 jaume |
|
50 |
* *** empty log message *** |
|
51 |
* |
|
49 | 52 |
* Revision 1.1.2.1 2006/01/10 11:33:31 jaume |
50 | 53 |
* Time dimension working against Jet Propulsion Laboratory's WMS server |
51 | 54 |
* |
... | ... | |
68 | 71 |
import java.awt.event.ActionEvent; |
69 | 72 |
import java.awt.event.ActionListener; |
70 | 73 |
|
74 |
import javax.swing.ImageIcon; |
|
71 | 75 |
import javax.swing.JButton; |
72 | 76 |
import javax.swing.JPanel; |
73 | 77 |
import javax.swing.JSlider; |
74 | 78 |
import javax.swing.JTextField; |
75 | 79 |
|
76 |
import com.iver.cit.gvsig.gui.beans.DefaultBean; |
|
77 |
|
|
78 | 80 |
/** |
79 | 81 |
* Bean useful to browse a very large list of data. It includes |
80 | 82 |
* a set of navigation buttons to step ahead or behind by one or |
... | ... | |
168 | 170 |
setValue(lowLimit, true); |
169 | 171 |
} |
170 | 172 |
}}); |
173 |
btnFastBackward.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/fastbackward.png"))); |
|
171 | 174 |
} |
172 | 175 |
return btnFastBackward; |
173 | 176 |
} |
174 | 177 |
|
175 | 178 |
/** |
176 |
* This method initializes btnBackWard
|
|
179 |
* This method initializes btnBackward
|
|
177 | 180 |
* |
178 | 181 |
* @return javax.swing.JButton |
179 | 182 |
*/ |
... | ... | |
188 | 191 |
setValue(currentValue-1, true); |
189 | 192 |
} |
190 | 193 |
}}); |
194 |
btnBackward.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/backward.png"))); |
|
191 | 195 |
} |
192 | 196 |
return btnBackward; |
193 | 197 |
} |
... | ... | |
285 | 289 |
setValue(currentValue+1, true); |
286 | 290 |
} |
287 | 291 |
}}); |
292 |
btnForward.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/forward.png"))); |
|
288 | 293 |
} |
289 | 294 |
return btnForward; |
290 | 295 |
} |
... | ... | |
305 | 310 |
setValue(itemCount, true); |
306 | 311 |
} |
307 | 312 |
}}); |
313 |
btnFastForward.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/fastforward.png"))); |
|
308 | 314 |
} |
309 | 315 |
return btnFastForward; |
310 | 316 |
} |
... | ... | |
353 | 359 |
slider.addChangeListener(new javax.swing.event.ChangeListener() { |
354 | 360 |
public void stateChanged(javax.swing.event.ChangeEvent e) { |
355 | 361 |
int value = (int) (getSlider().getValue() * itemCount * 0.01); |
356 |
System.out.println(value+" "+currentValue); |
|
357 | 362 |
|
358 | 363 |
refreshText(value); |
359 | 364 |
|
Also available in: Unified diff