addListener
public void addListener(FontButtonListener listener)
Register an object to handle dialog events.
getFont
public String getFont()
Returns the name of the currently selected font.
- The name of the currently selected font.
getFontButton
public static FontButton getFontButton(Handle handle)
Internal static factory method to be used by Java-Gnome only.
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.
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.
setShowStyle
public void setShowStyle(boolean showStyle)
Sets whether the name of the font style will be shown in the label.
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 true 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 true the font name will be written using the chosen font
size.