use of delta.games.lotro.character.crafting.GuildStatus in project lotro-companion by dmorcellet.
the class CraftingSynopsisTableController method updateRowItems.
private void updateRowItems() {
_rowItems.clear();
for (CharacterFile toon : _toons) {
CraftingStatus craftingStatus = toon.getCraftingStatus();
List<Profession> professions = craftingStatus.getProfessions();
GuildStatus guildStatus = craftingStatus.getGuildStatus();
Profession guild = guildStatus.getProfession();
for (Profession profession : professions) {
ProfessionStatus professionStatus = craftingStatus.getProfessionStatus(profession, true);
GuildStatus displayedStatus = (profession == guild) ? guildStatus : null;
CraftingSynopsisItem item = new CraftingSynopsisItem(toon, professionStatus, displayedStatus);
_rowItems.add(item);
}
}
}
use of delta.games.lotro.character.crafting.GuildStatus in project lotro-companion by dmorcellet.
the class VocationEditionPanelController method updateGuildUi.
/**
* Update the UI for guild edition.
*/
public void updateGuildUi() {
// Cleanup
if ((_guildStatus != null) && (_tabbedPane != null)) {
JPanel guildPanel = _guildStatus.getPanel();
_tabbedPane.remove(guildPanel);
}
GuildStatus guildStatus = _status.getGuildStatus();
Profession guild = guildStatus.getProfession();
// Add tab if needed
if (guild != null) {
_guildStatus = new FactionStatusPanelController(guildStatus.getFactionStatus());
JPanel guildPanel = _guildStatus.getPanel();
_tabbedPane.add("Guild", guildPanel);
_tabbedPane.setSelectedComponent(guildPanel);
}
}
Aggregations