org.gnu.gnome
public class FontPicker extends Button
Deprecated:
The FontPicker widget is a button that, when selected, presents a window that enables the user to select from among the many available fonts.See Also: org.gnu.gtk.FontButton
| Constructor Summary | |
|---|---|
| FontPicker()
Creates a new font picker. | |
| FontPicker(Handle handle)
Construct a FontPicker using a handle to a native resource. | |
| Method Summary | |
|---|---|
| void | addListener(FontPickerListener listener)
Register an object to handle FontPicker events.
|
| void | enableFontPreview(boolean enable, int size)
Enables/Disables thre rendering of the font's name in its font.
|
| void | enableSize(boolean showSize)
Enable/Disable the display of font sizes.
|
| Class | getEventListenerClass(String signal) |
| EventType | getEventType(String signal) |
| String | getFontName()
Get the name of the selected font.
|
| FontPickerMode | getMode()
Get the mode.
|
| String | getPreviewText()
Get the text showen in the preview.
|
| String | getTitle()
Get the title of the dialog.
|
| static Type | getType()
Retrieve the runtime type used by the GLib library. |
| Widget | getUserWidget()
Get the user defined widget. |
| void | removeListener(FontPickerListener listener)
Removes a listener
|
| void | setFontName(String fontName)
Set the name of the font to be selected. |
| void | setMode(FontPickerMode mode)
Set the mode.
|
| void | setPreviewText(String text)
Set the text to show in the preview.
|
| void | setTitle(String title)
Set the title of the dialog.
|
| void | setUserWidget(Widget widget)
Set the user defined widget. |
See Also: FontPickerListener
Parameters: 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.
Parameters: showSize True if font sizes should be shown. False otherwise.
Returns: The name of the selected font.
Returns: The mode.
Returns: The text in the preview.
Returns: The title.
Returns: The widget.
See Also: addListener
Parameters: fontName The name of the font to select.
Parameters: mode The mode.
Parameters: text The text to preview.
Parameters: title The title.