Search in sources :

Example 1 with SkillPointTableModel

use of pcgen.gui2.tabs.skill.SkillPointTableModel in project pcgen by PCGen.

the class SkillInfoTab method createModels.

@Override
public ModelMap createModels(final CharacterFacade character) {
    ModelMap models = new ModelMap();
    ListSelectionModel listModel = new DefaultListSelectionModel();
    listModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    models.put(ListSelectionModel.class, listModel);
    models.put(SkillPointTableModel.class, new SkillPointTableModel(character));
    models.put(SkillTreeViewModel.class, new SkillTreeViewModel(character, listModel));
    models.put(FilterHandler.class, new FilterHandler(character, listModel));
    models.put(InfoHandler.class, new InfoHandler(character));
    models.put(LevelSelectionHandler.class, new LevelSelectionHandler(character, listModel));
    models.put(SkillRankSpinnerEditor.class, new SkillRankSpinnerEditor(character, listModel));
    SkillSheetHandler skillSheetHandler = new SkillSheetHandler(character);
    models.put(SkillSheetHandler.class, skillSheetHandler);
    models.put(SkillFilterHandler.class, new SkillFilterHandler(character, skillSheetHandler));
    return models;
}
Also used : SkillPointTableModel(pcgen.gui2.tabs.skill.SkillPointTableModel) DefaultListSelectionModel(javax.swing.DefaultListSelectionModel) ListSelectionModel(javax.swing.ListSelectionModel) DefaultListSelectionModel(javax.swing.DefaultListSelectionModel) SkillTreeViewModel(pcgen.gui2.tabs.skill.SkillTreeViewModel)

Aggregations

DefaultListSelectionModel (javax.swing.DefaultListSelectionModel)1 ListSelectionModel (javax.swing.ListSelectionModel)1 SkillPointTableModel (pcgen.gui2.tabs.skill.SkillPointTableModel)1 SkillTreeViewModel (pcgen.gui2.tabs.skill.SkillTreeViewModel)1