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();
}
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();
}
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);
}
Aggregations