fireFontButtonEvent
protected void fireFontButtonEvent(FontButtonEvent event)
getEventListenerClass
public Class getEventListenerClass(String signal)
- getEventListenerClass in interface Button
getEventType
public EventType getEventType(String signal)
- getEventType in interface Button
getFont
public String getFont()
Returns the name of the currently selected font.
- The name of the currently selected font.
getShowSize
public boolean getShowSize()
Returns whether the name of the font style will be shown in the label.
- true if the font style will be shown in the label.
getShowStyle
public boolean getShowStyle()
Returns whether the name of the font style will be shown in the label.
- true if the font style will be shown in the label.
getTitle
public String getTitle()
Get the title for the font selection dialog.
- The title for the font selection dialog.
getUseFont
public boolean getUseFont()
Returns whether the selected font is used in the label.
- true if the selected font is used in the label.
getUseSize
public boolean getUseSize()
Returns whether the selected size is used in the label.
- true if the selected size is used in the label.
gtk_font_button_get_font_name
protected static final String gtk_font_button_get_font_name(Handle fontButton)
gtk_font_button_get_show_size
protected static final boolean gtk_font_button_get_show_size(Handle fontButton)
gtk_font_button_get_show_style
protected static final boolean gtk_font_button_get_show_style(Handle fontButton)
gtk_font_button_get_title
protected static final String gtk_font_button_get_title(Handle fontButton)
gtk_font_button_get_type
protected static final int gtk_font_button_get_type()
gtk_font_button_get_use_font
protected static final boolean gtk_font_button_get_use_font(Handle fontButton)
gtk_font_button_get_use_size
protected static final boolean gtk_font_button_get_use_size(Handle fontButton)
gtk_font_button_new
protected static final Handle gtk_font_button_new()
gtk_font_button_new_with_font
protected static final Handle gtk_font_button_new_with_font(String fontname)
gtk_font_button_set_font_name
protected static final boolean gtk_font_button_set_font_name(Handle fontButton,
String fontname)
gtk_font_button_set_show_size
protected static final void gtk_font_button_set_show_size(Handle fontButton,
boolean showSize)
gtk_font_button_set_show_style
protected static final void gtk_font_button_set_show_style(Handle fontButton,
boolean showStyle)
gtk_font_button_set_title
protected static final void gtk_font_button_set_title(Handle fontButton,
String title)
gtk_font_button_set_use_font
protected static final void gtk_font_button_set_use_font(Handle fontButton,
boolean useFont)
gtk_font_button_set_use_size
protected static final void gtk_font_button_set_use_size(Handle fontButton,
boolean useSize)
setFont
public void setFont(String fontName)
Sets or changes the currently selected font.
fontName
- The name of the font to be selected.
setShowSize
public void setShowSize(boolean showSize)
Sets whether the size of the font style will be shown in the label.
showSize
-
setShowStyle
public void setShowStyle(boolean showStyle)
Sets whether the name of the font style will be shown in the label.
showStyle
-
setTitle
public void setTitle(String title)
Set the title for the font selection dialog.
title
- The title for the dialog.
setUseFont
public void setUseFont(boolean useFont)
Set whether the selected font is used in the label.
useFont
- If ture the font name will be written
using the chosen font.
setUseSize
public void setUseSize(boolean useSize)
Set whether the selected size is used in the label.
useSize
- If ture the font name will be written
using the chosen font size.