|
|||||||||||
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.Button | +--org.gnu.gnome.FontPicker
The FontPicker widget is a button that, when selected, presents a window that enables the user to select from among the many available fonts.
Constructor Summary | |
FontPicker()
Creates a new font picker. |
|
FontPicker(int handle)
Construct a FontPicker using a handle to a native resource. |
Method Summary | |
void |
addListener(FontPickerListener listener)
Register an object to handle FontPicker events. |
void |
enableFontPreview(boolean enable,
int size)
Enables/Disables thre rendering of the font's name in its font. |
void |
enableSize(boolean showSize)
Enable/Disable the display of font sizes. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
GtkEventType |
getEventType(java.lang.String signal)
|
java.lang.String |
getFontName()
Get the name of the selected font. |
FontPickerMode |
getMode()
Get the mode. |
java.lang.String |
getPreviewText()
Get the text showen in the preview. |
java.lang.String |
getTitle()
Get the title of the dialog. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
Widget |
getUserWidget()
Get the user defined widget. |
void |
removeListener(FontPickerListener listener)
Removes a listener |
void |
setFontName(java.lang.String fontName)
Set the name of the font to be selected. |
void |
setMode(FontPickerMode mode)
Set the mode. |
void |
setPreviewText(java.lang.String text)
Set the text to show in the preview. |
void |
setTitle(java.lang.String title)
Set the title of the dialog. |
void |
setUserWidget(Widget widget)
Set the user defined widget. |
Methods inherited from class org.gnu.gtk.Button |
addListener, click, enter, getLabel, getRelief, getUseStock, getUseUnderline, leave, press, release, removeListener, setLabel, setRelief, setUseStock, setUseUnderline |
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 FontPicker()
public FontPicker(int handle)
Method Detail |
public void enableFontPreview(boolean enable, int size)
enable
- True if the font name should be rendered in its font.
False otherwise.size
- The font size to use when rendering the font names.public void enableSize(boolean showSize)
showSize
- True if font sizes should be shown. False otherwise.public java.lang.String getFontName()
public FontPickerMode getMode()
public java.lang.String getPreviewText()
public java.lang.String getTitle()
public Widget getUserWidget()
getMode()
,
setMode(FontPickerMode)
public void setFontName(java.lang.String fontName)
fontName
- The name of the font to select.public void setMode(FontPickerMode mode)
mode
- The mode.public void setPreviewText(java.lang.String text)
text
- The text to preview.public void setTitle(java.lang.String title)
title
- The title.public void setUserWidget(Widget widget)
widget
- The widget.getMode()
,
setMode(FontPickerMode)
public static Type getType()
public void addListener(FontPickerListener listener)
FontPickerListener
public void removeListener(FontPickerListener listener)
addListener(FontPickerListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Button
public GtkEventType getEventType(java.lang.String signal)
getEventType
in class Button
|
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 |