org.gnu.gtk
public class FontSelection extends VBox
See Also: FontSelectionDialog
Constructor Summary | |
---|---|
FontSelection()
Creates a new font selection widget | |
FontSelection(Handle handle)
Construct a new FontSelection from a handle to a native resource. |
Method Summary | |
---|---|
String | getFont()
Returns the name of the currently selected font.
|
static FontSelection | getFontSelection(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
String | getPreviewText()
Returns the text which appears in the preview box. |
void | getPreviewText(String previewText)
Sets the text to appear in the preview box.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | setFont(String font)
Sets the currently-selected font.
|
Returns: The name of the selected font.
Parameters: previewText The text which should appear in the preview box
Parameters: font The name of the font to be selected