Search in sources :

Example 16 with WindowController

use of delta.common.ui.swing.windows.WindowController in project lotro-companion by dmorcellet.

the class MainFrameController method doReputationSynopsis.

private void doReputationSynopsis() {
    String id = ReputationSynopsisWindowController.getIdentifier();
    WindowController controller = _windowsManager.getWindow(id);
    if (controller == null) {
        controller = new ReputationSynopsisWindowController(this);
        _windowsManager.registerWindow(controller);
    }
    controller.bringToFront();
}
Also used : ReputationSynopsisWindowController(delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController) CharacterLevelWindowController(delta.games.lotro.gui.stats.levelling.CharacterLevelWindowController) ReputationSynopsisWindowController(delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController) WarbandsWindowController(delta.games.lotro.gui.stats.warbands.WarbandsWindowController) WindowController(delta.common.ui.swing.windows.WindowController) DefaultWindowController(delta.common.ui.swing.windows.DefaultWindowController) DeedsExplorerWindowController(delta.games.lotro.gui.deed.DeedsExplorerWindowController) MapWindowController(delta.games.lotro.maps.ui.MapWindowController) CraftingSynopsisWindowController(delta.games.lotro.gui.stats.crafting.synopsis.CraftingSynopsisWindowController)

Example 17 with WindowController

use of delta.common.ui.swing.windows.WindowController in project lotro-companion by dmorcellet.

the class MainFrameController method doDeeds.

private void doDeeds() {
    WindowController controller = _windowsManager.getWindow(DeedsExplorerWindowController.IDENTIFIER);
    if (controller == null) {
        controller = new DeedsExplorerWindowController(this);
        _windowsManager.registerWindow(controller);
        controller.getWindow().setLocationRelativeTo(getFrame());
    }
    controller.bringToFront();
}
Also used : DeedsExplorerWindowController(delta.games.lotro.gui.deed.DeedsExplorerWindowController) CharacterLevelWindowController(delta.games.lotro.gui.stats.levelling.CharacterLevelWindowController) ReputationSynopsisWindowController(delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController) WarbandsWindowController(delta.games.lotro.gui.stats.warbands.WarbandsWindowController) WindowController(delta.common.ui.swing.windows.WindowController) DefaultWindowController(delta.common.ui.swing.windows.DefaultWindowController) DeedsExplorerWindowController(delta.games.lotro.gui.deed.DeedsExplorerWindowController) MapWindowController(delta.games.lotro.maps.ui.MapWindowController) CraftingSynopsisWindowController(delta.games.lotro.gui.stats.crafting.synopsis.CraftingSynopsisWindowController)

Example 18 with WindowController

use of delta.common.ui.swing.windows.WindowController in project lotro-companion by dmorcellet.

the class DeedDisplayWindowController method setDeed.

/**
 * Set deed to display.
 * @param deed Deed to display.
 */
public void setDeed(DeedDescription deed) {
    disposeDeedPanel();
    _controller = new DeedDisplayPanelController(this, deed);
    JDialog dialog = getDialog();
    Container container = dialog.getContentPane();
    container.removeAll();
    JPanel panel = _controller.getPanel();
    container.add(panel, BorderLayout.CENTER);
    dialog.setTitle("Deed: " + deed.getName());
    dialog.pack();
    WindowController controller = getParentController();
    if (controller != null) {
        Window parentWindow = controller.getWindow();
        dialog.setLocationRelativeTo(parentWindow);
    }
    dialog.setResizable(false);
}
Also used : Window(java.awt.Window) JPanel(javax.swing.JPanel) Container(java.awt.Container) JDialog(javax.swing.JDialog) WindowController(delta.common.ui.swing.windows.WindowController)

Aggregations

WindowController (delta.common.ui.swing.windows.WindowController)18 DefaultWindowController (delta.common.ui.swing.windows.DefaultWindowController)12 DeedsExplorerWindowController (delta.games.lotro.gui.deed.DeedsExplorerWindowController)8 CraftingSynopsisWindowController (delta.games.lotro.gui.stats.crafting.synopsis.CraftingSynopsisWindowController)8 CharacterLevelWindowController (delta.games.lotro.gui.stats.levelling.CharacterLevelWindowController)8 ReputationSynopsisWindowController (delta.games.lotro.gui.stats.reputation.synopsis.ReputationSynopsisWindowController)8 WarbandsWindowController (delta.games.lotro.gui.stats.warbands.WarbandsWindowController)8 MapWindowController (delta.games.lotro.maps.ui.MapWindowController)8 Window (java.awt.Window)6 StashWindowController (delta.games.lotro.gui.character.stash.StashWindowController)4 CharacterLogWindowController (delta.games.lotro.gui.log.CharacterLogWindowController)4 CraftingWindowController (delta.games.lotro.gui.stats.crafting.CraftingWindowController)4 TraitPointsEditionWindowController (delta.games.lotro.gui.stats.traitPoints.TraitPointsEditionWindowController)4 JDialog (javax.swing.JDialog)3 CharacterData (delta.games.lotro.character.CharacterData)2 CharacterFileWindowController (delta.games.lotro.gui.character.CharacterFileWindowController)2 JFrame (javax.swing.JFrame)2 CharacterFile (delta.games.lotro.character.CharacterFile)1 CharactersManager (delta.games.lotro.character.CharactersManager)1 CharacterEvent (delta.games.lotro.character.events.CharacterEvent)1