use of delta.games.lotro.gui.stats.reputation.form.FactionStatusPanelController 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