|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
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
public class 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(org.gnu.glib.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. |
static FontSelection |
getFontSelection(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
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.VBox |
---|
getVBox |
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, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontSelection()
public FontSelection(org.gnu.glib.Handle handle)
Method Detail |
---|
public static FontSelection getFontSelection(org.gnu.glib.Handle handle)
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |