Class DialogArea
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.dialog.DialogArea
-
- Direct Known Subclasses:
FooterArea,MessageArea
abstract class DialogArea extends java.lang.ObjectThis abstract class if the mother of MessageArea and FooterArea classes
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringFEWER_DETAILS_IMAGEprivate booleaninitialisedprivate static java.lang.StringMAC_OS_DEFAULT_FONTprivate static java.lang.StringMORE_DETAILS_IMAGEprotected Dialogparentprivate static java.lang.StringWINDOWS_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.FontgetBiggerFont()protected org.eclipse.swt.graphics.ImagegetFewerDetailsImage()private org.eclipse.swt.graphics.FontgetFont(java.lang.String name, int size, int style)Build a fontprotected org.eclipse.swt.graphics.ColorgetGreyColor()protected org.eclipse.swt.graphics.ImagegetMoreDetailsImage()protected org.eclipse.swt.graphics.FontgetNormalFont()protected org.eclipse.swt.graphics.ColorgetTitleColor()(package private) booleanisInitialised()private org.eclipse.swt.graphics.ImageloadImage(java.lang.String fileName)Loads an image(package private) abstract voidrender()Render the content of an area(package private) voidsetInitialised(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
-
-