Verder gewerkt aan PanelDevice. Feedback moet algemeen worden voor Devices.

This commit is contained in:
Bram Veenboer
2011-03-06 13:05:36 +00:00
parent b38f9541d5
commit d8e79c3363
9 changed files with 211 additions and 169 deletions

View File

@@ -0,0 +1,22 @@
package pm.util.swing;
import javax.swing.ImageIcon;
import pm.util.ArrayCycle;
public class CycleButton extends HoldButton {
protected static final long serialVersionUID = 1L;
protected ArrayCycle<ImageIcon> imageIconCycle;
public CycleButton(HoldButtonListener holdButtonListener, ArrayCycle<ImageIcon> imageIconCycle) {
super(holdButtonListener);
this.imageIconCycle = imageIconCycle;
cycle();
}
public void cycle() {
setIcon(imageIconCycle.current());
imageIconCycle.next();
}
}