Class AbstractTableBasedSelectionDialog<T,​P extends AbstractTableBasedSelectionPanel>

    • Field Detail

      • m_Current

        protected T[] m_Current
        the chosen items.
    • Constructor Detail

      • AbstractTableBasedSelectionDialog

        protected AbstractTableBasedSelectionDialog​(Dialog owner,
                                                    String title)
        Creates a modal dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
      • AbstractTableBasedSelectionDialog

        protected AbstractTableBasedSelectionDialog​(Frame owner,
                                                    String title)
        Creates a modal dialog.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
    • Method Detail

      • finishInit

        protected void finishInit()
        finishes the initialization.
        Overrides:
        finishInit in class BaseDialog
      • newPanel

        protected abstract P newPanel()
        Returns a new instance of the panel to use in the GUI.
        Returns:
        the panel to use
      • getPanel

        public P getPanel()
        Returns the underlying panel.
        Returns:
        the panel
      • update

        protected void update()
        updates the enabled state etc. of all the GUI elements.
      • setMultipleSelection

        public void setMultipleSelection​(boolean value)
        Sets whether multiple or single selection is used.
        Parameters:
        value - if true multiple names can be selected
      • isMultipleSelection

        public boolean isMultipleSelection()
        Returns whether multiple or single selection is active.
        Returns:
        true if multiple selection is active
      • setItem

        public void setItem​(T value)
        Sets the initially selected set name.
        Parameters:
        value - the set name
      • getItem

        public T getItem()
        Returns the set name to load, null if none chosen or dialog canceled.
        Returns:
        the set name of the data to load
      • setItems

        public void setItems​(T[] value)
        Sets the initially selected set names.
        Parameters:
        value - the set names
      • getItems

        public T[] getItems()
        Returns the selected set names to load, null if none chosen or dialog canceled.
        Returns:
        the set names of the data to load
      • beforeShow

        protected void beforeShow()
        Hook method just before the dialog is made visible.
        Overrides:
        beforeShow in class ApprovalDialog
      • beforeHide

        protected void beforeHide()
        Hook method just before the dialog is hidden.
        Overrides:
        beforeHide in class BaseDialog