org.gnu.gnome

Class Druid


public class Druid
extends Container

The GNOME druid is a system for assisting the user with installing a service. It is roughly equivalent in functionality to the Wizards available in Windows.

Constructor Summary

Druid()
Construct a new Druid object.
Druid(Handle handle)
Construct a new Druid from a handle to a native resource.
Druid(String title, Window parent, boolean closeOnCancel, Widget window)
Construct a new Druid object that already contains a window.

Method Summary

void
appendPage(DruidPage page)
Append a DruidPage into the list of pages for this dialog.
protected static Handle
getBack(Handle cptr)
Button
getBackButton()
Retrieve the "Back" button.
protected static Handle
getCancel(Handle cptr)
Button
getCancelButton()
Retrieve the "Cancel" button.
protected static Handle
getFinish(Handle cptr)
Button
getFinishButton()
Retrieve the "Finish" button.
protected static Handle
getHelp(Handle cptr)
Button
getHelpButton()
Retrieve the "Help" button.
protected static Handle
getNext(Handle cptr)
Button
getNextButton()
Retrieve the "Next" button.
static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static void
gnome_druid_append_page(Handle druid, Handle page)
protected static int
gnome_druid_get_type()
protected static void
gnome_druid_insert_page(Handle druid, Handle backPage, Handle page)
protected static Handle
gnome_druid_new()
protected static Handle
gnome_druid_new_with_window(String title, Handle parent, boolean closeOnCancel, Handle window)
protected static void
gnome_druid_prepend_page(Handle druid, Handle page)
protected static void
gnome_druid_set_buttons_sensitive(Handle druid, boolean backSensitive, boolean nextSensitive, boolean cancelSensitive, boolean helpSensitive)
protected static void
gnome_druid_set_page(Handle druid, Handle page)
protected static void
gnome_druid_set_show_finish(Handle druid, boolean showFinish)
protected static void
gnome_druid_set_show_help(Handle druid, boolean showHelp)
void
insertPage(DruidPage backPage, DruidPage page)
Insert page after backPage into the list of pages for this dialog.
void
prependPage(DruidPage page)
Prepends a DruidPage into the list of pages for this dialog.
void
setButtonsSensitive(boolean backSensitive, boolean nextSensitive, boolean cancelSensitive, boolean helpSensitive)
Sets the sensitivity of the buttons on the Druid dialog.
void
setPage(DruidPage page)
Set the currently displayed page to page.
void
setShowFinish(boolean showFinish)
Sets the text on the last button of the dialog.
void
setShowHelp(boolean showHelp)
Sets whether the help button should be displayed

Constructor Details

Druid

public Druid()
Construct a new Druid object.


Druid

public Druid(Handle handle)
Construct a new Druid from a handle to a native resource.


Druid

public Druid(String title,
             Window parent,
             boolean closeOnCancel,
             Widget window)
Construct a new Druid object that already contains a window.

Method Details

appendPage

public void appendPage(DruidPage page)
Append a DruidPage into the list of pages for this dialog.

Parameters:
page - The page to append.


getBack

protected static final Handle getBack(Handle cptr)


getBackButton

public Button getBackButton()
Retrieve the "Back" button.


getCancel

protected static final Handle getCancel(Handle cptr)


getCancelButton

public Button getCancelButton()
Retrieve the "Cancel" button.


getFinish

protected static final Handle getFinish(Handle cptr)


getFinishButton

public Button getFinishButton()
Retrieve the "Finish" button.


getHelp

protected static final Handle getHelp(Handle cptr)


getHelpButton

public Button getHelpButton()
Retrieve the "Help" button.


getNext

protected static final Handle getNext(Handle cptr)


getNextButton

public Button getNextButton()
Retrieve the "Next" button.


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


gnome_druid_append_page

protected static final void gnome_druid_append_page(Handle druid,
                                                    Handle page)


gnome_druid_get_type

protected static final int gnome_druid_get_type()


gnome_druid_insert_page

protected static final void gnome_druid_insert_page(Handle druid,
                                                    Handle backPage,
                                                    Handle page)


gnome_druid_new

protected static final Handle gnome_druid_new()


gnome_druid_new_with_window

protected static final Handle gnome_druid_new_with_window(String title,
                                                          Handle parent,
                                                          boolean closeOnCancel,
                                                          Handle window)


gnome_druid_prepend_page

protected static final void gnome_druid_prepend_page(Handle druid,
                                                     Handle page)


gnome_druid_set_buttons_sensitive

protected static final void gnome_druid_set_buttons_sensitive(Handle druid,
                                                              boolean backSensitive,
                                                              boolean nextSensitive,
                                                              boolean cancelSensitive,
                                                              boolean helpSensitive)


gnome_druid_set_page

protected static final void gnome_druid_set_page(Handle druid,
                                                 Handle page)


gnome_druid_set_show_finish

protected static final void gnome_druid_set_show_finish(Handle druid,
                                                        boolean showFinish)


gnome_druid_set_show_help

protected static final void gnome_druid_set_show_help(Handle druid,
                                                      boolean showHelp)


insertPage

public void insertPage(DruidPage backPage,
                       DruidPage page)
Insert page after backPage into the list of pages for this dialog. If backPage is not present or null, page will be prepended.

Parameters:
backPage -
page -


prependPage

public void prependPage(DruidPage page)
Prepends a DruidPage into the list of pages for this dialog.

Parameters:
page - The page to prepend.


setButtonsSensitive

public void setButtonsSensitive(boolean backSensitive,
                                boolean nextSensitive,
                                boolean cancelSensitive,
                                boolean helpSensitive)
Sets the sensitivity of the buttons on the Druid dialog.

Parameters:
backSensitive - Determines if the "Back" button is sensitive.
nextSensitive - Determines if the "Next" button is sensitive.
cancelSensitive - Determines if the "Cancel" button is sensitive.
helpSensitive - Determines if the "Help" button is sensitive.


setPage

public void setPage(DruidPage page)
Set the currently displayed page to page.

Parameters:
page - The page to make the current page.


setShowFinish

public void setShowFinish(boolean showFinish)
Sets the text on the last button of the dialog. If showFinish is true the text becomes "Finish". Otherwise the text is set to "Cancel".

Parameters:
showFinish - Determines the text of the last button on the dialog.


setShowHelp

public void setShowHelp(boolean showHelp)
Sets whether the help button should be displayed