Exemplo n.º 1
0
  public void install(
      JComboBox equipBox,
      JTableEx eqTable,
      DisplayableFilter<? super CharacterFacade, ? super EquipmentFacade> filter,
      JTreeTable eqSetTable,
      JButton equipButton,
      JButton unequipButton) {
    this.equipViewBox = equipBox;
    this.equipmentTable = eqTable;
    this.equipmentSetTable = eqSetTable;
    viewHandler.install();
    equipButton.setAction(equipAction);
    unequipButton.setAction(unequipAction);
    equipAction.install();
    unequipAction.install();

    filter.setFilterHandler(filterHandler);
    fullModel.setFilter(filter);
    unequippedModel.setFilter(filter);
    equippedModel.setFilter(filter);
  }
Exemplo n.º 2
0
 public void uninstall() {
   if (equipmentTable != null) {
     equipAction.uninstall();
     unequipAction.uninstall();
   }
 }