use of delta.games.lotro.gui.stats.reputation.CharacterReputationDialogController in project lotro-companion by dmorcellet.
the class CharacterFileWindowController method actionPerformed.
/**
* Handle button actions.
* @param e Source event.
*/
@Override
public void actionPerformed(ActionEvent e) {
String command = e.getActionCommand();
if (LOG_COMMAND.equals(command)) {
// Show log
String serverName = _toon.getServerName();
String toonName = _toon.getName();
String id = CharacterLogWindowController.getIdentifier(serverName, toonName);
WindowController controller = _windowsManager.getWindow(id);
if (controller == null) {
controller = new CharacterLogWindowController(_toon);
_windowsManager.registerWindow(controller);
controller.getWindow().setLocationRelativeTo(getFrame());
}
controller.bringToFront();
} else if (REPUTATION_COMMAND.equals(command)) {
// Reputation
CharacterReputationDialogController controller = new CharacterReputationDialogController(this, _toon);
controller.editModal();
} else if (LEVEL_COMMAND.equals(command)) {
// Level history
LevelHistoryEditionDialogController controller = new LevelHistoryEditionDialogController(this, _toon);
controller.editModal();
} else if (CRAFTING_COMMAND.equals(command)) {
// Crafting
CraftingWindowController controller = new CraftingWindowController(this, _toon);
controller.editModal();
} else if (STASH_COMMAND.equals(command)) {
showStash();
} else if (TRAIT_POINTS_COMMAND.equals(command)) {
editTraitPoints();
} else if (NEW_TOON_DATA_ID.equals(command)) {
startNewCharacterData();
} else if (CLONE_TOON_DATA_ID.equals(command)) {
cloneCharacterData();
} else if (EXPORT_TOON_DATA_ID.equals(command)) {
exportCharacterData();
} else if (REMOVE_TOON_DATA_ID.equals(command)) {
removeCharacterData();
} else if (GenericTableController.DOUBLE_CLICK.equals(command)) {
CharacterData data = (CharacterData) e.getSource();
showCharacterData(data);
}
}
Aggregations