org.gnu.gnome
Class Druid

java.lang.Object
  extended byorg.gnu.glib.Struct
      extended byorg.gnu.glib.GObject
          extended byorg.gnu.gtk.GtkObject
              extended byorg.gnu.gtk.Widget
                  extended byorg.gnu.gtk.Container
                      extended byorg.gnu.gnome.Druid

public class Druid
extends org.gnu.gtk.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(org.gnu.glib.Handle handle)
          Construct a new Druid from a handle to a native resource.
Druid(java.lang.String title, org.gnu.gtk.Window parent, boolean closeOnCancel, org.gnu.gtk.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.
 org.gnu.gtk.Button getBackButton()
          Retrieve the "Back" button.
 org.gnu.gtk.Button getCancelButton()
          Retrieve the "Cancel" button.
 org.gnu.gtk.Button getFinishButton()
          Retrieve the "Finish" button.
 org.gnu.gtk.Button getHelpButton()
          Retrieve the "Help" button.
 org.gnu.gtk.Button getNextButton()
          Retrieve the "Next" button.
static org.gnu.glib.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
 
Methods inherited from class org.gnu.gtk.Container
add, addListener, getBorderWidth, getChildren, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode
 
Methods inherited from class org.gnu.gtk.Widget
activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, finish, getAccessible, getColormap, getContext, getData, getDisplay, getDragData, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getWidget, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight
 
Methods inherited from class org.gnu.gtk.GtkObject
destroy, sink
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify
 
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

Druid

public Druid()
Construct a new Druid object.


Druid

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


Druid

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

Method Detail

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.

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


prependPage

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

Parameters:
page - The page to prepend.

appendPage

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

Parameters:
page - The page to append.

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 -

setPage

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

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

getHelpButton

public org.gnu.gtk.Button getHelpButton()
Retrieve the "Help" button.


getBackButton

public org.gnu.gtk.Button getBackButton()
Retrieve the "Back" button.


getNextButton

public org.gnu.gtk.Button getNextButton()
Retrieve the "Next" button.


getCancelButton

public org.gnu.gtk.Button getCancelButton()
Retrieve the "Cancel" button.


getFinishButton

public org.gnu.gtk.Button getFinishButton()
Retrieve the "Finish" button.


getType

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