org.gnu.gtk
Class 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.
FontSelection()- Creates a new font selection widget
|
FontSelection(Handle handle)- Construct a new FontSelection from a handle to a native resource.
|
String | getFont()- Returns the name of the currently selected font.
|
static FontSelection | getFontSelection(Handle handle)- Internal static factory method to be used by Java-Gnome only.
|
String | getPreviewText()- Returns the text which appears in the preview box.
|
void | getPreviewText(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(String font)- Sets the currently-selected font.
|
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, getCanFocus, 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, setCanFocus, 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 |
FontSelection
public FontSelection()
Creates a new font selection widget
FontSelection
public FontSelection(Handle handle)
Construct a new FontSelection from a handle to a native resource.
getFont
public String getFont()
Returns the name of the currently selected font.
- The name of the selected font.
getFontSelection
public static FontSelection getFontSelection(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getPreviewText
public String getPreviewText()
Returns the text which appears in the preview box.
getPreviewText
public void getPreviewText(String previewText)
Sets the text to appear in the preview box.
previewText - The text which should appear in the preview box
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface VBox
setFont
public void setFont(String font)
throws org.gnu.gtk.FontSelection.FontNotFoundException Sets the currently-selected font.
font - The name of the font to be selected