|
|||||||||
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.Window
org.gnu.gtk.Dialog
org.gnu.gtk.AboutDialog
public class AboutDialog
Display information about an application.
Gtk's AboutDialog offers a simple way to display information about a program like its logo, name, copyright, website and license. It is also possible to give credits to the authors, documenters, translators and artists who have worked on the program. An about dialog is typically opened when the user selects the About option from the Help menu. All parts of the dialog are optional.
Constructor Summary | |
---|---|
AboutDialog()
Create a new AboutDialog. |
|
AboutDialog(org.gnu.glib.Handle handle)
Internal constructor. |
Method Summary | |
---|---|
static AboutDialog |
getAboutDialog(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
java.lang.String[] |
getArtists()
Gets the strings which are displayed in the documenters tab of the secondary credits dialog. |
java.lang.String[] |
getAuthors()
Gets the strings which are displayed in the authors tab of the secondary credits dialog. |
java.lang.String |
getComments()
Gets the comments string displayed in the about dialog. |
java.lang.String |
getCopyright()
Gets the copyright string displayed in the about dialog. |
java.lang.String[] |
getDocumenters()
Gets the strings which are displayed in the artists tab of the secondary credits dialog. |
java.lang.String |
getLicense()
Gets the license information displayed in the secondary license dialog. |
Pixbuf |
getLogo()
Gets the pixbuf displayed as logo in the about dialog. |
java.lang.String |
getLogoIconName()
Gets the icon name displayed as logo in the about dialog. |
java.lang.String |
getName()
Gets the name displayed in the about dialog. |
java.lang.String |
getTranslatorCredits()
Gets the translator credits string which is displayed in the translators tab of the secondary credits dialog. |
java.lang.String |
getVersion()
Gets the version string displayed in the about dialog. |
java.lang.String |
getWebsite()
Gets the URL used for the website link. |
java.lang.String |
getWebsiteLabel()
Sets the label to be used for the website link. |
boolean |
getWrapLicense()
Gets whether the license text will be automatically wrapped. |
java.lang.String[] |
setArtists()
Deprecated. Use getArtists() instead. |
void |
setArtists(java.lang.String[] val)
Sets the strings which are displayed in the documenters tab of the secondary credits dialog. |
void |
setAuthors(java.lang.String[] val)
Sets the strings which are displayed in the authors tab of the secondary credits dialog. |
void |
setComments(java.lang.String val)
Sets the comments string to display in the about dialog. |
void |
setCopyright(java.lang.String val)
Sets the copyright string to display in the about dialog. |
java.lang.String[] |
setDocumenters()
Deprecated. Use getDocumenters() instead. |
void |
setDocumenters(java.lang.String[] val)
Sets the strings which are displayed in the artists tab of the secondary credits dialog. |
static void |
setEmailHook(AboutDialogActivateLinkMethod method)
Set a handler object to be used whenever the user activates an Email link in the authors, documenters or artists sections. |
void |
setLicense(java.lang.String val)
Sets the license information to be displayed in the secondary license dialog. |
void |
setLogo(Pixbuf val)
Sets the pixbuf to be displayed as logo in the about dialog. |
void |
setLogoIconName(java.lang.String val)
Sets the icon name displayed as logo in the about dialog. |
void |
setName(java.lang.String val)
Sets the name to display in the about dialog. |
void |
setTranslatorCredits(java.lang.String val)
Sets the translator credits string which is displayed in the translators tab of the secondary credits dialog. |
static void |
setURLHook(AboutDialogActivateLinkMethod method)
Set a handler object to be used whenever the user activates a URL link in the authors, documenters or artists sections. |
void |
setVersion(java.lang.String val)
Sets the version string to display in the about dialog. |
java.lang.String |
setWebsite()
Deprecated. Use getWebsite() . |
void |
setWebsite(java.lang.String website)
Sets the URL to use for the website link. |
void |
setWebsiteLabel(java.lang.String val)
Sets the label to be used for the website link. |
void |
setWrapLicense(boolean wrapLicense)
Sets whether the license text is automatically wrapped. |
Methods inherited from class org.gnu.gtk.Dialog |
---|
addButton, addButton, addListener, addWidget, getActionArea, getDialog, getDialogLayout, getEventListenerClass, getEventType, getHasSeparator, getResponseForWidget, getType, removeListener, run, setDefaultResponse, setHasSeparator |
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 |
---|
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 AboutDialog(org.gnu.glib.Handle handle)
public AboutDialog()
Method Detail |
---|
public static AboutDialog getAboutDialog(org.gnu.glib.Handle handle)
public void setName(java.lang.String val)
setName
in class Widget
val
- The name for the widget.public java.lang.String getName()
getName
in class Widget
public void setVersion(java.lang.String val)
public java.lang.String getVersion()
public void setCopyright(java.lang.String val)
public java.lang.String getCopyright()
public void setComments(java.lang.String val)
public java.lang.String getComments()
public void setLicense(java.lang.String val)
val
- The license information or NULL.public java.lang.String getLicense()
public void setWrapLicense(boolean wrapLicense)
wrapLicense
- public boolean getWrapLicense()
public void setWebsite(java.lang.String website)
website
- A URL string starting with "http://".public java.lang.String setWebsite()
getWebsite()
.
public java.lang.String getWebsite()
public void setWebsiteLabel(java.lang.String val)
public java.lang.String getWebsiteLabel()
public void setAuthors(java.lang.String[] val)
public java.lang.String[] getAuthors()
public void setDocumenters(java.lang.String[] val)
public java.lang.String[] setDocumenters()
getDocumenters()
instead.
public java.lang.String[] getDocumenters()
public void setArtists(java.lang.String[] val)
public java.lang.String[] setArtists()
getArtists()
instead.
public java.lang.String[] getArtists()
public void setTranslatorCredits(java.lang.String val)
public java.lang.String getTranslatorCredits()
public void setLogo(Pixbuf val)
Window.setDefaultIcon(org.gnu.gdk.Pixbuf)
will be used.
public Pixbuf getLogo()
public void setLogoIconName(java.lang.String val)
public java.lang.String getLogoIconName()
public static void setURLHook(AboutDialogActivateLinkMethod method)
public static void setEmailHook(AboutDialogActivateLinkMethod method)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |