Examples of SpellListModel


Examples of pathfinder.gui.document.spell.SpellListModel

    Spell data = verifyDrop(info);

    if (data != null) {
      JList<Spell> target = (JList<Spell>) info.getComponent();

      SpellListModel listModel = (SpellListModel) target.getModel();

      listModel.addSpell(data);
    }
    return data != null;
  }
View Full Code Here

Examples of pathfinder.gui.document.spell.SpellListModel

   */
  @Override
  protected void exportDone(JComponent c, Transferable t, int action) {
    JList<Spell> source = (JList<Spell>) c;

    SpellListModel listModel = (SpellListModel) source.getModel();

    if (action == TransferHandler.MOVE) {
      Spell data;
      try {
        data = (Spell) t
            .getTransferData(SpellTransferable.FLAVOR_SPELL);
        listModel.removeSpell(data);
        source.revalidate();
        source.repaint();
      } catch (Exception e) {

      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.