|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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
Constructor Summary | |
FontSelection()
Creates a new font selection widget |
|
FontSelection(int 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. |
void |
setFont(java.lang.String font)
Sets the currently-selected font. |
Methods inherited from class org.gnu.gtk.Box |
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FontSelection()
public FontSelection(int 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()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |