|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.swt.widgets
Class FontDialog

java.lang.Objectorg.eclipse.swt.widgets.Dialog
org.eclipse.swt.widgets.FontDialog
- public class FontDialog
- extends Dialog
Instances of this class allow the user to select a font from all available fonts in the system.
- Styles:
- (none)
- Events:
- (none)
IMPORTANT: This class is intended to be subclassed only within the SWT implementation.
| Field Summary | |
(package private) org.eclipse.swt.graphics.FontData |
fontData
|
(package private) org.eclipse.swt.graphics.RGB |
rgb
|
| Fields inherited from class org.eclipse.swt.widgets.Dialog |
parent, style, title |
| Constructor Summary | |
FontDialog(Shell parent)
Constructs a new instance of this class given only its parent. |
|
FontDialog(Shell parent,
int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
|
| Method Summary | |
org.eclipse.swt.graphics.FontData |
getFontData()
Deprecated. use #getFontList () |
org.eclipse.swt.graphics.FontData[] |
getFontList()
Returns a FontData set describing the font that was selected in the dialog, or null if none is available. |
org.eclipse.swt.graphics.RGB |
getRGB()
Returns the currently selected color in the receiver. |
org.eclipse.swt.graphics.FontData |
open()
Makes the dialog visible and brings it to the front of the display. |
void |
setFontData(org.eclipse.swt.graphics.FontData fontData)
Deprecated. use #setFontList (FontData []) |
void |
setFontList(org.eclipse.swt.graphics.FontData[] fontData)
Sets a set of FontData objects describing the font to be selected by default in the dialog, or null to let the platform choose one. |
void |
setRGB(org.eclipse.swt.graphics.RGB rgb)
Sets the receiver's selected color to be the argument. |
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkParent, checkSubclass, error, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fontData
org.eclipse.swt.graphics.FontData fontData
rgb
org.eclipse.swt.graphics.RGB rgb
| Constructor Detail |
FontDialog
public FontDialog(Shell parent)
- Constructs a new instance of this class given only its parent.
FontDialog
public FontDialog(Shell parent, int style)
- Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
| Method Detail |
getFontData
public org.eclipse.swt.graphics.FontData getFontData()
- Deprecated. use #getFontList ()
- Returns a FontData object describing the font that was selected in the dialog, or null if none is available.
- Returns a FontData object describing the font that was selected in the dialog, or null if none is available.
getFontList
public org.eclipse.swt.graphics.FontData[] getFontList()
- Returns a FontData set describing the font that was
selected in the dialog, or null if none is available.
- Since:
- 2.1.1
getRGB
public org.eclipse.swt.graphics.RGB getRGB()
- Returns the currently selected color in the receiver.
- Since:
- 2.1
open
public org.eclipse.swt.graphics.FontData open()
- Makes the dialog visible and brings it to the front
of the display.
setFontData
public void setFontData(org.eclipse.swt.graphics.FontData fontData)
- Deprecated. use #setFontList (FontData [])
- Sets a FontData object describing the font to be selected by default in the dialog, or null to let the platform choose one.
- Sets a FontData object describing the font to be selected by default in the dialog, or null to let the platform choose one.
setFontList
public void setFontList(org.eclipse.swt.graphics.FontData[] fontData)
- Sets a set of FontData objects describing the font to
be selected by default in the dialog, or null to let
the platform choose one.
- Since:
- 2.1.1
setRGB
public void setRGB(org.eclipse.swt.graphics.RGB rgb)
- Sets the receiver's selected color to be the argument.
- Since:
- 2.1
|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC