|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Box
org.gnu.gtk.VBox
org.gnu.gtk.FontSelection
A widget that lists the available fonts, styles and sizes, allowing the
user to select a font. It is used in the FontSelectionDialog
widget to provide a dialog box for selecting fonts.
FontSelectionDialog
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
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 | |
java.lang.String |
getFont()
Returns the name of the currently selected font. |
java.lang.String |
getPreviewText()
Returns the text which appears in the preview box. |
void |
getPreviewText(java.lang.String previewText)
Sets the text to appear in the preview box. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
protected static java.lang.String |
gtk_font_selection_get_font_name(Handle fontsel)
|
protected static java.lang.String |
gtk_font_selection_get_preview_text(Handle fontsel)
|
protected static int |
gtk_font_selection_get_type()
|
protected static Handle |
gtk_font_selection_new()
|
protected static boolean |
gtk_font_selection_set_font_name(Handle fontsel,
java.lang.String fontname)
|
protected static void |
gtk_font_selection_set_preview_text(Handle fontsel,
java.lang.String text)
|
void |
setFont(java.lang.String font)
Sets the currently-selected font. |
Methods inherited from class org.gnu.gtk.VBox |
gtk_vbox_get_type, gtk_vbox_new |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FontSelection()
public FontSelection(Handle handle)
Method Detail |
public void setFont(java.lang.String font) throws org.gnu.gtk.FontSelection.FontNotFoundException
font
- The name of the font to be selected
org.gnu.gtk.FontSelection.FontNotFoundException
public java.lang.String getFont()
public java.lang.String getPreviewText()
public void getPreviewText(java.lang.String previewText)
previewText
- The text which should appear in the preview boxpublic static Type getType()
protected static final int gtk_font_selection_get_type()
protected static final Handle gtk_font_selection_new()
protected static final java.lang.String gtk_font_selection_get_font_name(Handle fontsel)
protected static final boolean gtk_font_selection_set_font_name(Handle fontsel, java.lang.String fontname)
protected static final java.lang.String gtk_font_selection_get_preview_text(Handle fontsel)
protected static final void gtk_font_selection_set_preview_text(Handle fontsel, java.lang.String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |