1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-13 17:00:09 -09:00

Forgot to commit class.

This commit is contained in:
magenoxx 2011-06-26 14:45:38 +04:00
parent bdf091daaf
commit d52ff8e221

View file

@ -0,0 +1,26 @@
package mage.client.deckeditor.table;
import javax.swing.*;
/**
* Updates counts in deck editor.
* @author nantuko
*/
public class UpdateCountsCallback {
private javax.swing.JLabel lblCount;
private javax.swing.JLabel lblCreatureCount;
private javax.swing.JLabel lblLandCount;
public UpdateCountsCallback(JLabel count, JLabel creatures, JLabel lands) {
this.lblCount = count;
this.lblCreatureCount = creatures;
this.lblLandCount = lands;
}
public void update(int count, int creatures, int lands) {
this.lblCount.setText("Count: " + Integer.toString(count));
this.lblCreatureCount.setText("Creatures: " + Integer.toString(creatures));
this.lblLandCount.setText("Lands: " + Integer.toString(lands));
}
}