org.gnu.gtk
Class FontSelectionDialog
public class 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.
addButton , addButton , addListener , addWidget , getActionArea , getDialog , getDialogLayout , getEventListenerClass , getEventType , getHasSeparator , getResponseForWidget , getType , removeListener , run , setDefaultResponse , setHasSeparator |
addAccelGroup , deiconify , destroy , fullscreen , getAcceptFocus , getDefaultIconList , getFocusOnMap , getFocusWidget , getGravity , getIcon , getIconList , getIconName , getPosition , getScreen , getSize , getSkipPagerHint , getSkipTaskbarHint , getTitle , getTransientParent , getType , getWindow , hasToplevelFocus , iconify , isActive , isDestroyed , listToplevelWindows , maximize , move , present , removeAccelGroup , resize , setAcceptFocus , setAutoStartupNotification , setDecorated , setDefaultIcon , setDefaultIconFromFile , setDefaultIconList , setDefaultIconName , setDefaultSize , setDefaultWidget , setFocusOnMap , setFocusWidget , setGeometryHints , setGravity , setIcon , setIconFromFile , setIconList , setIconName , setKeepAbove , setKeepBelow , setModal , setPosition , setResizable , setScreen , setSkipPagerHint , setSkipTaskbarHint , setTitle , setTransientParent , stick , unfullscreen , unmaximize , unstick |
add , addListener , getBorderWidth , getChildren , getEventListenerClass , getEventType , getResizeMode , getType , remove , removeListener , resizeChildren , setBorderWidth , setResizeMode |
activate , addAccelerator , addEvents , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , canActivateAccel , createContext , createLayout , draw , drawArea , drawArea , finish , getAccessible , getAllocation , getColormap , getContext , getData , getDisplay , getDragData , getEventListenerClass , getEventType , getExtensionEvents , getModifierStyle , getName , getParent , getParentWindow , getPointer , getRootWindow , getScreen , getSensitive , getStyle , getToplevel , getType , getWidget , getWindow , grabDefault , grabFocus , hasFocus , hasScreen , hide , hideAll , highlight , highlight , intersect , isAncestor , makeWidget , modifyStyle , popColormap , pushColormap , realize , removeAccelerator , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , reparent , setBackgroundColor , setBaseColor , setColormap , setDoubleBuffered , setDragDestination , setDragIcon , setDragIconPixbuf , setDragIconStock , setDragSource , setEvents , setExtensionEvents , setFont , setForegroundColor , setMinimumSize , setName , setNoDragDestination , setNoDragSource , setSensitive , setTextColor , shapeCombineMask , show , showAll , unHighlight , unHighlight |
addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addListener , collect , freezeNotify , getBooleanProperty , getData , getDoubleProperty , getEventListenerClass , getEventType , getFloatProperty , getGObjectFromHandle , getIntProperty , getJavaObjectProperty , getLongProperty , getPixbufProperty , getProperty , getStringProperty , hasProperty , notify , removeEventHandler , removeListener , setBooleanProperty , setData , setDoubleProperty , setFloatProperty , setIntProperty , setJavaObjectProperty , setLongProperty , setPixbufProperty , setProperty , setStringProperty , thawNotify |
FontSelectionDialog
public FontSelectionDialog(Handle handle)
Construct a FontSelectionDialog using a handle to a native resource.
FontSelectionDialog
public FontSelectionDialog(String title)
Construct a new FontSelectionDialog object.
title
- The title for the dialog.
getApplyButton
public Button getApplyButton()
Return the Apply Button widget for this Dialog.
getCancelButton
public Button getCancelButton()
Return the Cancel Button widget for this dialog.
getFontName
public String getFontName()
Gets the currently selected font name.
- The name of the currently selected font.
getFontSelectionDialog
public static FontSelectionDialog getFontSelectionDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getOKButton
public Button getOKButton()
Return the OK Button widget for this Dialog.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Dialog
setFontname
public void setFontname(String fontName)
Sets the currently selected font.
fontName
- The name of the font to set as the currently selected font.
setPreviewText
public void setPreviewText(String text)
Sets the text displayed in the preview area.
text
- The text to display in the preview area.