Пример #1
0
 public EquippedTableModel(CharacterFacade character) {
   super(character);
   ReferenceFacade<EquipmentSetFacade> ref = character.getEquipmentSetRef();
   ref.addReferenceListener(this);
   setEquipmentList(ref.getReference().getEquippedItems());
   setEquipmentSet(ref.getReference());
 }
Пример #2
0
  public EquipmentModels(CharacterFacade character) {
    this.character = character;
    this.unequippedList = new UnequippedList(character);
    this.fullModel = new EquipmentTableModel(character);
    fullModel.setEquipmentList(character.getPurchasedEquipment());
    fullModel.setEquipmentSet(character.getEquipmentSetRef().getReference());
    this.unequippedModel = new EquipmentTableModel(character);
    unequippedModel.setEquipmentList(unequippedList);
    unequippedModel.setEquipmentSet(character.getEquipmentSetRef().getReference());
    this.equippedModel = new EquippedTableModel(character);

    selectedModel = fullModel;
    selectedView = EquipView.UNEQUIPPED;

    this.viewHandler = new EquipViewHandler();
    this.equipAction = new EquipAction();
    this.unequipAction = new UnequipAction();
    this.filterHandler = new EquipFilterHandler();
  }