Search in sources :

Example 6 with DeedType

use of delta.games.lotro.lore.deeds.DeedType in project lotro-companion by dmorcellet.

the class DeedUiUtils method buildDeedTypeCombo.

/**
 * Build a combo-box controller to choose a deed type.
 * @return A new combo-box controller.
 */
public static ComboBoxController<DeedType> buildDeedTypeCombo() {
    ComboBoxController<DeedType> ctrl = new ComboBoxController<DeedType>();
    ctrl.addEmptyItem("");
    for (DeedType deedType : DeedType.values()) {
        ctrl.addItem(deedType, deedType.toString());
    }
    ctrl.selectItem(null);
    return ctrl;
}
Also used : ComboBoxController(delta.common.ui.swing.combobox.ComboBoxController) DeedType(delta.games.lotro.lore.deeds.DeedType)

Aggregations

DeedType (delta.games.lotro.lore.deeds.DeedType)6 CharacterClass (delta.games.lotro.common.CharacterClass)3 DeedCategoryFilter (delta.games.lotro.lore.deeds.filters.DeedCategoryFilter)2 DeedNameFilter (delta.games.lotro.lore.deeds.filters.DeedNameFilter)2 DeedTypeFilter (delta.games.lotro.lore.deeds.filters.DeedTypeFilter)2 ComboBoxController (delta.common.ui.swing.combobox.ComboBoxController)1 ItemSelectionListener (delta.common.ui.swing.combobox.ItemSelectionListener)1 DynamicTextEditionController (delta.common.ui.swing.text.DynamicTextEditionController)1 TextListener (delta.common.ui.swing.text.TextListener)1 Race (delta.games.lotro.common.Race)1 VirtueId (delta.games.lotro.common.VirtueId)1 ClassPointRewardFilter (delta.games.lotro.common.rewards.filters.ClassPointRewardFilter)1 EmoteRewardFilter (delta.games.lotro.common.rewards.filters.EmoteRewardFilter)1 ItemRewardFilter (delta.games.lotro.common.rewards.filters.ItemRewardFilter)1 LotroPointsRewardFilter (delta.games.lotro.common.rewards.filters.LotroPointsRewardFilter)1 ReputationRewardFilter (delta.games.lotro.common.rewards.filters.ReputationRewardFilter)1 SkillRewardFilter (delta.games.lotro.common.rewards.filters.SkillRewardFilter)1 TitleRewardFilter (delta.games.lotro.common.rewards.filters.TitleRewardFilter)1 TraitRewardFilter (delta.games.lotro.common.rewards.filters.TraitRewardFilter)1 VirtueRewardFilter (delta.games.lotro.common.rewards.filters.VirtueRewardFilter)1