Class DialogArea
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.dialog.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 Summary
Fields Modifier and Type Field Description private static java.lang.String
FEWER_DETAILS_IMAGE
private boolean
initialised
private static java.lang.String
MAC_OS_DEFAULT_FONT
private static java.lang.String
MORE_DETAILS_IMAGE
protected Dialog
parent
private static java.lang.String
WINDOWS_DEFAULT_FONT
-
Constructor Summary
Constructors Constructor Description DialogArea(Dialog parent)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.graphics.Font
getBiggerFont()
protected org.eclipse.swt.graphics.Image
getFewerDetailsImage()
private org.eclipse.swt.graphics.Font
getFont(java.lang.String name, int size, int style)
Build a fontprotected org.eclipse.swt.graphics.Color
getGreyColor()
protected org.eclipse.swt.graphics.Image
getMoreDetailsImage()
protected org.eclipse.swt.graphics.Font
getNormalFont()
protected org.eclipse.swt.graphics.Color
getTitleColor()
(package private) boolean
isInitialised()
private org.eclipse.swt.graphics.Image
loadImage(java.lang.String fileName)
Loads an image(package private) abstract void
render()
Render the content of an area(package private) void
setInitialised(boolean initialised)
-
-
-
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 fontsize
- size of the fontstyle
- 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
-
-