mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Forgot to commit class.
This commit is contained in:
parent
bdf091daaf
commit
d52ff8e221
1 changed files with 26 additions and 0 deletions
|
|
@ -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));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue