|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Button
org.gnu.gtk.FontButton
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
FontButton()
Construct a new FontButton widget |
|
FontButton(Handle hndl)
|
|
FontButton(java.lang.String fontName)
Create a FontButton widget initialized with the provided font. |
Method Summary | |
void |
addListener(FontButtonListener listener)
Register an object to handle dialog events. |
protected void |
fireFontButtonEvent(FontButtonEvent event)
|
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.String signal)
|
java.lang.String |
getFont()
Returns the name of the currently selected font. |
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. |
java.lang.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. |
protected static java.lang.String |
gtk_font_button_get_font_name(Handle fontButton)
|
protected static boolean |
gtk_font_button_get_show_size(Handle fontButton)
|
protected static boolean |
gtk_font_button_get_show_style(Handle fontButton)
|
protected static java.lang.String |
gtk_font_button_get_title(Handle fontButton)
|
protected static int |
gtk_font_button_get_type()
|
protected static boolean |
gtk_font_button_get_use_font(Handle fontButton)
|
protected static boolean |
gtk_font_button_get_use_size(Handle fontButton)
|
protected static Handle |
gtk_font_button_new_with_font(java.lang.String fontname)
|
protected static Handle |
gtk_font_button_new()
|
protected static boolean |
gtk_font_button_set_font_name(Handle fontButton,
java.lang.String fontname)
|
protected static void |
gtk_font_button_set_show_size(Handle fontButton,
boolean showSize)
|
protected static void |
gtk_font_button_set_show_style(Handle fontButton,
boolean showStyle)
|
protected static void |
gtk_font_button_set_title(Handle fontButton,
java.lang.String title)
|
protected static void |
gtk_font_button_set_use_font(Handle fontButton,
boolean useFont)
|
protected static void |
gtk_font_button_set_use_size(Handle fontButton,
boolean useSize)
|
void |
removeListener(FontButtonListener listener)
Removes a listener |
void |
setFont(java.lang.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(java.lang.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. |
Methods inherited from class org.gnu.gtk.Bin |
getChild, gtk_bin_get_child, gtk_bin_get_type |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FontButton(Handle hndl)
public FontButton()
public FontButton(java.lang.String fontName)
fontName
- Name of the font to display in the
font selection dialog.Method Detail |
public void setTitle(java.lang.String title)
title
- The title for the dialog.public java.lang.String getTitle()
public void setUseFont(boolean useFont)
useFont
- If ture the font name will be written
using the chosen font.public boolean getUseFont()
public void setUseSize(boolean useSize)
useSize
- If ture the font name will be written
using the chosen font size.public boolean getUseSize()
public void setShowStyle(boolean showStyle)
showStyle
- public boolean getShowStyle()
public void setShowSize(boolean showSize)
showSize
- public boolean getShowSize()
public void setFont(java.lang.String fontName)
fontName
- The name of the font to be selected.public java.lang.String getFont()
public void addListener(FontButtonListener listener)
FontButtonListener
public void removeListener(FontButtonListener listener)
addListener(FontButtonListener)
protected void fireFontButtonEvent(FontButtonEvent event)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Button
public EventType getEventType(java.lang.String signal)
getEventType
in class Button
protected static final int gtk_font_button_get_type()
protected static final Handle gtk_font_button_new()
protected static final Handle gtk_font_button_new_with_font(java.lang.String fontname)
protected static final java.lang.String gtk_font_button_get_title(Handle fontButton)
protected static final void gtk_font_button_set_title(Handle fontButton, java.lang.String title)
protected static final boolean gtk_font_button_get_use_font(Handle fontButton)
protected static final void gtk_font_button_set_use_font(Handle fontButton, boolean useFont)
protected static final boolean gtk_font_button_get_use_size(Handle fontButton)
protected static final void gtk_font_button_set_use_size(Handle fontButton, boolean useSize)
protected static final java.lang.String gtk_font_button_get_font_name(Handle fontButton)
protected static final boolean gtk_font_button_set_font_name(Handle fontButton, java.lang.String fontname)
protected static final boolean gtk_font_button_get_show_style(Handle fontButton)
protected static final void gtk_font_button_set_show_style(Handle fontButton, boolean showStyle)
protected static final boolean gtk_font_button_get_show_size(Handle fontButton)
protected static final void gtk_font_button_set_show_size(Handle fontButton, boolean showSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |