relocate deck legality components into new package.

master
lodici 2017-02-07 13:57:12 +00:00
parent a4a0fa1427
commit 6d39adfedc
6 changed files with 11 additions and 8 deletions

View File

@ -14,6 +14,7 @@ import magic.ui.ScreenController;
import magic.ui.helpers.MouseHelper;
import magic.ui.screen.deck.editor.stats.DeckStatsPanel;
import magic.ui.widget.cards.table.CardsJTable;
import magic.ui.widget.deck.legality.LegalityPanel;
import magic.ui.widget.deck.stats.IPwlWorkerListener;
import net.miginfocom.swing.MigLayout;

View File

@ -1,4 +1,4 @@
package magic.ui.screen.deck.editor;
package magic.ui.widget.deck.legality;
import magic.data.CardLegality;
import magic.data.MagicFormat;

View File

@ -1,4 +1,4 @@
package magic.ui.screen.deck.editor;
package magic.ui.widget.deck.legality;
import java.awt.Color;
import java.awt.Component;

View File

@ -1,5 +1,6 @@
package magic.ui.screen.deck.editor;
package magic.ui.widget.deck.legality;
import magic.ui.widget.deck.legality.CardLegalityInfo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

View File

@ -1,4 +1,4 @@
package magic.ui.screen.deck.editor;
package magic.ui.widget.deck.legality;
import java.awt.Color;
import java.awt.Component;

View File

@ -1,4 +1,4 @@
package magic.ui.screen.deck.editor;
package magic.ui.widget.deck.legality;
import java.awt.Color;
import java.awt.Dimension;
@ -14,12 +14,13 @@ import magic.model.MagicCardDefinition;
import magic.model.MagicDeck;
import magic.translate.MText;
import magic.ui.MagicImages;
import magic.ui.screen.deck.editor.IDeckEditorView;
import magic.ui.screen.widget.ActionBarButton;
import magic.ui.widget.TexturedPanel;
import net.miginfocom.swing.MigLayout;
@SuppressWarnings("serial")
class LegalityPanel extends JPanel implements IDeckEditorView {
public class LegalityPanel extends JPanel implements IDeckEditorView {
// translatable strings
private static final String _S1 = "Legal";
@ -43,7 +44,7 @@ class LegalityPanel extends JPanel implements IDeckEditorView {
private final MigLayout miglayout = new MigLayout();
private MagicDeck deck = new MagicDeck();
LegalityPanel() {
public LegalityPanel() {
formatsLegalityPanel = new FormatsLegalityPanel();
cardsLegalityPanel = new CardsLegalityPanel();
@ -102,7 +103,7 @@ class LegalityPanel extends JPanel implements IDeckEditorView {
return cardsLegalityPanel.getSelectedCard();
}
void setDeck(final MagicDeck aDeck) {
public void setDeck(final MagicDeck aDeck) {
this.deck = aDeck;
formatsLegalityPanel.setDeck(aDeck);
}