Class AbstractReplaceDialog<T>

    • Field Detail

      • m_LabelRecursive

        protected JLabel m_LabelRecursive
        the recursive label.
      • m_CheckBoxRecursive

        protected BaseCheckBox m_CheckBoxRecursive
        the recursive checkbox.
    • Constructor Detail

      • AbstractReplaceDialog

        protected AbstractReplaceDialog​(Dialog owner)
        Creates a modal dialog without a title with the specified Dialog as its owner.
        Parameters:
        owner - the owning dialog
      • AbstractReplaceDialog

        protected AbstractReplaceDialog​(Frame owner)
        Creates a modal dialog without a title with the specified Frame as its owner.
        Parameters:
        owner - the owning frame
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class ApprovalDialog
      • getDefaultTitle

        protected abstract String getDefaultTitle()
        Returns the title of the dialog.
        Returns:
        the title
      • setupPanel

        protected abstract JPanel setupPanel()
        Creates and returns the panel that is placed in the CENTER, containing the find and replace fields. The panel must use the GridLayout layout manager.
        Returns:
        the generated panel
      • adjustLabels

        protected abstract void adjustLabels()
        Method for adjusting the label sizes.
      • setFind

        public abstract void setFind​(T value)
        Sets the object to find.
        Parameters:
        value - the object to find
      • getFind

        public abstract T getFind()
        Returns the currently set object to look for.
        Returns:
        the object, can be null
      • setReplace

        public abstract void setReplace​(T value)
        Sets the object to replace with.
        Parameters:
        value - the object to replace with
      • getReplace

        public abstract T getReplace()
        Returns the currently set object to replace with.
        Returns:
        the object, can be null
      • setRecursive

        public void setRecursive​(boolean value)
        Sets the recursive state.
        Parameters:
        value - if true then recursive will be ticked
      • isRecursive

        public boolean isRecursive()
        Returns whether the replace is to be recursive.
        Returns:
        true if recursive
      • beforeHide

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

        public void cleanUp()
        Cleans up data structures, frees up memory.

        Default implementation does nothing.
        Specified by:
        cleanUp in interface CleanUpHandler