Search in sources :

Example 1 with DeedDisplayWindowController

use of delta.games.lotro.gui.deed.form.DeedDisplayWindowController in project lotro-companion by dmorcellet.

the class DeedsExplorerWindowController method initDeedsTable.

private void initDeedsTable() {
    TypedProperties prefs = GlobalPreferences.getGlobalProperties("DeedsExplorer");
    _tableController = new DeedsTableController(prefs, _filter);
    ActionListener al = new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent event) {
            String action = event.getActionCommand();
            if (DeedsTableController.DOUBLE_CLICK.equals(action)) {
                DeedDescription deed = (DeedDescription) event.getSource();
                DeedDisplayWindowController window = new DeedDisplayWindowController(DeedsExplorerWindowController.this);
                window.setDeed(deed);
                window.show(false);
            }
        }
    };
    _tableController.addActionListener(al);
}
Also used : DeedDisplayWindowController(delta.games.lotro.gui.deed.form.DeedDisplayWindowController) DeedDescription(delta.games.lotro.lore.deeds.DeedDescription) ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) TypedProperties(delta.common.utils.misc.TypedProperties)

Aggregations

TypedProperties (delta.common.utils.misc.TypedProperties)1 DeedDisplayWindowController (delta.games.lotro.gui.deed.form.DeedDisplayWindowController)1 DeedDescription (delta.games.lotro.lore.deeds.DeedDescription)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1