|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.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
public class FontButton
Constructor Summary | |
---|---|
FontButton()
Construct a new FontButton widget |
|
FontButton(org.gnu.glib.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. |
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. |
static FontButton |
getFontButton(org.gnu.glib.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. |
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. |
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.Button |
---|
addListener, click, enter, getButton, getFocusOnClick, getImage, getLabel, getRelief, getType, getUseStock, getUseUnderline, getXAlignment, getYAlignment, leave, press, release, removeListener, setAlignment, setFocusOnClick, setImage, setLabel, setRelief, setUseStock, setUseUnderline |
Methods inherited from class org.gnu.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontButton(org.gnu.glib.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 static FontButton getFontButton(org.gnu.glib.Handle handle)
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 true the font name will be written using the chosen font.public boolean getUseFont()
public void setUseSize(boolean useSize)
useSize
- If true 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)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Button
public EventType getEventType(java.lang.String signal)
getEventType
in class Button
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |