|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cafesip.gwtcomp.client.ui.WizardPanel
public class WizardPanel
A panel for creating a wizard. When the user needs enter and submit a lot of information, it is often organized into many screens with next/previous/finish buttons. There are many well-known applications that use this concept of a wizard. The WizardPanel helps you create such widgets for your GWT application. It encompasses the common functions of a widget while allowing you the flexibility to add or remove standard stuff that you do not want in your wizard. Also, you can apply a common style to the wizard panel.
A standard wizard panel comes with a top-level title bar, a message bar, a button bar consisting of Next, Previous, Cancel and Finish buttons and a deck panel where your application can add sub-panels. You can add the data entry panels as sub-panels. Remember that all the bars and the panels are customizable. That is you can remove them, disable them, add new buttons, remove the standard buttons, etc. That is, it is completely flexible.
Examples:
CSS Style Rules:
Screen-Shots:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
WizardPanel()
A constructor for this class. |
|
WizardPanel(java.lang.String action)
A constructor for this class. |
|
| Method Summary | |
|---|---|
void |
addPanel(java.lang.String name,
com.google.gwt.user.client.ui.Panel panel)
Add a panel to the wizard panel. |
void |
addPanel(java.lang.String name,
com.google.gwt.user.client.ui.Panel panel,
int atPosition)
Inserts a panel to the "deck" at a given position. |
void |
addPanelListener(WizardPanelListener listener)
Add a listener to listen to panel events. |
void |
displayNextPanel()
Display the next panel. |
void |
displayPanel(java.lang.String name)
Display a panel with the given name. |
void |
displayPreviousPanel()
Display the previous panel. |
ButtonPanel |
getButtonPanel()
Returns the button panel. |
com.google.gwt.user.client.ui.Button |
getCancelButton()
Get the "Cancel" button. |
java.lang.String |
getDisplayedPanel()
Returns the name of the currently-displayed panel. |
com.google.gwt.user.client.ui.Button |
getFinishButton()
Get the "Finish" button. |
com.google.gwt.user.client.ui.FormPanel |
getFormPanel()
Returns the form panel used as a base widget. |
MessageBar |
getMessageBar()
Get the message bar. |
com.google.gwt.user.client.ui.Button |
getNextButton()
Get the "Next" button. |
com.google.gwt.user.client.ui.DeckPanel |
getPanel()
Get the deck panel. |
com.google.gwt.user.client.ui.Button |
getPreviousButton()
Get the "Previous" button. |
TitleBar |
getTitleBar()
Get the title bar. |
void |
removePanelListener(WizardPanelListener listener)
Remove a listener |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, onLoad, onUnload, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WizardPanel(java.lang.String action)
action - the action to invoke on form submissionpublic WizardPanel()
| Method Detail |
|---|
public void addPanelListener(WizardPanelListener listener)
listener - the listenerpublic void removePanelListener(WizardPanelListener listener)
listener - listener to removepublic com.google.gwt.user.client.ui.Button getPreviousButton()
public com.google.gwt.user.client.ui.Button getNextButton()
public com.google.gwt.user.client.ui.Button getFinishButton()
public com.google.gwt.user.client.ui.Button getCancelButton()
public TitleBar getTitleBar()
public MessageBar getMessageBar()
public void addPanel(java.lang.String name,
com.google.gwt.user.client.ui.Panel panel)
name - name of the panelpanel - the panel itself.
public void addPanel(java.lang.String name,
com.google.gwt.user.client.ui.Panel panel,
int atPosition)
name - name of the panelpanel - the panel itselfatPosition - position at which the panel is inserted (starting with 0).public void displayNextPanel()
public void displayPreviousPanel()
public void displayPanel(java.lang.String name)
name - name of the panel.public com.google.gwt.user.client.ui.DeckPanel getPanel()
public java.lang.String getDisplayedPanel()
public ButtonPanel getButtonPanel()
public com.google.gwt.user.client.ui.FormPanel getFormPanel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||