org.gnu.gnome
Class FontPicker
public class FontPicker
extends Button
The FontPicker widget is a button that, when selected, presents
a window that enables the user to select from among the many
available fonts.
FontPicker() - Creates a new font picker.
|
FontPicker(Handle handle) - Construct a FontPicker using a handle to a native resource.
|
FontPicker
public FontPicker()
Creates a new font picker.
FontPicker
public FontPicker(Handle handle)
Construct a FontPicker using a handle to a native resource.
enableFontPreview
public void enableFontPreview(boolean enable,
int size)
Enables/Disables thre rendering of the font's name in its font.
enable
- True if the font name should be rendered in its font.
False otherwise.size
- The font size to use when rendering the font names.
enableSize
public void enableSize(boolean showSize)
Enable/Disable the display of font sizes.
showSize
- True if font sizes should be shown. False otherwise.
getEventListenerClass
public Class getEventListenerClass(String signal)
getEventType
public EventType getEventType(String signal)
getFontName
public String getFontName()
Get the name of the selected font.
- The name of the selected font.
getPreviewText
public String getPreviewText()
Get the text showen in the preview.
- The text in the preview.
getTitle
public String getTitle()
Get the title of the dialog.
- The title.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
setFontName
public void setFontName(String fontName)
Set the name of the font to be selected. (Select the specified font)
fontName
- The name of the font to select.
setMode
public void setMode(FontPickerMode mode)
Set the mode.
mode
- The mode.
setPreviewText
public void setPreviewText(String text)
Set the text to show in the preview.
text
- The text to preview.
setTitle
public void setTitle(String title)
Set the title of the dialog.
title
- The title.
setUserWidget
public void setUserWidget(Widget widget)
Set the user defined widget. For use with USER_WIDGET mode.
widget
- The widget.
getMode()
, setMode(FontPickerMode)