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:
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
Reference in a new issue