Exemplo n.º 1
0
 private JPanel createSelectionPanel(Identified[] circles) {
   JPanel filterBox =
       createFilterBox(
           properties.getCircleLabel(), circles, properties.getCircleSelectionRenderer());
   magicLearnView.init(properties);
   JPanel selectionPanel = new JPanel(new MigLayout(fillWithoutInsets()));
   selectionPanel.add(filterBox, new CC().wrap());
   magicLearnView.addTo(selectionPanel);
   return selectionPanel;
 }
Exemplo n.º 2
0
 @Override
 public IMagicLearnView addMutationsView(final IMutationLearnViewProperties giftViewProperties) {
   MagicLearnView learnView =
       new MagicLearnView() {
         @Override
         protected ListSelectionListener createLearnedListListener(JButton button, JList list) {
           return giftViewProperties.getRemoveButtonEnabledListener(button, list);
         }
       };
   learnView.init(giftViewProperties);
   learnView.addTo(giftPanel);
   return learnView;
 }
Exemplo n.º 3
0
 @Override
 public void addSelectionListListener(ListSelectionListener listener) {
   magicLearnView.addSelectionListListener(listener);
 }
Exemplo n.º 4
0
 @Override
 public void addMagicViewListener(IMagicViewListener listener) {
   magicLearnView.addMagicViewListener(listener);
 }
Exemplo n.º 5
0
 @Override
 public void removeMagicOptions(Object[] magics) {
   magicLearnView.removeMagicOptions(magics);
 }
Exemplo n.º 6
0
 @Override
 public void clearSelection() {
   magicLearnView.clearSelection();
 }
Exemplo n.º 7
0
 @Override
 public void removeLearnedMagic(Object[] magics) {
   magicLearnView.removeLearnedMagic(magics);
 }
Exemplo n.º 8
0
 @Override
 public void addMagicOptions(Identified[] magics, Comparator<Identified> comparator) {
   magicLearnView.addMagicOptions(magics, comparator);
 }
Exemplo n.º 9
0
 @Override
 public void addLearnedMagic(Object[] magics) {
   magicLearnView.addLearnedMagic(magics);
 }
Exemplo n.º 10
0
 @Override
 public void setMagicOptions(Object[] spells) {
   magicLearnView.setMagicOptions(spells);
 }
Exemplo n.º 11
0
 @Override
 public void setLearnedMagic(Object[] spells) {
   magicLearnView.setLearnedMagic(spells);
 }