|
|||||||||||
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.Bin | +--org.gnu.gtk.Window | +--org.gnu.gtk.Dialog | +--org.gnu.gtk.FontSelectionDialog
The FontSelectionDialog widget is a dialog for selecting a font. Filters can be used to limit the fonts shown. There are 2 filters in the FileSelectionDialog - a base filter and a user filter. The base filter cannot be changed by the user, so this can be used when the user must choose from the restricted set of fonts. The user filter can be changed or reset by the user, using the 'Reset Filter' button or changing the options on the 'Filter' page of the dialog.
Constructor Summary | |
FontSelectionDialog(int handle)
Construct a FontSelectionDialog using a handle to a native resource. |
|
FontSelectionDialog(java.lang.String title)
Construct a new FontSelectionDialog object. |
Method Summary | |
Button |
getApplyButton()
Return the Apply Button widget for this Dialog. |
Button |
getCancelButton()
Return the Cancel Button widget for this dialog. |
java.lang.String |
getFontName()
Gets the currently selected font name. |
Button |
getOKButton()
Return the OK Button widget for this Dialog. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
setFontname(java.lang.String fontName)
Sets the currently selected font. |
void |
setPreviewText(java.lang.String text)
Sets the text displayed in the preview area. |
Methods inherited from class org.gnu.gtk.Dialog |
addButton, addListener, addWidget, getActionArea, getDialogLayout, getEventListenerClass, getEventType, getHasSeparator, removeListener, run, setDefaultResponse, setHasSeparator |
Methods inherited from class org.gnu.gtk.Window |
addAccelGroup, deiconify, getFocusWidget, getGravity, getPosition, getSize, getTitle, iconify, maximize, move, present, removeAccelGroup, resize, setDecorated, setDefaultSize, setDefaultWidget, setFocusWidget, setGeometryHints, setGravity, setIcon, setModal, setPosition, setResizable, setTitle, stick, unmaximize, unstick |
Methods inherited from class org.gnu.gtk.Bin |
getChild |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, 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 FontSelectionDialog(java.lang.String title)
title
- The title for the dialog.public FontSelectionDialog(int handle)
Method Detail |
public java.lang.String getFontName()
public void setFontname(java.lang.String fontName)
fontName
- The name of the font to set as the currently selected font.public void setPreviewText(java.lang.String text)
text
- The text to display in the preview area.public Button getOKButton()
public Button getApplyButton()
public Button getCancelButton()
public 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 |