Search in sources :

Example 1 with FactionStatusPanelController

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);
    }
}
Also used : JPanel(javax.swing.JPanel) Profession(delta.games.lotro.lore.crafting.Profession) FactionStatusPanelController(delta.games.lotro.gui.stats.reputation.form.FactionStatusPanelController) GuildStatus(delta.games.lotro.character.crafting.GuildStatus)

Aggregations

GuildStatus (delta.games.lotro.character.crafting.GuildStatus)1 FactionStatusPanelController (delta.games.lotro.gui.stats.reputation.form.FactionStatusPanelController)1 Profession (delta.games.lotro.lore.crafting.Profession)1 JPanel (javax.swing.JPanel)1