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.
Button
getBackButton()
Retrieve the "Back" button.
Button
getCancelButton()
Retrieve the "Cancel" button.
static Druid
getDruid(Handle handle)
Internal static factory method to be used by Java-Gnome only.
Button
getFinishButton()
Retrieve the "Finish" button.
Button
getHelpButton()
Retrieve the "Help" button.
Button
getNextButton()
Retrieve the "Next" button.
static Type
getType()
Retrieve the runtime type used by the GLib library.
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.

getBackButton

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

getCancelButton

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

getDruid

public static Druid getDruid(Handle handle)
Internal static factory method to be used by Java-Gnome only.

getFinishButton

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

getHelpButton

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

getNextButton

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

getType

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

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