org.gnu.gtk
public class FontButton extends Button
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.
|
Parameters: fontName Name of the font to display in the font selection dialog.
See Also: FontButtonListener
Returns: The name of the currently selected font.
Returns: true if the font style will be shown in the label.
Returns: true if the font style will be shown in the label.
Returns: The title for the font selection dialog.
Returns: true if the selected font is used in the label.
Returns: true if the selected size is used in the label.
See Also: addListener
Parameters: fontName The name of the font to be selected.
Parameters: showSize
Parameters: showStyle
Parameters: title The title for the dialog.
Parameters: useFont If true the font name will be written using the chosen font.
Parameters: useSize If true the font name will be written using the chosen font size.