Class DialogArea

  • Direct Known Subclasses:
    FooterArea, MessageArea

    abstract class DialogArea
    extends java.lang.Object
    This abstract class if the mother of MessageArea and FooterArea classes
    • Field Detail

      • MORE_DETAILS_IMAGE

        private static final java.lang.String MORE_DETAILS_IMAGE
        See Also:
        Constant Field Values
      • FEWER_DETAILS_IMAGE

        private static final java.lang.String FEWER_DETAILS_IMAGE
        See Also:
        Constant Field Values
      • WINDOWS_DEFAULT_FONT

        private static final java.lang.String WINDOWS_DEFAULT_FONT
        See Also:
        Constant Field Values
      • MAC_OS_DEFAULT_FONT

        private static final java.lang.String MAC_OS_DEFAULT_FONT
        See Also:
        Constant Field Values
      • parent

        protected final Dialog parent
      • initialised

        private boolean initialised
    • Constructor Detail

      • DialogArea

        public DialogArea​(Dialog parent)
        Constructor
        Parameters:
        parent - parent dialog
    • Method Detail

      • render

        abstract void render()
        Render the content of an area
      • isInitialised

        boolean isInitialised()
        Returns:
        the initialised field
      • setInitialised

        void setInitialised​(boolean initialised)
        Parameters:
        initialised - the initialised value to set
      • getNormalFont

        protected org.eclipse.swt.graphics.Font getNormalFont()
        Returns:
        the normal font used by the dialog box
      • getBiggerFont

        protected org.eclipse.swt.graphics.Font getBiggerFont()
        Returns:
        the bigger font used by the dialog box
      • getFont

        private org.eclipse.swt.graphics.Font getFont​(java.lang.String name,
                                                      int size,
                                                      int style)
        Build a font
        Parameters:
        name - name of the font
        size - size of the font
        style - style of the font
        Returns:
        the font
      • getTitleColor

        protected org.eclipse.swt.graphics.Color getTitleColor()
        Returns:
        the title's color (blue)
      • getGreyColor

        protected org.eclipse.swt.graphics.Color getGreyColor()
        Returns:
        the grey color
      • getFewerDetailsImage

        protected org.eclipse.swt.graphics.Image getFewerDetailsImage()
        Returns:
        the image "fewer details"
      • getMoreDetailsImage

        protected org.eclipse.swt.graphics.Image getMoreDetailsImage()
        Returns:
        the image "more details"
      • loadImage

        private org.eclipse.swt.graphics.Image loadImage​(java.lang.String fileName)
        Loads an image
        Parameters:
        fileName - file name of the image
        Returns:
        the image