org.gnu.gnome
public class FontPicker extends Button
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may have an equivalent
in java-gnome 4.0; have a look for
org.gnome.gnome.FontPicker
.
See Also: org.gnu.gtk.FontButton
Constructor Summary | |
---|---|
FontPicker()
Creates a new font picker. | |
FontPicker(Handle 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.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
String | getFontName()
Get the name of the selected font.
|
FontPickerMode | getMode()
Get the mode.
|
String | getPreviewText()
Get the text showen in the preview.
|
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(String fontName)
Set the name of the font to be selected. |
void | setMode(FontPickerMode mode)
Set the mode.
|
void | setPreviewText(String text)
Set the text to show in the preview.
|
void | setTitle(String title)
Set the title of the dialog.
|
void | setUserWidget(Widget widget)
Set the user defined widget. |
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Creates a new font picker.Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Construct a FontPicker using a handle to a native resource.Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Register an object to handle FontPicker events.See Also: FontPickerListener
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Enables/Disables thre rendering of the font's name in its font.Parameters: 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.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Enable/Disable the display of font sizes.Parameters: showSize True if font sizes should be shown. False otherwise.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the name of the selected font.Returns: The name of the selected font.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the mode.Returns: The mode.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the text showen in the preview.Returns: The text in the preview.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the title of the dialog.Returns: The title.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the user defined widget. For use with USER_WIDGET mode.Returns: The widget.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Removes a listenerSee Also: addListener
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the name of the font to be selected. (Select the specified font)Parameters: fontName The name of the font to select.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the mode.Parameters: mode The mode.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the text to show in the preview.Parameters: text The text to preview.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the title of the dialog.Parameters: title The title.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the user defined widget. For use with USER_WIDGET mode.Parameters: widget The widget.