org.gnu.gtk
public class FontButton 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 in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.FontButton
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
FontButton(Handle hndl) | |
FontButton()
Construct a new FontButton widget | |
FontButton(String fontName)
Create a FontButton widget initialized with the provided font.
|
Method Summary | |
---|---|
void | addListener(FontButtonListener listener)
Register an object to handle dialog events.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
String | getFont()
Returns the name of the currently selected font.
|
static FontButton | getFontButton(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
boolean | getShowSize()
Returns whether the name of the font style will be shown in the label.
|
boolean | getShowStyle()
Returns whether the name of the font style will be shown in the label.
|
String | getTitle()
Get the title for the font selection dialog.
|
boolean | getUseFont()
Returns whether the selected font is used in the label.
|
boolean | getUseSize()
Returns whether the selected size is used in the label.
|
void | removeListener(FontButtonListener listener)
Removes a listener
|
void | setFont(String fontName)
Sets or changes the currently selected font.
|
void | setShowSize(boolean showSize)
Sets whether the size of the font style will be shown in the label.
|
void | setShowStyle(boolean showStyle)
Sets whether the name of the font style will be shown in the label.
|
void | setTitle(String title)
Set the title for the font selection dialog.
|
void | setUseFont(boolean useFont)
Set whether the selected font is used in the label.
|
void | setUseSize(boolean useSize)
Set whether the selected size is used in the label.
|
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new FontButton widgetDeprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Create a FontButton widget initialized with the provided font.Parameters: fontName Name of the font to display in the font selection dialog.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle dialog events.See Also: FontButtonListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the name of the currently selected font.Returns: The name of the currently selected font.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns whether the name of the font style will be shown in the label.Returns: true if the font style will be shown in the label.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns whether the name of the font style will be shown in the label.Returns: true if the font style will be shown in the label.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Get the title for the font selection dialog.Returns: The title for the font selection dialog.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns whether the selected font is used in the label.Returns: true if the selected font is used in the label.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns whether the selected size is used in the label.Returns: true if the selected size is used in the label.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listenerSee Also: addListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets or changes the currently selected font.Parameters: fontName The name of the font to be selected.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether the size of the font style will be shown in the label.Parameters: showSize
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether the name of the font style will be shown in the label.Parameters: showStyle
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Set the title for the font selection dialog.Parameters: title The title for the dialog.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Set whether the selected font is used in the label.Parameters: useFont If true the font name will be written using the chosen font.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Set whether the selected size is used in the label.Parameters: useSize If true the font name will be written using the chosen font size.