Class AbstractLogEntryDialog

    • Field Detail

      • m_Width

        protected int m_Width
        the width of the dialog.
      • m_Height

        protected int m_Height
        the height of the dialog.
    • Constructor Detail

      • AbstractLogEntryDialog

        public AbstractLogEntryDialog()
    • Method Detail

      • getDefaultWidth

        protected int getDefaultWidth()
        Returns the default width for the dialog.
        Returns:
        the default width
      • getDefaultHeight

        protected int getDefaultHeight()
        Returns the default height for the dialog.
        Returns:
        the default height
      • setWidth

        public void setWidth​(int value)
        Sets the width of the dialog.
        Parameters:
        value - the width
      • getWidth

        public int getWidth()
        Returns the currently set width of the dialog.
        Returns:
        the width
      • widthTipText

        public String widthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setHeight

        public void setHeight​(int value)
        Sets the height of the dialog.
        Parameters:
        value - the height
      • getHeight

        public int getHeight()
        Returns the currently set height of the dialog.
        Returns:
        the height
      • heightTipText

        public String heightTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultTitle

        protected String getDefaultTitle()
        Returns the default title for the dialog.
        Returns:
        the title
      • toString

        protected String toString​(LogEntry entry)
        Turns the content into a string.
        Parameters:
        entry - the entry to turn into a string
        Returns:
        the string representation
      • createTitle

        protected String createTitle​(LogEntry entry)
        Generates a title for the entry.
        Parameters:
        entry - the entry to create the title for
        Returns:
        the title
      • preCreateDialog

        protected void preCreateDialog​(LogViewer parent,
                                       LogEntry entry)
        Hook method before the dialog gets created.

        Default implementation does nothing.
        Parameters:
        parent - the parent actor
        entry - the entry to display
      • createDialog

        protected abstract BaseDialog createDialog​(LogEntry entry)
        Creates the dialog.
        Parameters:
        entry - the entry to display
        Returns:
        the dialog
      • postCreateDialog

        protected void postCreateDialog​(LogViewer parent,
                                        LogEntry entry)
        Hook method after the dialog gets created.

        Default implementation does nothing.
        Parameters:
        parent - the parent actor
        entry - the entry to display
      • create

        public BaseDialog create​(LogViewer parent,
                                 LogEntry entry)
        Displays the dialog with the given entry.
        Parameters:
        parent - the parent actor
        entry - the entry to display
        Returns:
        the dialog