Class DialogsPanel

    • Constructor Detail

      • DialogsPanel

        public DialogsPanel​(JSplitPane parent)
        Creates a new DialogsPanel.
        Parameters:
        parent - The parent split pane that allows this panel to change it's size.
    • Method Detail

      • initialize

        public void initialize​(List<ToggleDialog> pAllDialogs)
        Initializes this panel
        Parameters:
        pAllDialogs - The list of dialogs this panel should contain on start.
      • add

        public void add​(ToggleDialog dlg)
        Add a new ToggleDialog to the list of known dialogs and trigger reconstruct.
        Parameters:
        dlg - The dialog to add
      • add

        public void add​(ToggleDialog dlg,
                        boolean doReconstruct)
        Add a new ToggleDialog to the list of known dialogs.
        Parameters:
        dlg - The dialog to add
        doReconstruct - true if reconstruction should be triggered.
      • reconstruct

        public void reconstruct​(DialogsPanel.Action action,
                                ToggleDialog triggeredBy)
        Reconstruct the view, if the configurations of dialogs has changed.
        Parameters:
        action - what happened, so the reconstruction is necessary
        triggeredBy - the dialog that caused the reconstruction
      • getToggleDialog

        public <T extends ToggleDialog> T getToggleDialog​(Class<T> type)
        Replies the instance of a toggle dialog of type type managed by this map frame
        Type Parameters:
        T - toggle dialog type
        Parameters:
        type - the class of the toggle dialog, i.e. UserListDialog.class
        Returns:
        the instance of a toggle dialog of type type managed by this map frame; null, if no such dialog exists