use of delta.games.lotro.gui.stats.reputation.form.FactionEditionDialogController in project lotro-companion by dmorcellet.
the class CharacterReputationDialogController method actionPerformed.
@Override
public void actionPerformed(ActionEvent event) {
// +/- buttons
Object source = event.getSource();
for (FactionEditionPanelController editor : _editors.values()) {
if (source == editor.getMinusButton()) {
Faction faction = editor.getFaction();
_data.updateFaction(faction, false);
updateFactionDisplay(editor);
_deedsDisplay.update();
_rewardsDisplay.update();
} else if (source == editor.getPlusButton()) {
Faction faction = editor.getFaction();
_data.updateFaction(faction, true);
updateFactionDisplay(editor);
_deedsDisplay.update();
_rewardsDisplay.update();
} else if (source == editor.getEditButton()) {
Faction faction = editor.getFaction();
FactionStatus status = _data.getOrCreateFactionStat(faction);
FactionEditionDialogController edit = new FactionEditionDialogController(this, status);
edit.show(true);
updateFactionDisplay(editor);
_deedsDisplay.update();
_rewardsDisplay.update();
}
}
}
Aggregations